public class QSSDirector extends DEDirector
QSSIntegrator
and QSSBase
.
Note that the expression function smoothToken(double, {double})
is available in the expression language. This function creates
a SmoothToken
with value equal to the first argument and any number
of derivatives given in the second argument. Actors in this domain
can use such tokens, when they are provided, to perform more accurate
calculations.
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
absoluteQuantum
The minimum quantum for QSS integrations under the control
of this director.
|
StringParameter |
QSSSolver
The class name of the QSS solver used for integration.
|
Parameter |
quantumScaleFactor
The quantum scale factor to use for QSS integrations under the control
of this director.
|
Parameter |
relativeQuantum
The relative quantum to use for QSS integrations under the control
of this director.
|
_actorsFinished, _actorsInExecution, _disabledActors, _eventQueue, _eventQueueLock, _isInitializing, _microstep, _noMoreActorsToFire, _stopFireRequested, binCountFactor, enforceMicrostepSemantics, isCQAdaptive, minBinCount, stopWhenQueueIsEmpty, synchronizeToRealTime
_actorsFinishedExecution, _aspectForActor, _aspectsPresent, _defaultMicrostep, _executionAspects, _finishRequested, _initializables, _nextScheduleTime, _stopRequested, _tokenSentToCommunicationAspect, _zeroTime, localClock, startTime, stopTime
_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 |
---|
QSSDirector()
Construct a director in the default workspace with an empty string
as its name.
|
QSSDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name.
|
QSSDirector(Workspace workspace)
Construct a director in the workspace with an empty name.
|
Modifier and Type | Method and Description |
---|---|
protected QSSBase |
_instantiateQSSSolver(java.lang.String className)
Instantiate an QSSSolver from its class name.
|
void |
attributeChanged(Attribute attribute)
React to a change in an attribute.
|
static void |
configureSolverParameter(StringParameter solverParameter,
java.lang.String defaultSolver)
Set the default solver method and list solver alternatives for the specified solver.
|
double |
getAbsoluteQuantum()
Return the value of the absoluteQuantum parameter.
|
static java.lang.String[] |
getQSSSolverNames()
Gets the list of all available QSS solver names.
|
double |
getQuantumScaleFactor()
Return the value of the quantumScaleFactor parameter.
|
double |
getRelativeQuantum()
Return the value of the relativeQuantum parameter.
|
QSSBase |
newQSSSolver()
Return a new QSS solver for use.
|
QSSBase |
newQSSSolver(java.lang.String type)
Return a new QSS solver of the specified type.
|
_actorFired, _checkForNextEvent, _disableActor, _enqueueEvent, _enqueueTriggerEvent, _fire, _getDepthOfActor, _getDepthOfIOPort, _getNextActorToFire, _issueExecutionAspectWarning, _noActorToFire, _requestFiring, _schedule, addDebugListener, cancelFireAt, cancelFireAt, clone, describePriorities, fire, fireAt, fireAt, fireAtCurrentTime, fireAtRelativeTime, getCausalityInterface, getIndex, getMicrostep, getModelNextIterationTime, getNextEventTime, getStartTime, getStopTime, initialize, invalidateSchedule, mutexLockObject, newReceiver, postfire, prefire, preinitialize, removeDebugListener, resumeActor, setIndex, stop, stopFire, suggestedModalModelDirectors, transferInputs, wrapup
_actorFinished, _consultTimeRegulators, _description, _isEmbedded, _isTopLevel, _transferInputs, _transferOutputs, addInitializable, createSchedule, defaultDependency, delayDependency, elapsedTimeSinceStart, finish, fireAt, fireContainerAt, fireContainerAt, getCurrentTime, getDeadline, getEnvironmentTime, getExecutionAspect, getGlobalTime, getModelStartTime, getModelStopTime, getModelTime, getNextIterationTime, getTimeResolution, implementsStrictActorSemantics, initialize, invalidateResolvedTypes, isEmbedded, isFireFunctional, isStopRequested, isStrict, iterate, notifyTokenSentToCommunicationAspect, preinitialize, removeInitializable, requestInitialization, resume, scheduleContainedActors, setContainer, setCurrentTime, setEmbedded, setModelTime, setTimeResolution, supportMultirateFiring, suspend, terminate, transferOutputs, transferOutputs
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, 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, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public Parameter absoluteQuantum
public StringParameter QSSSolver
public Parameter relativeQuantum
absoluteQuantum
and |x| * relativeQuantum,
where x is the current value of the state being quantized.
This is a double that defaults to be 0.0, which causes the
absoluteQuantum to be used.public Parameter quantumScaleFactor
public QSSDirector() throws IllegalActionException, NameDuplicationException
NameDuplicationException
- If construction of Time objects fails.IllegalActionException
- If construction of Time objects fails.public QSSDirector(Workspace workspace) throws IllegalActionException, NameDuplicationException
workspace
- The workspace of this object.NameDuplicationException
- If construction of Time objects fails.IllegalActionException
- If construction of Time objects fails.public QSSDirector(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Container of the director.name
- Name of this director.IllegalActionException
- If the
director is not compatible with the specified container.NameDuplicationException
- If the container not a
CompositeActor and the name collides with an entity in the container.public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class DEDirector
attribute
- The changed parameter.IllegalActionException
- If the new parameter value
is not valid.public static java.lang.String[] getQSSSolverNames()
public static void configureSolverParameter(StringParameter solverParameter, java.lang.String defaultSolver)
solverParameter
- The parameter specifying the solver method.defaultSolver
- The default solver to use.public final double getAbsoluteQuantum()
public final double getRelativeQuantum()
public final double getQuantumScaleFactor()
public QSSBase newQSSSolver() throws IllegalActionException
IllegalActionException
- If creating the solver fails.public QSSBase newQSSSolver(java.lang.String type) throws IllegalActionException
type
- The type of solver.IllegalActionException
- If creating the solver fails.protected final QSSBase _instantiateQSSSolver(java.lang.String className) throws IllegalActionException
className
- The solver's full class name.IllegalActionException
- If the solver can not be created.