|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransformationFacade
Method Summary | |
---|---|
void |
apply(AttrInstance workGraphInst,
AttrInstance rightSideInst,
AttrContext context)
Applying a rule; the substitutions occur "in-place" (in the recipient); In Graph Transformation, this method is applied to attributes of host graph objects, "rightSide" being an attribute of the right side of the rule and "context" being the "match"-context built up by subsequently matching the attributes of corresponding graphical objects. |
void |
checkIfReadyToMatch(AttrContext ruleContext)
Checking if matching can be performed with respect to a given rule context. |
void |
checkIfReadyToTransform(AttrContext matchContext)
Checking if a transformation can be performed with the attributes with respect to a given context. |
AttrManager |
getAttrManager()
Returns the default attribute manager which can be used for advanced operations not provided by this facade. |
AttrContext |
getLeftContext(AttrContext ruleContext)
Returns the left side context to a rule context. |
int |
getNumberOfFreeVariables(AttrInstance tuple,
AttrContext context)
Getting the number of variables declared by an instance which have no value assigned to them yet. |
AttrContext |
getRightContext(AttrContext ruleContext)
Returns the right side context to a rule context. |
AttrMapping |
newMapping(AttrContext mappingContext,
AttrInstance source,
AttrInstance target)
Mapping between two attribute instances; The mapping is done according to the context property (rule/match) and is integrated into the context; |
AttrContext |
newMatchContext(AttrContext ruleContext)
Creates and returns a new match context to a rule context. |
AttrContext |
newRuleContext()
Creates and returns a new rule context. |
boolean |
nextMapping(AttrMapping mapping)
Use the next possible attribute mapping; |
void |
removeMapping(AttrMapping mapping)
Discard mapping; Removes variable assignments made by a mapping from its context and dissolves the connection between the attribute instances. |
Method Detail |
---|
AttrManager getAttrManager()
AttrContext newRuleContext()
AttrContext getLeftContext(AttrContext ruleContext)
AttrContext getRightContext(AttrContext ruleContext)
void checkIfReadyToMatch(AttrContext ruleContext) throws AttrException
AttrException
AttrContext newMatchContext(AttrContext ruleContext)
AttrMapping newMapping(AttrContext mappingContext, AttrInstance source, AttrInstance target) throws AttrException
mappingContext
- The context to include the mapping insource
- Mapping source attributetarget
- Mapping target attribute
AttrException
boolean nextMapping(AttrMapping mapping)
void removeMapping(AttrMapping mapping)
void checkIfReadyToTransform(AttrContext matchContext) throws AttrException
AttrException
int getNumberOfFreeVariables(AttrInstance tuple, AttrContext context)
void apply(AttrInstance workGraphInst, AttrInstance rightSideInst, AttrContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |