Class Library

java.lang.Object
de.grogra.graph.object.sg.impl.Library

public class Library extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Apply a rule (a SecGraph with a queryRoot and a ProductionRoot) on the ProjectGraph
    static void
    apply(SecGraph rule, SecGraph on)
    Apply a rule (a SecGraph with a queryRoot and a ProductionRoot) on the Destination-SecGraph.
    static boolean
    Tests if the given query-SecGraph can be found in a second secGraph(destination)
    static boolean
    includedIn(SecGraph query, SecGraph in, boolean asQuery)
    Tests if the given SecGrph or the query subgraph can be found in the proveided Destination-SecGraph.
    static boolean
    inGraph(Node start)
    Tests if the subgraph below the RootNode can be found in the currently used RGGgraph
    static boolean
    inGraph(SecGraph sg, boolean asQuery)
    Tests if the given SecGraph or the query subgraph can be found in the currently used RGGGraph.
    static boolean
    Tests if the given SecGraph can be found in the Project Graph
    static boolean
    inProjectGraph(SecGraph query, boolean asQuery)
    Tests if either full SecGraph or the query subgraph of it can be found in the Project Graph
    static SecGraph
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Library

      public Library()
  • Method Details

    • operator$add

      public static SecGraph operator$add(SecGraph s1, SecGraph s2)
    • apply

      public static void apply(SecGraph rule) throws de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
      Apply a rule (a SecGraph with a queryRoot and a ProductionRoot) on the ProjectGraph
      Parameters:
      rule - RuleGraph
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
    • apply

      public static void apply(SecGraph rule, SecGraph on) throws de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
      Apply a rule (a SecGraph with a queryRoot and a ProductionRoot) on the Destination-SecGraph. By setting the in to be current.
      Parameters:
      rule - RuleGraph
      on - Destination-SecGraph
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
    • inProjectGraph

      public static boolean inProjectGraph(SecGraph query) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
      Tests if the given SecGraph can be found in the Project Graph
      Parameters:
      query - SecGraph
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
    • inProjectGraph

      public static boolean inProjectGraph(SecGraph query, boolean asQuery) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
      Tests if either full SecGraph or the query subgraph of it can be found in the Project Graph
      Parameters:
      query - SecGraph
      asQuery - asQuery
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
    • includedIn

      public static boolean includedIn(SecGraph query, SecGraph in) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
      Tests if the given query-SecGraph can be found in a second secGraph(destination)
      Parameters:
      query - SecGraph
      in - Destination-SecGraph
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
    • includedIn

      public static boolean includedIn(SecGraph query, SecGraph in, boolean asQuery) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
      Tests if the given SecGrph or the query subgraph can be found in the proveided Destination-SecGraph. By setting the Destination-SecGraph to be current.
      Parameters:
      query - SecGraph
      in - Destination-SecGraph
      asQuery -
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
    • inGraph

      public static boolean inGraph(SecGraph sg, boolean asQuery) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
      Tests if the given SecGraph or the query subgraph can be found in the currently used RGGGraph.
      Parameters:
      sq - SecGraph
      asQuery -
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
    • inGraph

      public static boolean inGraph(Node start)
      Tests if the subgraph below the RootNode can be found in the currently used RGGgraph
      Parameters:
      start - RootNode
      Returns:
      Throws:
      de.grogra.graph.object.sg.impl.exception.NoQueryGraphException