public class FSMTransitionParameter extends AbstractSettableAttribute
NamedObj.ContainedObjectsIterator
Settable.Visibility
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, FULL, NONE, NOT_EDITABLE
Constructor and Description |
---|
FSMTransitionParameter(NamedObj container,
java.lang.String name)
Construct an attribute with the given name contained by the specified
entity.
|
Modifier and Type | Method and Description |
---|---|
void |
addValueListener(ValueListener listener)
Add value listener.
|
java.lang.Object |
clone(Workspace workspace)
Clone the transition into the specified workspace.
|
java.lang.String |
getExpression()
Return the name of the parameter.
|
Transition |
getTransition()
Set the transition that corresponds to the parameters.
|
Settable.Visibility |
getVisibility()
Get visibility.
|
void |
hide(boolean hide)
If hide is true, hide the parameter and display transition parameters next
to the transition.
|
void |
removeValueListener(ValueListener listener)
Remove value listener.
|
void |
setContainer(NamedObj container)
Specify the container NamedObj, adding this attribute to the
list of attributes in the container.
|
void |
setName(java.lang.String name)
Upon setting the name of this parameter change the corresponding
attribute in the transition.
|
void |
setTransition(Transition transition)
Set the transition that corresponds to the parameters.
|
void |
setVisibility(Settable.Visibility visibility)
Set visibility.
|
java.util.Collection |
validate()
Validate.
|
getDefaultExpression, getValueAsString, setExpression
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, 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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
description, getContainer, getFullName, getName, getName
public FSMTransitionParameter(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.NameDuplicationException
- If the name coincides with
an attribute already in the container.public void addValueListener(ValueListener listener)
listener
- Ignored in this base class.removeValueListener(ValueListener)
public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class Attribute
workspace
- The workspace for the new transition.java.lang.CloneNotSupportedException
- If a derived class contains
an attribute that cannot be cloned.NamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public java.lang.String getExpression()
Settable.setExpression(String)
public Transition getTransition()
setTransition(Transition)
public Settable.Visibility getVisibility()
Settable.setVisibility(Visibility)
public void hide(boolean hide) throws IllegalActionException
hide
- True if the parameter should be hidden.IllegalActionException
- If thrown while creating
the _hide parameter, while validating the location or while
creating a location.public void setName(java.lang.String name) throws IllegalActionException, NameDuplicationException
setName
in interface Nameable
setName
in class Attribute
name
- The new name.IllegalActionException
- If the name contains a period.NameDuplicationException
- If there is already an
attribute with the same name in the container.NamedObj.getName()
,
NamedObj.getName(NamedObj)
public void removeValueListener(ValueListener listener)
listener
- Ignored.addValueListener(ValueListener)
public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
Attribute
Subclasses may constrain the type of container by overriding
Attribute.setContainer(NamedObj)
.
setContainer
in class Attribute
container
- The container to attach this attribute to..IllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute.Attribute.getContainer()
public void setTransition(Transition transition) throws IllegalActionException, NameDuplicationException
transition
- The transition.IllegalActionException
- Can happen during initialization.NameDuplicationException
- Can happen during initialization.getTransition()
public void setVisibility(Settable.Visibility visibility)
visibility
- Ignored.getVisibility()
public java.util.Collection validate() throws IllegalActionException
IllegalActionException
- Not thrown.