public class SequencedIntegrator extends BaseMultipleMethodsActor
SequencedSharedMemoryActor.Scope
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
TypedIOPort |
callSetStateMethod
The trigger port for the setState() method.
|
TypedIOPort |
currentState
The current state of the integrator output port.
|
TypedIOPort |
sampleFactor
The sample factor input port.
|
TypedIOPort |
sampleTime
The sample time input port.
|
TypedIOPort |
setStateValue
The integrator initialization input port.
|
_defaultFireMethodName, _fireMethodName, _fireMethodNameToInputPortList, _methodList
_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 |
---|
SequencedIntegrator(CompositeEntity container,
java.lang.String name)
Create a new instance of the SequencedIntegrator 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()
Execute the SequencedIntegrator actor. call either the setState method,
the integrate method, or the currentState method depending on which
current fire method is set.
|
void |
preinitialize()
Perform preinitialization checks on the actor.
|
_addFireMethod, getDefaultFireMethodName, getFireMethodNames, getMethodInputPortList, getMethodOutputPort, numFireMethods, setFireMethod
_setValue, _setValue, checkForAttributes, checkForAttributes, getInitialVariable, getInitialVariableName, getModifiedVariable, getModifiedVariable, getSharedName, getVariable, getVariableName, setName
_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 TypedIOPort callSetStateMethod
public TypedIOPort currentState
public TypedIOPort sampleFactor
public TypedIOPort sampleTime
public TypedIOPort setStateValue
public SequencedIntegrator(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The model in which the new actor will be contained.name
- The name of the new actorIllegalActionException
- If the new actor cannot be created.NameDuplicationException
- If there is already a NamedObj with
the same name in the container model.public void fire() throws IllegalActionException
fire
in interface Executable
fire
in class SequencedSharedMemoryActor
IllegalActionException
- If the fire method name is invalid.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class SequencedSharedMemoryActor
IllegalActionException
- If the SequencedIntegrator actor's state variable is not a scalar type.protected Token _getDefaultValue() throws IllegalActionException
_getDefaultValue
in class SequencedSharedMemoryActor
IllegalActionException
- Subclasses should throw an exception if
an explicit initial value is required.