|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.facade.impl.DefaultTransformationFacade
public class DefaultTransformationFacade
Collection of methods for storing and retrieving information in attribute tuples and members.
Field Summary | |
---|---|
protected static DefaultTransformationFacade |
myOnlyInstance
|
Constructor Summary | |
---|---|
protected |
DefaultTransformationFacade()
|
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. |
static TransformationFacade |
self()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static DefaultTransformationFacade myOnlyInstance
Constructor Detail |
---|
protected DefaultTransformationFacade()
Method Detail |
---|
public static TransformationFacade self()
public AttrManager getAttrManager()
getAttrManager
in interface TransformationFacade
public AttrContext newRuleContext()
newRuleContext
in interface TransformationFacade
public AttrContext getLeftContext(AttrContext ruleContext)
getLeftContext
in interface TransformationFacade
public AttrContext getRightContext(AttrContext ruleContext)
getRightContext
in interface TransformationFacade
public void checkIfReadyToMatch(AttrContext ruleContext) throws AttrException
checkIfReadyToMatch
in interface TransformationFacade
AttrException
public AttrContext newMatchContext(AttrContext ruleContext)
newMatchContext
in interface TransformationFacade
public AttrMapping newMapping(AttrContext mappingContext, AttrInstance source, AttrInstance target) throws AttrException
newMapping
in interface TransformationFacade
mappingContext
- The context to include the mapping insource
- Mapping source attributetarget
- Mapping target attribute
AttrException
public boolean nextMapping(AttrMapping mapping)
nextMapping
in interface TransformationFacade
public void removeMapping(AttrMapping mapping)
removeMapping
in interface TransformationFacade
public void checkIfReadyToTransform(AttrContext matchContext) throws AttrException
checkIfReadyToTransform
in interface TransformationFacade
AttrException
public int getNumberOfFreeVariables(AttrInstance tuple, AttrContext context)
getNumberOfFreeVariables
in interface TransformationFacade
public void apply(AttrInstance workGraphInst, AttrInstance rightSideInst, AttrContext context)
apply
in interface TransformationFacade
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |