Package org.ptolemy.ssm
Class MeasurementModelAttributes
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.util.Attribute
-
- ptolemy.kernel.util.DecoratorAttributes
-
- org.ptolemy.ssm.MirrorDecoratorAttributes
-
- org.ptolemy.ssm.MeasurementModelAttributes
-
- All Implemented Interfaces:
java.lang.Cloneable
,MirrorDecoratorListener
,Changeable
,Debuggable
,DebugListener
,Derivable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
public class MeasurementModelAttributes extends MirrorDecoratorAttributes
Attribute generator class for the MeasurementModel.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Ilge Akkaya
- See Also:
MeasurementModel
- Pt.AcceptedRating:
- Pt.ProposedRating:
- Red (ilgea)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
Nested classes/interfaces inherited from interface org.ptolemy.ssm.MirrorDecoratorListener
MirrorDecoratorListener.DecoratorEvent
-
-
Field Summary
-
Fields inherited from class org.ptolemy.ssm.MirrorDecoratorAttributes
_cachedDecoratorPortParameters, _cachedDecoratorPorts, _enabled, enable
-
Fields inherited from class ptolemy.kernel.util.DecoratorAttributes
_decorator, decoratorName
-
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
-
-
Constructor Summary
Constructors Constructor Description MeasurementModelAttributes(NamedObj target, java.lang.String name)
Constructs a MeasurementModelAttributes object.MeasurementModelAttributes(NamedObj target, Decorator decorator)
Constructor to use when editing a model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStateSpaceVariablesToContainer()
Add the state space variables defined in the scope of this decorator to the container Actor.java.lang.Object
clone(Workspace workspace)
Clone the object into the specified workspace.void
decorateContainer()
Add all decorated ports and necessary parameters to the container.void
removeDecorationsFromContainer()
Remove all decorated ports from the container.void
removeStateSpaceVariablesFromContainer()
Remove the state space variables defined in the scope of this decorator from the container Actor.-
Methods inherited from class org.ptolemy.ssm.MirrorDecoratorAttributes
attributeChanged, enabled, event, event
-
Methods inherited from class ptolemy.kernel.util.DecoratorAttributes
exportMoML, getDecorator
-
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
-
Methods inherited from class ptolemy.kernel.util.NamedObj
_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, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, 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
-
-
-
-
Constructor Detail
-
MeasurementModelAttributes
public MeasurementModelAttributes(NamedObj target, Decorator decorator) throws IllegalActionException, NameDuplicationException
Constructor to use when editing a model.- Parameters:
target
- The object being decorated.decorator
- The decorator.- Throws:
IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.
-
MeasurementModelAttributes
public MeasurementModelAttributes(NamedObj target, java.lang.String name) throws IllegalActionException, NameDuplicationException
Constructs a MeasurementModelAttributes object.- Parameters:
target
- The object being decorated.name
- The decorator name.- Throws:
IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.
-
-
Method Detail
-
addStateSpaceVariablesToContainer
public void addStateSpaceVariablesToContainer()
Add the state space variables defined in the scope of this decorator to the container Actor.
-
clone
public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
Description copied from class:DecoratorAttributes
Clone the object into the specified workspace.- Overrides:
clone
in classMirrorDecoratorAttributes
- Parameters:
workspace
- The workspace for the cloned object.- Returns:
- The new Attribute.
- Throws:
java.lang.CloneNotSupportedException
- Not thrown in this base class- See Also:
NamedObj.exportMoML(Writer, int, String)
,NamedObj.setDeferringChangeRequests(boolean)
-
decorateContainer
public void decorateContainer()
Description copied from class:MirrorDecoratorAttributes
Add all decorated ports and necessary parameters to the container.- Overrides:
decorateContainer
in classMirrorDecoratorAttributes
-
removeDecorationsFromContainer
public void removeDecorationsFromContainer() throws IllegalActionException, NameDuplicationException
Description copied from class:MirrorDecoratorAttributes
Remove all decorated ports from the container.- Overrides:
removeDecorationsFromContainer
in classMirrorDecoratorAttributes
- Throws:
IllegalActionException
NameDuplicationException
-
removeStateSpaceVariablesFromContainer
public void removeStateSpaceVariablesFromContainer()
Remove the state space variables defined in the scope of this decorator from the container Actor.
-
-