public class ActorConstraintsDefinitionAttribute extends Attribute
Red (cshelton) |
Green (cshelton) |
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
StringParameter |
actorClassName
The string that represents the class name of the actor for which
this attribute defines lattice ontology solver constraints.
|
static java.lang.String |
ATTR_SUFFIX
The string suffix for attribute names that represent constraint definitions
for actor attributes.
|
static java.lang.String |
EQ
String representing an equal to constraint choice.
|
StringParameter |
foundActorClassName
The parameter that contains the last valid actor class name found.
|
static java.lang.String |
GTE
String representing a greater than or equal to constraint choice.
|
static java.lang.String |
IGNORE
String representing that the actor port or attribute should be
ignored for the ontology analysis and not have a concept assigned to it.
|
static java.lang.String |
LTE
String representing a less than or equal to constraint choice.
|
static java.lang.String |
NO_CONSTRAINTS
String representing that the actor port or attribute has no constraints
but should have a concept assigned to it.
|
static java.lang.String |
PORT_SUFFIX
The string suffix for attribute names that represent constraint definitions
for actor ports.
|
static java.lang.String |
SEPARATOR
String representing the separator character ";" between
constraint expressions in the constraint expression string.
|
static int |
SUFFIX_LENGTH
The length of the attribute and port suffix strings.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ActorConstraintsDefinitionAttribute(CompositeEntity container,
java.lang.String name)
Construct the ActorConstraintsDefinitionAttribute attribute
with the given container and name.
|
Modifier and Type | Method and Description |
---|---|
void |
attributeChanged(Attribute attribute)
Override the attributeChanged method so that if the actor
class name changes, the attribute interface adds and removes
fields for constraints for the actor's ports and attributes.
|
ActorConstraintsDefinitionAdapter |
createAdapter(ComponentEntity component,
LatticeOntologySolver solver)
Get the adapter defined by this attribute.
|
static java.lang.String |
createConstraintParameterName(NamedObj actorElement)
Return a constraint parameter name based on the name
of the specified actor element.
|
static java.lang.String |
getActorElementName(StringParameter expressionParameter)
Get the name of the element contained by the actor (either a
port or an attribute) for which the specified parameter
defines a constraint.
|
static java.util.List<java.lang.String> |
getConstraintDirAndRHSStrings(java.lang.String constraintExpressionString)
Return the string constraint direction for the given constraint expression specified
as a string.
|
static boolean |
isActorElementAnAttribute(StringParameter actorElementConstraintExpression)
Return true if the actor element constraint expression is for an attribute,
false otherwise.
|
static boolean |
isActorElementAPort(StringParameter actorElementConstraintExpression)
Return true if the actor element constraint expression is for a port,
false otherwise.
|
static boolean |
isActorElementIgnored(StringParameter actorElementConstraintExpression)
Return true if the actor element is set to be ignored by
the ontology analysis, false otherwise.
|
static boolean |
isActorElementUnconstrained(StringParameter actorElementConstraintExpression)
Return true if the actor element is set to have no constraints for
the ontology analysis, false otherwise.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public StringParameter actorClassName
public StringParameter foundActorClassName
public static final java.lang.String ATTR_SUFFIX
public static final java.lang.String EQ
public static final java.lang.String GTE
public static final java.lang.String IGNORE
public static final java.lang.String LTE
public static final java.lang.String NO_CONSTRAINTS
public static final java.lang.String PORT_SUFFIX
public static final java.lang.String SEPARATOR
public static final int SUFFIX_LENGTH
public ActorConstraintsDefinitionAttribute(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the entity cannot be contained
by the proposed container.NameDuplicationException
- If the container already has an
actor with this name.public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class NamedObj
attribute
- The attribute that has been changed.IllegalActionException
- If there is a problem changing the attribute.public ActorConstraintsDefinitionAdapter createAdapter(ComponentEntity component, LatticeOntologySolver solver) throws IllegalActionException
component
- The model component for which the adapter will be created.solver
- The lattice ontology solver for which this adapter is being created.IllegalActionException
- If the container model's
solver cannot be found or there is a problem initializing the
adapter.public static java.lang.String createConstraintParameterName(NamedObj actorElement)
actorElement
- The actor element for which to generate a
constraint parameter name.public static java.lang.String getActorElementName(StringParameter expressionParameter) throws IllegalActionException
expressionParameter
- The string parameter that defines
the element's constraints.IllegalActionException
- If the expressionParameter passed in is null.public static java.util.List<java.lang.String> getConstraintDirAndRHSStrings(java.lang.String constraintExpressionString)
constraintExpressionString
- The string that specifies a single constraint
expression for an actor element.public static boolean isActorElementAnAttribute(StringParameter actorElementConstraintExpression) throws IllegalActionException
actorElementConstraintExpression
- The constraint expression for the actor element.IllegalActionException
- If the constrain expression parameter is null.public static boolean isActorElementAPort(StringParameter actorElementConstraintExpression) throws IllegalActionException
actorElementConstraintExpression
- The constraint expression for the actor element.IllegalActionException
- If the constrain expression parameter is null.public static boolean isActorElementIgnored(StringParameter actorElementConstraintExpression) throws IllegalActionException
actorElementConstraintExpression
- The constraint expression
for the actor element.IllegalActionException
- If the constrain expression parameter is null.public static boolean isActorElementUnconstrained(StringParameter actorElementConstraintExpression) throws IllegalActionException
actorElementConstraintExpression
- The constraint expression
for the actor element.IllegalActionException
- If the constrain expression parameter is null.