public static class RunTableau.TopFactory extends RunTableau.Factory
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TopFactory(NamedObj container,
java.lang.String name)
Create a factory with the given name and container.
|
Modifier and Type | Method and Description |
---|---|
Tableau |
createTableau(Effigy effigy)
Create a tableau to run the model associated with the specified
effigy.
|
_configureTableau, configure, getConfigureSource, getConfigureText
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, 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 TopFactory(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name.IllegalActionException
- If the container is incompatible
with this attribute.NameDuplicationException
- If the name coincides with
an attribute already in the container.public Tableau createTableau(Effigy effigy) throws java.lang.Exception
Effigy.masterEffigy()
, is the one that is run.
If that effigy already contains a tableau named
"runTableau", then return that tableau; otherwise, create
a new instance of RunTableau for the top effigy, and
name it "runTableau". If the specified effigy is not an
instance of PtolemyEffigy, then do not create a tableau
and return null. It is the responsibility of callers of
this method to check the return value and call show().createTableau
in class RunTableau.Factory
effigy
- The model effigy.java.lang.Exception
- If the factory should be able to create a
tableau for the effigy, but something goes wrong.