public class ConstructAssociativeType extends MonotonicFunction
StructuredType
of which the fields names and field types correspond with the given ports.
The arguments to this function (the array returned by getVariables())
represent the types of the ports, in the same order as the ports
are defined. The concrete subclass of StructuredType
that
is to be instantiated by this function depends on the type parameter
passed to the constructor.Red |
Red (marten) |
Constructor and Description |
---|
ConstructAssociativeType(java.util.Collection<TypedIOPort> ports,
java.lang.Class<? extends AssociativeType> type)
Construct a new monotonic function.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Return a RecordType with field names equal to the given port names,
and field types equal to the current inferred or declared type of the
corresponding ports.
|
InequalityTerm[] |
getVariables()
Return the type variables for this function, which are
the type variables for all the ports that do not have declared types.
|
getAssociatedObject, getVerboseString, initialize, isSettable, isValueAcceptable, setValue, toString
public ConstructAssociativeType(java.util.Collection<TypedIOPort> ports, java.lang.Class<? extends AssociativeType> type)
ports
- A list of ports used to construct the AssociativeTypetype
- A specific subclass to instantiatepublic java.lang.Object getValue() throws IllegalActionException
getValue
in interface InequalityTerm
getValue
in class MonotonicFunction
IllegalActionException
- If thrown while getting the
value of the typeTerm of the port or while instantiating a type.MonotonicFunction.setValue(Object)
public InequalityTerm[] getVariables()
getVariables
in interface InequalityTerm
getVariables
in class MonotonicFunction