Class ChangeDelta
- java.lang.Object
-
- org.eclipse.viatra.transformation.runtime.emf.changemonitor.ChangeDelta
-
public class ChangeDelta extends java.lang.ObjectClass representing the changes in a given instance model since the last checkpoint. It is implemented as a set ofQueryResultChangeDeltainstances that store deltas grouped byIQuerySpecificationinstances.
-
-
Constructor Summary
Constructors Constructor Description ChangeDelta(java.util.Map<IQuerySpecification<?>,QueryResultChangeDelta> delta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<? extends IPatternMatch>getAllAppeared()Returns a set of matches added to the selected change delta for all query specificationsjava.util.Set<? extends IPatternMatch>getAllDisappeared()Returns a set of matches disappeared in the selected change delta for all query specificationsjava.util.Set<? extends IPatternMatch>getAllUpdated()Returns a set of matches updated in the selected change delta for all query specificationsjava.util.Set<? extends IPatternMatch>getAppeared(IQuerySpecification<?> specification)Returns a set of matches added in the selected change delta for the given query specificationjava.util.Set<IQuerySpecification<?>>getChangedQuerySpecifications()Return a list of query specifications that have corresponding changes.java.util.Set<? extends IPatternMatch>getDisappeared(IQuerySpecification<?> specification)Returns a set of matches disappeared in the selected change delta for the given query specificationjava.util.Set<? extends IPatternMatch>getUpdated(IQuerySpecification<?> specification)Returns a set of matches updated in the selected change delta for the given query specificationinthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ChangeDelta
public ChangeDelta(java.util.Map<IQuerySpecification<?>,QueryResultChangeDelta> delta)
- Since:
- 2.0
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getChangedQuerySpecifications
public java.util.Set<IQuerySpecification<?>> getChangedQuerySpecifications()
Return a list of query specifications that have corresponding changes.- Since:
- 2.0
-
getAppeared
public java.util.Set<? extends IPatternMatch> getAppeared(IQuerySpecification<?> specification)
Returns a set of matches added in the selected change delta for the given query specification- Since:
- 2.0
-
getAllAppeared
public java.util.Set<? extends IPatternMatch> getAllAppeared()
Returns a set of matches added to the selected change delta for all query specifications- Since:
- 2.0
-
getUpdated
public java.util.Set<? extends IPatternMatch> getUpdated(IQuerySpecification<?> specification)
Returns a set of matches updated in the selected change delta for the given query specification- Since:
- 2.0
-
getAllUpdated
public java.util.Set<? extends IPatternMatch> getAllUpdated()
Returns a set of matches updated in the selected change delta for all query specifications- Since:
- 2.0
-
getDisappeared
public java.util.Set<? extends IPatternMatch> getDisappeared(IQuerySpecification<?> specification)
Returns a set of matches disappeared in the selected change delta for the given query specification- Since:
- 2.0
-
getAllDisappeared
public java.util.Set<? extends IPatternMatch> getAllDisappeared()
Returns a set of matches disappeared in the selected change delta for all query specifications- Since:
- 2.0
-
-