ptolemy.vergil.fsm.modal
Class HierarchicalStateControllerFactory

java.lang.Object
  extended byptolemy.kernel.util.NamedObj
      extended byptolemy.kernel.util.Attribute
          extended byptolemy.kernel.util.SingletonAttribute
              extended byptolemy.vergil.basic.NodeControllerFactory
                  extended byptolemy.vergil.fsm.modal.HierarchicalStateControllerFactory
All Implemented Interfaces:
Changeable, java.lang.Cloneable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Nameable, java.io.Serializable, Singleton

public class HierarchicalStateControllerFactory
extends NodeControllerFactory

This is attribute that produces a custom node controller for hierarchical states. This class creates an instance of HierarchicalStateController, for controlling hierarchical states in modal models.

Since:
Ptolemy II 2.0
Version:
$Id: HierarchicalStateControllerFactory.java,v 1.13 2004/04/13 03:50:34 cxh Exp $
Author:
Edward A. Lee
See Also:
Serialized Form
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
 
Nested classes inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Field Summary
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Constructor Summary
HierarchicalStateControllerFactory(NamedObj container, java.lang.String name)
          Construct a new attribute with the given container and name.
 
Method Summary
 NamedObjController create(GraphController controller)
          Return a new node controller.
 
Methods inherited from class ptolemy.kernel.util.SingletonAttribute
setContainer
 
Methods inherited from class ptolemy.kernel.util.Attribute
_getContainedObject, _propagateExistence, clone, getContainer, setName
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HierarchicalStateControllerFactory

public HierarchicalStateControllerFactory(NamedObj container,
                                          java.lang.String name)
                                   throws NameDuplicationException,
                                          IllegalActionException
Construct a new attribute with the given container and name.

Parameters:
container - The container.
name - The name.
Throws:
IllegalActionException - If the attribute cannot be contained by the proposed container.
NameDuplicationException - If the container already has an attribute with this name.
Method Detail

create

public NamedObjController create(GraphController controller)
Return a new node controller. This base class returns an instance of IconController. Derived classes can return some other class to customize the context menu.

Overrides:
create in class NodeControllerFactory
Parameters:
controller - The associated graph controller.
Returns:
A new node controller.