public class ActorConstraintsDefinitionAdapter extends LatticeOntologyAdapter
ActorConstraintsDefinitionAttribute
Red (cshelton) |
Green (cshelton) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<StringParameter> |
_constraintTermExpressions
The list of expressions that represent the constraint
terms for each constraint in the actor.
|
_ownConstraints, _subAdapterConstraints, _useDefaultConstraints, interconnectConstraintType
_annotationEvaluator, _solver
Constructor and Description |
---|
ActorConstraintsDefinitionAdapter(LatticeOntologySolver solver,
ComponentEntity component,
java.util.List<StringParameter> constraintExpressions)
Construct the lattice ontology adapter for the given component
and property lattice.
|
Modifier and Type | Method and Description |
---|---|
protected ConceptFunctionInequalityTerm |
_getConceptFunctionTerm(NamedObj actorElement,
java.lang.String functionString)
Return the inequality term representing the concept function
defined by the specified string.
|
protected java.util.List<Attribute> |
_getPropertyableAttributes()
Return the list of property-able Attributes.
|
protected void |
_setConstraints(NamedObj actorElement,
java.lang.String constraintExpressionString)
Set the constraints for the actor attribute or port based on
the parsed expression string.
|
java.util.List<Inequality> |
constraintList()
Return the constraints of this component.
|
java.util.List<java.lang.Object> |
getPropertyables()
Return a list of property-able ports and attributes contained
by the component.
|
_addDefaultConstraints, _addSubAdapterConstraints, _annotationEvaluator, _constrainAttributes, _constrainObject, _constrainObjectLists, _constrainSingleObject, _getConstrainedPorts, _getConstraintingPorts, _getSubAdapters, _setConnectionConstraintType, _union, getPropertyTerm, getSolver, isConstraintSource, reinitialize, setAtLeast, setAtMost, setSameAs
_getASTNodeAdapters, _getAttributeParseTrees, _getSinkPortList, _getSourcePortList, getComponent, getContainerEntity, getName, getParseTree, putAttribute, setComponent, setEquals, toString
protected java.util.List<StringParameter> _constraintTermExpressions
public ActorConstraintsDefinitionAdapter(LatticeOntologySolver solver, ComponentEntity component, java.util.List<StringParameter> constraintExpressions) throws IllegalActionException
solver
- The specified lattice-based ontology solver.component
- The given component.constraintExpressions
- The list of constraint
expressions for each port or component in the actor.IllegalActionException
- Thrown if the adapter cannot be
initialized.public java.util.List<Inequality> constraintList() throws IllegalActionException
constraintList
in class LatticeOntologyAdapter
IllegalActionException
- If there is a problem
parsing the constraint expression strings to create the actor
constraints.public java.util.List<java.lang.Object> getPropertyables()
getPropertyables
in class OntologyAdapter
protected ConceptFunctionInequalityTerm _getConceptFunctionTerm(NamedObj actorElement, java.lang.String functionString) throws IllegalActionException
actorElement
- The actor element for which this concept function
constraint is being defined.functionString
- The string containing the expression for
the concept function.IllegalActionException
- If the string cannot be
correctly parsed and the concept function cannot be created.protected java.util.List<Attribute> _getPropertyableAttributes()
_getPropertyableAttributes
in class OntologyAdapter
protected void _setConstraints(NamedObj actorElement, java.lang.String constraintExpressionString) throws IllegalActionException
actorElement
- The attribute or port from the actor to be
constrained.constraintExpressionString
- The expression string that
is parsed to get the constraints for the actor attribute or
port.IllegalActionException
- If the constraint cannot be
set due to problems parsing the expression.