Class FlowComm

java.lang.Object
org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<FlowComm.Matcher>
org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification<FlowComm.Matcher>
be.kuleuven.cs.distrinet.sparta.queries.FlowComm
All Implemented Interfaces:
org.eclipse.viatra.query.runtime.api.IQuerySpecification<FlowComm.Matcher>, org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader

public final class FlowComm extends org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification<FlowComm.Matcher>
A pattern-specific query specification that can instantiate Matcher in a type-safe way.

Original source:

         pattern flowComm(location : DataFlow, p : DataFlowEntity, p2 : DataFlowEntity,
                                                                t : ThreatType) {
                DataFlow(location);DataFlowEntity(p);DataFlowEntity(p2);
         
                find threatApplicable(location,t,"DataFlow");
                find communication(p,location,p2);
         } or {
                Process(p);
                Process(p2);
                find threatApplicable(location,t,"ProcessToProcess");
                find communication(p,location,p2);
         } or {
                Process(p);
                DataStore(p2);
                find threatApplicable(location,t,"ProcessToDataStore");
                find communication(p,location,p2);
         } or {
                DataStore(p);
                Process(p2);
                find threatApplicable(location,t,"DataStoreToProcess");
                find communication(p,location,p2);
         } or {
                Process(p);
                ExternalEntity(p2);
                find threatApplicable(location,t,"ProcessToExternalEntity");
                find communication(p,location,p2);
         } or {
                ExternalEntity(p);
                Process(p2);
                find threatApplicable(location,t,"ExternalEntityToProcess");
                find communication(p,location,p2);
         }
 
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Pattern-specific match representation of the be.kuleuven.cs.distrinet.sparta.queries.flowComm pattern, to be used in conjunction with FlowComm.Matcher.
    static class 
    Generated pattern matcher API of the be.kuleuven.cs.distrinet.sparta.queries.flowComm 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 Type
    Method
    Description
    static FlowComm
     
     
    instantiate(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
     
     
    newMatch(Object... parameters)
     

    Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedEMFQuerySpecification

    getPreferredScopeClass

    Methods inherited from class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification

    ensureInitializedInternal, getAllAnnotations, getAnnotationsByName, getFirstAnnotationByName, getFullyQualifiedName, getInternalQueryRepresentation, getMatcher, getParameterNames, getParameters, getPositionOfParameter, getVisibility, processInitializerError

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.viatra.query.runtime.api.IQuerySpecification

    getPProblems, getStatus

    Methods inherited from interface org.eclipse.viatra.query.runtime.matchers.psystem.queries.PQueryHeader

    getParameter, getSimpleName
  • Method Details

    • instance

      public static FlowComm instance()
      Returns:
      the singleton instance of the query specification
    • instantiate

      protected FlowComm.Matcher instantiate(org.eclipse.viatra.query.runtime.api.ViatraQueryEngine engine)
      Specified by:
      instantiate in class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<FlowComm.Matcher>
    • instantiate

      public FlowComm.Matcher instantiate()
      Specified by:
      instantiate in interface org.eclipse.viatra.query.runtime.api.IQuerySpecification<FlowComm.Matcher>
      Overrides:
      instantiate in class org.eclipse.viatra.query.runtime.api.impl.BaseQuerySpecification<FlowComm.Matcher>
    • newEmptyMatch

      public FlowComm.Match newEmptyMatch()
    • newMatch

      public FlowComm.Match newMatch(Object... parameters)