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

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

private class Autocorrelation.OutputTypeTerm
extends MonotonicFunction
implements Rollbackable

Monotonic function that determines the type of the output port.


Field Summary
private  ArrayType _arrayType
          The array type with element types matching the typeable.
protected  Checkpoint $CHECKPOINT
           
private  FieldRecord $RECORD$_arrayType
           
protected  CheckpointRecord $RECORD$$CHECKPOINT
           
private  FieldRecord[] $RECORDS
           
 
Constructor Summary
private Autocorrelation.OutputTypeTerm()
           
 
Method Summary
private  ArrayType _getArrayTypeRaw()
          Get an array type with element type matching the type of the associated typeable.
private  ArrayType _getArrayTypeRaw(int length)
          Get an array type with element type matching the type of the associated typeable.
private  ArrayType $ASSIGN$_arrayType(ArrayType 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 an array type with element types given by the associated typeable.
 InequalityTerm[] getVariables()
          Return an array containing the type term for the actor's 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

_arrayType

private ArrayType _arrayType
The array type with element types matching the typeable.


$RECORD$$CHECKPOINT

protected transient CheckpointRecord $RECORD$$CHECKPOINT

$RECORD$_arrayType

private transient FieldRecord $RECORD$_arrayType

$RECORDS

private transient FieldRecord[] $RECORDS
Constructor Detail

Autocorrelation.OutputTypeTerm

private Autocorrelation.OutputTypeTerm()
Method Detail

getValue

public java.lang.Object getValue()
                          throws IllegalActionException
Return an array type with element types given by the associated typeable.

Specified by:
getValue in interface InequalityTerm
Specified by:
getValue in class MonotonicFunction
Returns:
An ArrayType.
Throws:
IllegalActionException - If the type of the associated typeable cannot be determined.
See Also:
MonotonicFunction.setValue(Object)

getVariables

public InequalityTerm[] getVariables()
Return an array containing the type term for the actor's input port.

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

_getArrayTypeRaw

private ArrayType _getArrayTypeRaw()
                            throws IllegalActionException
Get an array type with element type matching the type of the associated typeable.

Returns:
An array type for the associated typeable.
Throws:
IllegalActionException - If the type of the typeable cannot be determined.

_getArrayTypeRaw

private ArrayType _getArrayTypeRaw(int length)
                            throws IllegalActionException
Get an array type with element type matching the type of the associated typeable.

Returns:
An array type for the associated typeable.
Throws:
IllegalActionException - If the type of the typeable cannot be determined.

$ASSIGN$_arrayType

private final ArrayType $ASSIGN$_arrayType(ArrayType 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)