|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnitApplication
Interface for Unit
applications.
If you want to execute a rule, you can also use
RuleApplication
instead.
Method Summary | |
---|---|
boolean |
execute(ApplicationMonitor monitor)
Execute this unit application. |
Assignment |
getAssignment()
Get the parameter assignment to be used. |
EGraph |
getEGraph()
Get the EGraph to be transformed. |
Assignment |
getResultAssignment()
Get the parameter assignment for the result. |
Object |
getResultParameterValue(String paramName)
Get the value assigned to a parameter. |
Unit |
getUnit()
Get the unit to be applied. |
boolean |
redo(ApplicationMonitor monitor)
Redo this unit application. |
void |
setAssignment(Assignment assignment)
Set the parameter assignment to be used. |
void |
setEGraph(EGraph graph)
Set the EGraph to be transformed. |
void |
setParameterValue(String paramName,
Object value)
Set the assigned value for a parameter. |
void |
setUnit(Unit unit)
Set the unit to be applied. |
boolean |
undo(ApplicationMonitor monitor)
Undo this unit application. |
Method Detail |
---|
Unit getUnit()
void setUnit(Unit unit)
unit
- The transformation unit.EGraph getEGraph()
EGraph
to be transformed.
void setEGraph(EGraph graph)
EGraph
to be transformed.
graph
- The object graph.Assignment getAssignment()
void setAssignment(Assignment assignment)
assignment
- The parameter assignment.void setParameterValue(String paramName, Object value)
paramName
- The name of the parameter.value
- The value to be assigned with the parameter.Assignment getResultAssignment()
Object getResultParameterValue(String paramName)
paramName
- The name of the parameter.
null
.boolean execute(ApplicationMonitor monitor)
monitor
- The application monitor or null
.
true
if the unit was successfully applied.boolean undo(ApplicationMonitor monitor)
#execute()
.
monitor
- The application monitor or null
.
true
if the unit was successfully undone.boolean redo(ApplicationMonitor monitor)
#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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |