public class SequencedVariable extends SequencedSharedMemoryActor
Red (beth) |
Red (beth) |
SequencedSharedMemoryActor.Scope
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
copyVariableName
Delete this later when icon is figured out!!
|
Parameter |
outputInitialValue
A parameter to hold the output initial value.
|
_scope, _sharedName, initialVariableName
delayed, input, output, variableName
_typesValid
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
SequencedVariable(CompositeEntity container,
java.lang.String name)
Create a new SequencedVariable actor with the given name and
container.
|
Modifier and Type | Method and Description |
---|---|
protected Token |
_getDefaultValue()
Supplies a default value for the variable, in the case that there
is no initial value.
|
void |
fire()
Fire the actor.
|
void |
preinitialize()
In addition to the superclass preinitialize(), set the actor icon and
its outputInitialValue.
|
void |
setName(java.lang.String name)
When the actor name is changed, update the referenced variables
to point to the new parameters and check to see if these parameters
exist.
|
_setValue, _setValue, checkForAttributes, checkForAttributes, getInitialVariable, getInitialVariableName, getModifiedVariable, getModifiedVariable, getSharedName, getVariable, getVariableName
_customTypeConstraints, changeExecuted, changeFailed, clone, getContext, getModifiedVariables, postfire
_containedTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, initialize, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, prefire, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence
_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
description, getContainer, getDisplayName, getFullName, getName, getName
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
isFireFunctional, isStrict, iterate, prefire, stop, stopFire, terminate
addInitializable, initialize, removeInitializable, wrapup
getDerivedLevel, getDerivedList, propagateValue
public Parameter outputInitialValue
public Parameter copyVariableName
public SequencedVariable(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container that will contain the actor.name
- The name of the actor.NameDuplicationException
- Thrown if there is already an actor
in the container with the same name.IllegalActionException
- Thrown if the actor cannot be
instantiated.public void fire() throws IllegalActionException
fire
in interface Executable
fire
in class SequencedSharedMemoryActor
IllegalActionException
- If the actor cannot be fired.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class SequencedSharedMemoryActor
IllegalActionException
- If the actor cannot be preinitialized.public void setName(java.lang.String name) throws IllegalActionException, NameDuplicationException
setName
in interface Nameable
setName
in class SequencedSharedMemoryActor
name
- The new name for the actor.IllegalActionException
- Thrown if there is a problem setting
the actor name.NameDuplicationException
- Thrown if the new name conflicts with
the name of an existing actor in the container.NamedObj.getName()
,
NamedObj.getName(NamedObj)
protected Token _getDefaultValue() throws IllegalActionException
_getDefaultValue
in class SequencedSharedMemoryActor
IllegalActionException
- Subclasses should throw an exception if
an explicit initial value is required.