org.eclipse.emf.henshin.interpreter.impl
Class AbstractApplicationImpl

java.lang.Object
  extended by org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl
All Implemented Interfaces:
UnitApplication
Direct Known Subclasses:
RuleApplicationImpl, UnitApplicationImpl

public abstract class AbstractApplicationImpl
extends Object
implements UnitApplication

Abstract base class for UnitApplicationImpl and RuleApplicationImpl.


Field Summary
protected  Engine engine
           
protected  EGraph graph
           
protected  Unit unit
           
 
Constructor Summary
protected AbstractApplicationImpl(Engine engine)
          Default constructor.
 
Method Summary
 EGraph getEGraph()
          Get the EGraph to be transformed.
 Unit getUnit()
          Get the unit to be applied.
 void setEGraph(EGraph graph)
          Set the EGraph to be transformed.
 void setUnit(Unit unit)
          Set the unit to be applied.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.henshin.interpreter.UnitApplication
execute, getAssignment, getResultAssignment, getResultParameterValue, redo, setAssignment, setParameterValue, undo
 

Field Detail

engine

protected final Engine engine

unit

protected Unit unit

graph

protected EGraph graph
Constructor Detail

AbstractApplicationImpl

protected AbstractApplicationImpl(Engine engine)
Default constructor.

Parameters:
engine - Engine (required).
Method Detail

getUnit

public Unit getUnit()
Description copied from interface: UnitApplication
Get the unit to be applied.

Specified by:
getUnit in interface UnitApplication
Returns:
The unit.

setUnit

public void setUnit(Unit unit)
Description copied from interface: UnitApplication
Set the unit to be applied.

Specified by:
setUnit in interface UnitApplication
Parameters:
unit - The transformation unit.

getEGraph

public EGraph getEGraph()
Description copied from interface: UnitApplication
Get the EGraph to be transformed.

Specified by:
getEGraph in interface UnitApplication
Returns:
The object graph.

setEGraph

public void setEGraph(EGraph graph)
Description copied from interface: UnitApplication
Set the EGraph to be transformed.

Specified by:
setEGraph in interface UnitApplication
Parameters:
graph - The object graph.

toString

public String toString()
Overrides:
toString in class Object