ptolemy.backtrack.ui
Class BacktrackTransformer
java.lang.Object
ptolemy.backtrack.ui.BacktrackTransformer
public class BacktrackTransformer
- extends java.lang.Object
Model transformer for backtracking. This class parses the MoML of the given
model, and applies a renaming filter to the MoML. The actors with their
backtracking versions will be replaced. Actors without existing backtracking
versions will remain unchanged. Other entities in the model, such as
relations between ports, are kept. The resulting model supports backtracking
for the transformed actors.
- Since:
- Ptolemy II 5.1
- Version:
- $Id: BacktrackTransformer.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Thomas Feng
- Accepted Rating:
- Proposed Rating:
Method Summary |
static NamedObj |
transformModel(NamedObj model)
Transform a model by replacing the actors with existing backtracking
versions, and return the resulting model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BacktrackTransformer
public BacktrackTransformer()
transformModel
public static NamedObj transformModel(NamedObj model)
throws IllegalActionException
- Transform a model by replacing the actors with existing backtracking
versions, and return the resulting model.
Each transformed actor has a "_decorate" attribute. It adds a small
backtracking decoration to the actor's icon.
- Parameters:
model
- The model to be transformed.
- Returns:
- The transformed model.
- Throws:
IllegalActionException
- If the parser fails to parse the
transformed model.