ptolemy.backtrack.automatic.ptolemy.domains.sdf.lib
Class Autocorrelation.FunctionTerm

java.lang.Object
  extended by ptolemy.data.type.MonotonicFunction
      extended by ptolemy.backtrack.automatic.ptolemy.domains.sdf.lib.Autocorrelation.FunctionTerm
All Implemented Interfaces:
Rollbackable, InequalityTerm
Enclosing class:
Autocorrelation

private static class Autocorrelation.FunctionTerm
extends MonotonicFunction
implements Rollbackable


Field Summary
private  TypedIOPort _port
           
protected  Checkpoint $CHECKPOINT
           
private  FieldRecord $RECORD$_port
           
protected  CheckpointRecord $RECORD$$CHECKPOINT
           
private  FieldRecord[] $RECORDS
           
 
Constructor Summary
private Autocorrelation.FunctionTerm(TypedIOPort port)
           
 
Method Summary
private  TypedIOPort $ASSIGN$_port(TypedIOPort newValue)
           
 void $COMMIT(long timestamp)
          Commit changes up to the given timestamp, but not including changes made at timestamp and afterward.
 Checkpoint $GET$CHECKPOINT()
          Get the checkpoint object that monitors this rollbackable object.
 void $RESTORE(long timestamp, boolean trim)
          Restore a previous state to all the private fields of this rollbackable object.
 java.lang.Object $SET$CHECKPOINT(Checkpoint checkpoint)
          Set the checkpoint object of this rollbackable object.
 java.lang.Object getValue()
          Return the function result.
 InequalityTerm[] getVariables()
          Return an one element array containing the InequalityTerm representing the type of the input port.
 
Methods inherited from class ptolemy.data.type.MonotonicFunction
getAssociatedObject, getVerboseString, initialize, isSettable, isValueAcceptable, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

$CHECKPOINT

protected transient Checkpoint $CHECKPOINT

_port

private TypedIOPort _port

$RECORD$$CHECKPOINT

protected transient CheckpointRecord $RECORD$$CHECKPOINT

$RECORD$_port

private transient FieldRecord $RECORD$_port

$RECORDS

private transient FieldRecord[] $RECORDS
Constructor Detail

Autocorrelation.FunctionTerm

private Autocorrelation.FunctionTerm(TypedIOPort port)
Method Detail

getValue

public java.lang.Object getValue()
Return the function result.

Specified by:
getValue in interface InequalityTerm
Specified by:
getValue in class MonotonicFunction
Returns:
A Type.
See Also:
MonotonicFunction.setValue(Object)

getVariables

public InequalityTerm[] getVariables()
Return an one element array containing the InequalityTerm representing the type of the input port.

Specified by:
getVariables in interface InequalityTerm
Specified by:
getVariables in class MonotonicFunction
Returns:
An array of InequalityTerm.

$ASSIGN$_port

private final TypedIOPort $ASSIGN$_port(TypedIOPort newValue)

$COMMIT

public void $COMMIT(long timestamp)
Description copied from interface: Rollbackable
Commit changes up to the given timestamp, but not including changes made at timestamp and afterward.

Specified by:
$COMMIT in interface Rollbackable
Parameters:
timestamp - The timestamp.

$RESTORE

public void $RESTORE(long timestamp,
                     boolean trim)
Description copied from interface: Rollbackable
Restore a previous state to all the private fields of this rollbackable object.

Specified by:
$RESTORE in interface Rollbackable
Parameters:
timestamp - The timestamp taken at the time when the previous state was recorded.
trim - Whether to delete the records used for the rollback.
See Also:
Checkpoint.rollback(long, boolean)

$GET$CHECKPOINT

public final Checkpoint $GET$CHECKPOINT()
Description copied from interface: Rollbackable
Get the checkpoint object that monitors this rollbackable object.

Specified by:
$GET$CHECKPOINT in interface Rollbackable
Returns:
The checkpoint object.

$SET$CHECKPOINT

public final java.lang.Object $SET$CHECKPOINT(Checkpoint checkpoint)
Description copied from interface: Rollbackable
Set the checkpoint object of this rollbackable object. A merge operation is performed on the current checkpoint object and the new checkpoint object, so that the two checkpoint objects monitor the same set of objects when this function returns.

Specified by:
$SET$CHECKPOINT in interface Rollbackable
Parameters:
checkpoint - The new checkpoint object.
Returns:
This rollbackable object itself.
See Also:
Checkpoint.setCheckpoint(Checkpoint)