Package 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$
- Author:
- Thomas Huining Feng
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Red (tfeng)
-
-
Constructor Summary
Constructors Constructor Description DesignPatternGetMoMLAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 withNamedObj.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.
-
-