Class IterationQueryBasedFeature
- java.lang.Object
-
- org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeature
-
- org.eclipse.viatra.addon.querybasedfeatures.runtime.handler.IterationQueryBasedFeature
-
- Direct Known Subclasses:
SumQueryBasedFeature
public abstract class IterationQueryBasedFeature extends QueryBasedFeature
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIterationQueryBasedFeature(org.eclipse.emf.ecore.EStructuralFeature feature, boolean keepCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafterUpdate()protected voidbeforeUpdate()java.lang.ObjectgetValue(java.lang.Object source)abstract java.lang.ObjectgetValueIteration(java.lang.Object source)protected abstract org.eclipse.emf.ecore.impl.ENotificationImpllostMatchIteration(IPatternMatch signature)Called each time when a match is lost for Iteration kindprotected abstract org.eclipse.emf.ecore.impl.ENotificationImplnewMatchIteration(IPatternMatch signature)Called each time when a new match is found for Iteration kindprotected voidprocessAppearedMatch(IPatternMatch signature)protected voidprocessDisappearedMatch(IPatternMatch signature)-
Methods inherited from class org.eclipse.viatra.addon.querybasedfeatures.runtime.QueryBasedFeature
appendNotificationToList, engineForMatcher, getFeature, getKind, getMatcher, getSourceParamName, getSourceValue, getTargetParamName, getTargetValue, initialize, isCached, isInitialized, setMatcher, setSourceParamName, setTargetParamName, startMonitoring
-
-
-
-
Method Detail
-
processDisappearedMatch
protected void processDisappearedMatch(IPatternMatch signature)
- Specified by:
processDisappearedMatchin classQueryBasedFeature
-
processAppearedMatch
protected void processAppearedMatch(IPatternMatch signature)
- Specified by:
processAppearedMatchin classQueryBasedFeature
-
afterUpdate
protected void afterUpdate()
- Specified by:
afterUpdatein classQueryBasedFeature
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdatein classQueryBasedFeature
-
newMatchIteration
protected abstract org.eclipse.emf.ecore.impl.ENotificationImpl newMatchIteration(IPatternMatch signature)
Called each time when a new match is found for Iteration kind- Parameters:
signature-- Returns:
- notification to be sent, if one is necessary
-
lostMatchIteration
protected abstract org.eclipse.emf.ecore.impl.ENotificationImpl lostMatchIteration(IPatternMatch signature)
Called each time when a match is lost for Iteration kind- Parameters:
signature-- Returns:
- notification to be sent, if one is necessary
-
getValue
public java.lang.Object getValue(java.lang.Object source)
- Specified by:
getValuein classQueryBasedFeature
-
getValueIteration
public abstract java.lang.Object getValueIteration(java.lang.Object source)
-
-