public class TraceabilityUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
createTrace(Traceability refModel,
java.lang.String id,
java.util.Collection<org.eclipse.emf.ecore.EObject> sourcesEObject,
java.util.Collection<java.lang.Object> sourcesJavaObject,
java.util.Collection<org.eclipse.emf.ecore.EObject> targets)
Creates a new
Trace instance with the given parameters, and adds it to the referenced
Traceability model |
static void |
deleteTraceAndTarget(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine,
org.eclipse.emf.ecore.EObject toDelete)
Detaches the
Trace with the given id and the corresponding target instances from the base notifier of the
ViatraQueryEngine and returns the target instances. |
public static void createTrace(Traceability refModel, java.lang.String id, java.util.Collection<org.eclipse.emf.ecore.EObject> sourcesEObject, java.util.Collection<java.lang.Object> sourcesJavaObject, java.util.Collection<org.eclipse.emf.ecore.EObject> targets)
Trace
instance with the given parameters, and adds it to the referenced
Traceability
modelrefModel
- is the referenced Traceability
modeltarget
- will be on the target side of the new Trace
id
- for the new Trace
sourcesEObject
- will be on the source side of the new Trace
public static void deleteTraceAndTarget(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine, org.eclipse.emf.ecore.EObject toDelete) throws org.eclipse.viatra.query.runtime.exception.ViatraQueryException
Trace
with the given id and the corresponding target instances from the base notifier of the
ViatraQueryEngine
and returns the target instances.engine
- for trace pattern matchingid
- of traces to be detachedsources
- of traces to be detachedorg.eclipse.viatra.query.runtime.exception.ViatraQueryException