ptolemy.actor
Class DesignPatternGetMoMLAction
java.lang.Object
ptolemy.actor.DesignPatternGetMoMLAction
public class DesignPatternGetMoMLAction
- extends java.lang.Object
An action that generates the Moml for a group of states to be used as a
design pattern.
- Since:
- Ptolemy II 8.0
- Version:
- $Id: DesignPatternGetMoMLAction.java 57044 2010-01-27 22:41:05Z cxh $
- Author:
- Thomas Huining Feng
- Accepted Rating:
- Proposed Rating:
Field Summary |
private static java.util.HashSet<java.lang.String> |
_IGNORED_ATTRIBUTES
The set of attribute names that need to be ignored while generating
the Moml. |
private java.util.HashMap<java.lang.String,java.lang.String> |
_overridenParameters
|
Method Summary |
java.lang.String |
getMoml(NamedObj object,
java.lang.String name)
Generate the Moml string for the given object. |
void |
overrideParameter(java.lang.String name,
java.lang.String expression)
Add a parameter and expression to the map of parameters
to override. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_IGNORED_ATTRIBUTES
private static final java.util.HashSet<java.lang.String> _IGNORED_ATTRIBUTES
- The set of attribute names that need to be ignored while generating
the Moml.
_overridenParameters
private java.util.HashMap<java.lang.String,java.lang.String> _overridenParameters
DesignPatternGetMoMLAction
public DesignPatternGetMoMLAction()
getMoml
public java.lang.String getMoml(NamedObj object,
java.lang.String name)
- Generate the Moml string for the given object. If the object is a group
of states, then the contents of the group are generated; otherwise, the
Moml of the object itself is generated with
NamedObj.exportMoML(String)
.
- Parameters:
object
- The object.name
- The name to be used for the object in the generated Moml.
- Returns:
- The Moml string.
overrideParameter
public void overrideParameter(java.lang.String name,
java.lang.String expression)
- Add a parameter and expression to the map of parameters
to override.
- Parameters:
name
- The name of the parameter.expression
- The expression of the parameter.