public class ActorProductLatticeConstraintsDefinitionAdapter extends ActorConstraintsDefinitionAdapter
ActorConstraintsDefinitionAttribute
Red (cshelton) |
Green (cshelton) |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<LatticeOntologyAdapter> |
_tupleAdapters
The list of adapters for the model component for each ontology that
comprises the product lattice ontology.
|
static java.lang.String |
INHERIT
String representing that the actor port or attribute should inherit
its constraints from the tuple ontology solvers for the product
lattice ontology solver.
|
_constraintTermExpressions
_ownConstraints, _subAdapterConstraints, _useDefaultConstraints, interconnectConstraintType
_annotationEvaluator, _solver
Constructor and Description |
---|
ActorProductLatticeConstraintsDefinitionAdapter(ProductLatticeOntologySolver 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 |
---|---|
static boolean |
areActorElementConstraintsInherited(StringParameter actorElementConstraintExpression)
Return true if the actor element is set to inherit its constraints from
the tuple ontologies that comprise the product lattice ontology,
false otherwise.
|
java.util.List<Inequality> |
constraintList()
Return the constraints of this component.
|
_getConceptFunctionTerm, _getPropertyableAttributes, _setConstraints, getPropertyables
_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
public static final java.lang.String INHERIT
java.util.List<LatticeOntologyAdapter> _tupleAdapters
public ActorProductLatticeConstraintsDefinitionAdapter(ProductLatticeOntologySolver 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 static boolean areActorElementConstraintsInherited(StringParameter actorElementConstraintExpression) throws IllegalActionException
actorElementConstraintExpression
- The constraint expression
for the actor element.IllegalActionException
- If the constrain expression parameter is null.public java.util.List<Inequality> constraintList() throws IllegalActionException
constraintList
in class ActorConstraintsDefinitionAdapter
IllegalActionException
- If there is a problem
parsing the constraint expression strings to create the actor
constraints.