Class FlowThroughElementComm
- All Implemented Interfaces:
org.eclipse.viatra.query.runtime.api.IQuerySpecification<FlowThroughElementComm.Matcher>,org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader
Original source:
///////////////////// Pattern variants which require crossing the trust boundary and place certain restrictions on the flow/////////////////////
//
// The Through pattern variants (contrary to the to variants) require the flow to cross a trust
// boundary.
// In addition, the fow has to be between certain types of elements
//
///////////////////// ////////////////////////////////////////////////////////// /////////////////////
pattern flowThroughElementComm(location : DataFlow, p : DataFlowEntity, p2 : DataFlowEntity,
t : ThreatType) {
Process(p);
Process(p2);
find threatApplicable(location,t,"ProcessToProcess");
find communication(p,location,p2);
find flowContainerDiff(p,p2);
} or {
Process(p);
DataStore(p2);
find threatApplicable(location,t,"ProcessToDataStore");
find communication(p,location,p2);
find flowContainerDiff(p,p2);
} or {
ExternalEntity(p);
Process(p2);
find threatApplicable(location,t,"ExternalEntityToProcess");
find communication(p,location,p2);
find flowContainerDiff(p,p2);
}
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPattern-specific match representation of the be.kuleuven.cs.distrinet.sparta.queries.flowThroughElementComm pattern, to be used in conjunction withFlowThroughElementComm.Matcher.static classGenerated pattern matcher API of the be.kuleuven.cs.distrinet.sparta.queries.flowThroughElementComm pattern, providing pattern-specific query methods. -
Field Summary
Fields inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification
wrappedPQuery -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowThroughElementComminstance()protected FlowThroughElementComm.Matcherinstantiate(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification
getPreferredScopeClassMethods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification
ensureInitializedInternal, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getInternalQueryRepresentation, getMatcher, getParameterNames, getParameters, getPositionOfParameter, getVisibility, processInitializerErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.viatra.query.runtime.api.IQuerySpecification
getPProblems, getStatusMethods inherited from interface org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader
getParameter, getSimpleName
-
Method Details
-
instance
- Returns:
- the singleton instance of the query specification
-
instantiate
protected FlowThroughElementComm.Matcher instantiate(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine) - Specified by:
instantiatein classorg.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<FlowThroughElementComm.Matcher>
-
instantiate
- Specified by:
instantiatein interfaceorg.eclipse.viatra.query.runtime.api.IQuerySpecification<FlowThroughElementComm.Matcher>- Overrides:
instantiatein classorg.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<FlowThroughElementComm.Matcher>
-
newEmptyMatch
-
newMatch
-