ptolemy.actor.gt
Class GraphTransformer

java.lang.Object
  extended by ptolemy.kernel.util.ChangeRequest
      extended by ptolemy.actor.gt.GraphTransformer

public class GraphTransformer
extends ChangeRequest

Since:
Ptolemy II 6.1
Version:
$Id: GraphTransformer.java,v 1.26.4.3 2008/03/25 22:12:09 cxh Exp $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Constructor Summary
GraphTransformer(TransformationRule transformationRule, java.util.List<MatchResult> matchResults)
           
GraphTransformer(TransformationRule transformationRule, MatchResult matchResult)
           
 
Method Summary
protected  void _addConnections()
           
protected  void _addObjects()
           
protected  void _execute()
          Execute the change.
protected  void _hideRelations()
           
protected  void _init()
           
protected  void _performOperations()
           
protected  void _recordMoML()
           
protected  void _removeLinks()
           
protected  void _removeObjects()
           
protected  void _wrapup()
           
 MatchResult getMatchResult()
           
 Pattern getPattern()
           
 Replacement getReplacement()
           
static void transform(TransformationRule transformationRule, java.util.List<MatchResult> matchResults)
           
static void transform(TransformationRule transformationRule, MatchResult matchResult)
           
 
Methods inherited from class ptolemy.kernel.util.ChangeRequest
addChangeListener, execute, getDescription, getLocality, getSource, isErrorReported, isPersistent, removeChangeListener, setDescription, setErrorReported, setListeners, setPersistent, waitForCompletion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphTransformer

public GraphTransformer(TransformationRule transformationRule,
                        java.util.List<MatchResult> matchResults)
                 throws TransformationException
Throws:
TransformationException

GraphTransformer

public GraphTransformer(TransformationRule transformationRule,
                        MatchResult matchResult)
                 throws TransformationException
Throws:
TransformationException
Method Detail

getMatchResult

public MatchResult getMatchResult()

getPattern

public Pattern getPattern()

getReplacement

public Replacement getReplacement()

transform

public static void transform(TransformationRule transformationRule,
                             java.util.List<MatchResult> matchResults)
                      throws TransformationException
Throws:
TransformationException

transform

public static void transform(TransformationRule transformationRule,
                             MatchResult matchResult)
                      throws TransformationException
Throws:
TransformationException

_addConnections

protected void _addConnections()
                        throws TransformationException
Throws:
TransformationException

_addObjects

protected void _addObjects()
                    throws TransformationException
Throws:
TransformationException

_execute

protected void _execute()
                 throws TransformationException
Description copied from class: ChangeRequest
Execute the change. Derived classes must implement this method. Any exception may be thrown if the change fails.

Specified by:
_execute in class ChangeRequest
Throws:
TransformationException

_hideRelations

protected void _hideRelations()
                       throws TransformationException
Throws:
TransformationException

_init

protected void _init()
              throws TransformationException
Throws:
TransformationException

_performOperations

protected void _performOperations()
                           throws TransformationException
Throws:
TransformationException

_recordMoML

protected void _recordMoML()
                    throws TransformationException
Throws:
TransformationException

_removeLinks

protected void _removeLinks()
                     throws TransformationException
Throws:
TransformationException

_removeObjects

protected void _removeObjects()
                       throws TransformationException
Throws:
TransformationException

_wrapup

protected void _wrapup()
                throws TransformationException
Throws:
TransformationException