|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl org.eclipse.emf.henshin.interpreter.impl.UnitApplicationImpl
public class UnitApplicationImpl
Default UnitApplication
implementation.
Field Summary | |
---|---|
protected Stack<RuleApplication> |
appliedRules
|
protected Assignment |
assignment
|
protected Assignment |
resultAssignment
|
protected Stack<RuleApplication> |
undoneRules
|
Fields inherited from class org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl |
---|
engine, graph, unit |
Constructor Summary | |
---|---|
UnitApplicationImpl(Engine engine)
Default constructor. |
|
UnitApplicationImpl(Engine engine,
EGraph graph,
Unit unit,
Assignment assignment)
Convenience constructor. |
Method Summary | |
---|---|
protected UnitApplicationImpl |
createApplicationFor(Unit subUnit)
|
protected boolean |
doExecute(ApplicationMonitor monitor)
|
boolean |
execute(ApplicationMonitor monitor)
Execute this unit application. |
protected boolean |
executeConditionalUnit(ApplicationMonitor monitor)
|
protected boolean |
executeIndependentUnit(ApplicationMonitor monitor)
|
protected boolean |
executeIteratedUnit(ApplicationMonitor monitor)
|
protected boolean |
executeLoopUnit(ApplicationMonitor monitor)
|
protected boolean |
executePriorityUnit(ApplicationMonitor monitor)
|
protected boolean |
executeRule(ApplicationMonitor monitor)
|
protected boolean |
executeSequentialUnit(ApplicationMonitor monitor)
|
List<RuleApplication> |
getAppliedRules()
Get the applied rules of this unit application. |
Assignment |
getAssignment()
Get the parameter assignment to be used. |
Assignment |
getResultAssignment()
Get the parameter assignment for the result. |
Object |
getResultParameterValue(String paramName)
Get the value assigned to a parameter. |
List<RuleApplication> |
getUndoneRules()
Get the undone rules of this unit application. |
boolean |
redo(ApplicationMonitor monitor)
Redo this unit application. |
void |
setAssignment(Assignment assignment)
Set the parameter assignment to be used. |
void |
setParameterValue(String paramName,
Object value)
Set the assigned value for a parameter. |
boolean |
undo(ApplicationMonitor monitor)
Undo this unit application. |
protected void |
updateParameterValues(UnitApplicationImpl subUnitApp)
|
Methods inherited from class org.eclipse.emf.henshin.interpreter.impl.AbstractApplicationImpl |
---|
getEGraph, getUnit, setEGraph, setUnit, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Assignment assignment
protected Assignment resultAssignment
protected final Stack<RuleApplication> appliedRules
protected final Stack<RuleApplication> undoneRules
Constructor Detail |
---|
public UnitApplicationImpl(Engine engine)
engine
- Engine to be used.public UnitApplicationImpl(Engine engine, EGraph graph, Unit unit, Assignment assignment)
engine
- Engine to be used.graph
- Target graph.unit
- Unit to be used.assignment
- Assignment.Method Detail |
---|
public boolean execute(ApplicationMonitor monitor)
UnitApplication
monitor
- The application monitor or null
.
true
if the unit was successfully applied.protected boolean doExecute(ApplicationMonitor monitor)
public boolean undo(ApplicationMonitor monitor)
UnitApplication
#execute()
.
monitor
- The application monitor or null
.
true
if the unit was successfully undone.public boolean redo(ApplicationMonitor monitor)
UnitApplication
#undo()
has been invoked. The effect is that the
unit is executed again.
monitor
- The application monitor or null
.
true
if the unit was successfully redone.protected boolean executeRule(ApplicationMonitor monitor)
protected boolean executeIndependentUnit(ApplicationMonitor monitor)
protected boolean executeSequentialUnit(ApplicationMonitor monitor)
protected boolean executeConditionalUnit(ApplicationMonitor monitor)
protected boolean executePriorityUnit(ApplicationMonitor monitor)
protected boolean executeIteratedUnit(ApplicationMonitor monitor)
protected boolean executeLoopUnit(ApplicationMonitor monitor)
protected UnitApplicationImpl createApplicationFor(Unit subUnit)
protected void updateParameterValues(UnitApplicationImpl subUnitApp)
public Assignment getAssignment()
UnitApplication
public void setAssignment(Assignment assignment)
UnitApplication
assignment
- The parameter assignment.public Assignment getResultAssignment()
UnitApplication
public Object getResultParameterValue(String paramName)
UnitApplication
paramName
- The name of the parameter.
null
.public void setParameterValue(String paramName, Object value)
UnitApplication
paramName
- The name of the parameter.value
- The value to be assigned with the parameter.public List<RuleApplication> getAppliedRules()
public List<RuleApplication> getUndoneRules()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |