public class ConceptRelation extends ComponentRelation
FiniteConcept
,
Ontology
Red (hyzheng) |
Yellow (hyzheng) |
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
StringParameter |
annotation
An annotation that describes the transition.
|
ColorAttribute |
color
Color in which to render this transition.
|
Parameter |
dashed
Indicator that this transition should be rendered as a dashed line.
|
Parameter |
exitAngle
Attribute the exit angle of a visual rendition.
|
Parameter |
gamma
Attribute giving the orientation of a self-loop.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ConceptRelation(Ontology container,
java.lang.String name)
Construct a ConceptRelation with the given name contained by the specified
entity.
|
ConceptRelation(Workspace workspace)
Construct a ConceptRelation in the given workspace with an empty string
as a name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_checkPort(Port port)
Throw an exception if the port cannot be linked
to this relation.
|
java.lang.String |
getLabel()
Return the value of the
annotation parameter. |
void |
setContainer(CompositeEntity container)
Override the base class to ensure that the proposed container
is an instance of
Ontology or null. |
_checkContainer, _checkRelation, _propagateExistence, clone, deepLinkedPortList, deepLinkedPorts, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, unlinkAll
_description, _getContainedObject, link, linkedObjectsList, linkedPortList, linkedPortList, linkedPorts, linkedPorts, numLinks, relationGroupList, unlink
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, 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 annotation
public ColorAttribute color
public Parameter dashed
public Parameter exitAngle
public Parameter gamma
public ConceptRelation(Ontology container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the ConceptRelation.IllegalActionException
- If the container is incompatible
with this ConceptRelation.NameDuplicationException
- If the name coincides with
any relation already in the container.public ConceptRelation(Workspace workspace) throws IllegalActionException, NameDuplicationException
workspace
- The workspace for synchronization and version
tracking.IllegalActionException
- If the container is incompatible
with this ConceptRelation.NameDuplicationException
- If the name coincides with
any relation already in the container.public java.lang.String getLabel()
annotation
parameter.public void setContainer(CompositeEntity container) throws IllegalActionException, NameDuplicationException
Ontology
or null.setContainer
in class ComponentRelation
container
- The proposed container.IllegalActionException
- If the argument is not an Ontology or null.NameDuplicationException
- If the container already has
a relation with the name of this relation.ComponentRelation.getContainer()
protected void _checkPort(Port port) throws IllegalActionException
_checkPort
in class ComponentRelation
port
- The port to be checked to see if the relation
can be attachedIllegalActionException
- If the port's container
is not a FiniteConcept
.