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 protected
IterationQueryBasedFeature(org.eclipse.emf.ecore.EStructuralFeature feature, boolean keepCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
afterUpdate()
protected void
beforeUpdate()
java.lang.Object
getValue(java.lang.Object source)
abstract java.lang.Object
getValueIteration(java.lang.Object source)
protected abstract org.eclipse.emf.ecore.impl.ENotificationImpl
lostMatchIteration(IPatternMatch signature)
Called each time when a match is lost for Iteration kindprotected abstract org.eclipse.emf.ecore.impl.ENotificationImpl
newMatchIteration(IPatternMatch signature)
Called each time when a new match is found for Iteration kindprotected void
processAppearedMatch(IPatternMatch signature)
protected void
processDisappearedMatch(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:
processDisappearedMatch
in classQueryBasedFeature
-
processAppearedMatch
protected void processAppearedMatch(IPatternMatch signature)
- Specified by:
processAppearedMatch
in classQueryBasedFeature
-
afterUpdate
protected void afterUpdate()
- Specified by:
afterUpdate
in classQueryBasedFeature
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdate
in 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:
getValue
in classQueryBasedFeature
-
getValueIteration
public abstract java.lang.Object getValueIteration(java.lang.Object source)
-
-