public class SingleWindowConfiguration extends Configuration
CompositeEntity.ContainedObjectsIterator
_DIRECTORY_NAME, classesToRemove, removeGraphicalClasses
_levelCrossingLinks
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
SingleWindowConfiguration(Workspace workspace)
Construct an instance in the specified workspace with an empty
string as a name.
|
Modifier and Type | Method and Description |
---|---|
protected PtolemyEffigy |
createEffigy(PtolemyEffigy container) |
Tableau |
createPrimaryTableau(Effigy effigy)
Create the first tableau for the given effigy, using the
tableau factory.
|
Tableau |
openModel(NamedObj entity)
Open the specified Ptolemy II model.
|
Tableau |
openModel(java.net.URL base,
java.net.URL in,
java.lang.String identifier,
EffigyFactory factory)
Open the specified URL using the specified effigy factory.
|
_removeEntity, attributeChanged, check, checkCloneFields, closeAllTableaux, configurations, findEffigy, getDirectory, getEffigy, getStringParameterAsClass, openAnInstance, openInstance, openInstance, openModel, openModel, setContainer, showAll
_addEntity, _addRelation, _adjustDeferrals, _containedDecorators, _deepOpaqueEntityList, _description, _exportMoMLContents, _finishedAddEntity, _removeRelation, _validateSettables, allAtomicEntityList, allowLevelCrossingConnect, classDefinitionList, clone, connect, connect, containedObjectsIterator, deepCompositeEntityList, deepEntityList, deepGetEntities, deepNamedObjList, deepOpaqueEntityList, deepRelationSet, entityList, entityList, exportLinks, exportMoML, getAttribute, getEntities, getEntity, getPort, getRelation, getRelations, isAtomic, isOpaque, lazyAllAtomicEntityList, lazyAllCompositeEntityList, lazyAllCompositeTransparentAndOpaqueEntityList, lazyClassDefinitionList, lazyDeepEntityList, lazyEntityList, lazyRelationList, newRelation, numberOfEntities, numberOfRelations, numEntities, numRelations, relationList, removeAllEntities, removeAllRelations, setClassDefinition, statistics, uniqueName
_checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, newPort, propagateExistence, setName
_addPort, _removePort, connectedPortList, connectedPorts, connectionsChanged, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts
_setParent, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, 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
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
public SingleWindowConfiguration(Workspace workspace) throws IllegalActionException, NameDuplicationException
workspace
- IllegalActionException
- If the container is incompatible
with this entity.NameDuplicationException
- If the name coincides with
an entity already in the container.public Tableau createPrimaryTableau(Effigy effigy)
createPrimaryTableau
in class Configuration
effigy
- The effigy for which to create a tableau.public Tableau openModel(NamedObj entity) throws IllegalActionException, NameDuplicationException
openModel
in class Configuration
entity
- The model.IllegalActionException
- If constructing an effigy or tableau
fails.NameDuplicationException
- If a name conflict occurs (this
should not be thrown).protected PtolemyEffigy createEffigy(PtolemyEffigy container)
public Tableau openModel(java.net.URL base, java.net.URL in, java.lang.String identifier, EffigyFactory factory) throws java.lang.Exception
Configuration
openModel
in class Configuration
base
- The base for relative file references, or null if
there are no relative file references.in
- The input URL.identifier
- The identifier that uniquely identifies the model.factory
- The effigy factory to use.java.lang.Exception
- If the URL cannot be read.