org.eclipse.emf.henshin.interpreter
Interface RuleApplication

All Superinterfaces:
UnitApplication
All Known Implementing Classes:
RuleApplicationImpl

public interface RuleApplication
extends UnitApplication

Interface for Rule applications. Rule applications are reusable. To reuse an instance you must invoke setPartialMatch(Match) or setCompleteMatch(Match) or setRule(Rule) before every execution.


Method Summary
 Match getCompleteMatch()
          Get the complete match to be used.
 Match getPartialMatch()
          Get the partial match to be used.
 Match getResultMatch()
          Get the match for the result of the transformation (after the unit has been applied).
 Rule getRule()
          Get the rule to be applied.
 void setCompleteMatch(Match completeMatch)
          Set the complete match to be used.
 void setPartialMatch(Match partialMatch)
          Set the partial match to be used.
 void setRule(Rule rule)
          Set the rule to be applied.
 
Methods inherited from interface org.eclipse.emf.henshin.interpreter.UnitApplication
execute, getAssignment, getEGraph, getResultAssignment, getResultParameterValue, getUnit, redo, setAssignment, setEGraph, setParameterValue, setUnit, undo
 

Method Detail

getRule

Rule getRule()
Get the rule to be applied.

Returns:
The rule to be applied.

setRule

void setRule(Rule rule)
Set the rule to be applied.

Parameters:
rule - The rule to be applied.

getPartialMatch

Match getPartialMatch()
Get the partial match to be used.

Returns:
The partial match.

setPartialMatch

void setPartialMatch(Match partialMatch)
Set the partial match to be used.

Parameters:
partialMatch - The partial match (can be null).

getCompleteMatch

Match getCompleteMatch()
Get the complete match to be used.

Returns:
The complete match.

setCompleteMatch

void setCompleteMatch(Match completeMatch)
Set the complete match to be used. If it is set to null, the complete match will be derived from the partial match.

Parameters:
completeMatch - The complete match (can be null).

getResultMatch

Match getResultMatch()
Get the match for the result of the transformation (after the unit has been applied).

Returns:
The match for the result.