public class CachedSDFScheduler extends SDFScheduler
The size of the cache in the CachedSDFScheduler is usually set by its containing director when constructing this scheduler. If the cache is full, the least recently used schedule (at the end of the cache) is discarded.
SDFScheduler
Red (cxh) |
Red (zhouye) |
NamedObj.ContainedObjectsIterator
_externalRates, _firingVector, _rateVariables, constrainBufferSizes
VERBOSE
_DEFAULT_SCHEDULER_NAME
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
CachedSDFScheduler()
Construct a scheduler with no container(director)
in the default workspace, the name of the scheduler is
"Scheduler".
|
CachedSDFScheduler(Director container,
java.lang.String name,
int cacheSize)
Construct a scheduler in the given container with the given name
and given cache size.
|
CachedSDFScheduler(Workspace workspace)
Construct a scheduler in the given workspace with the name
"Scheduler".
|
Modifier and Type | Method and Description |
---|---|
protected Schedule |
_getSchedule()
Return the scheduling sequence.
|
void |
clearCaches()
Clear the schedule cache, cache keys and cache for external rates
of this scheduler.
|
void |
constructCaches(int cacheSize)
Construct the caches of this scheduler with the given cache size.
|
_checkDynamicRateVariables, _computeMaximumFirings, _countUnfulfilledInputs, _getFiringCount, _simulateExternalInputs, _simulateInputConsumption, _solveBalanceEquations, _vectorizeFirings, clone, declareRateDependency, getExternalRates, getFiringCount, valueChanged
_declareDependency, _saveBufferSizes, _saveContainerRates, _saveFiringCounts
getSchedule, isValid, setContainer, setValid
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, 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
public CachedSDFScheduler()
public CachedSDFScheduler(Workspace workspace)
workspace
- Object for synchronization and version tracking.public CachedSDFScheduler(Director container, java.lang.String name, int cacheSize) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.cacheSize
- The cache size of this scheduler.IllegalActionException
- If the super class throws it.NameDuplicationException
- If the super class throws it.public void clearCaches()
public void constructCaches(int cacheSize)
cacheSize
- The given cache sie.protected Schedule _getSchedule() throws NotSchedulableException, IllegalActionException
_getSchedule
in class SDFScheduler
NotSchedulableException
- If the super class throws it.IllegalActionException
- If the super class throws it.CompositeEntity.deepEntityList()