ptolemy.domains.sdf.lib
Class MatrixToSequence.FunctionTerm
java.lang.Object
ptolemy.data.type.MonotonicFunction
ptolemy.domains.sdf.lib.MatrixToSequence.FunctionTerm
- All Implemented Interfaces:
- InequalityTerm
- Enclosing class:
- MatrixToSequence
private static class MatrixToSequence.FunctionTerm
- extends MonotonicFunction
A monotonic function of the input port type. The result of the
function is a matrix type with elements that are the same as
the input type. If there is no such matrix type, then the
result is unknown. NOTE: This is largely copied from
AbsoluteValue. Should there be a common base class? It is
also essentially identical the inner class in SequenceToMatrix.
Constructor Summary |
private |
MatrixToSequence.FunctionTerm(TypedIOPort port)
The constructor takes a port argument so that the clone()
method can construct an instance of this class for the
input port on the clone. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_port
private TypedIOPort _port
MatrixToSequence.FunctionTerm
private MatrixToSequence.FunctionTerm(TypedIOPort port)
- The constructor takes a port argument so that the clone()
method can construct an instance of this class for the
input port on the clone.
- Parameters:
port
- The port
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 the variables in this term. If the type of the input port
is a variable, return a one element array containing the
InequalityTerm of that port; otherwise, return an array of zero
length.
- Specified by:
getVariables
in interface InequalityTerm
- Specified by:
getVariables
in class MonotonicFunction
- Returns:
- An array of InequalityTerm.