java.lang.Object
de.grogra.graph.object.sg.impl.Library
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Apply arule
(a SecGraph with a queryRoot and a ProductionRoot) on the ProjectGraphstatic void
Apply arule
(a SecGraph with a queryRoot and a ProductionRoot) on the Destination-SecGraph.static boolean
includedIn
(SecGraph query, SecGraph in) 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
Tests if the subgraph below the RootNode can be found in the currently used RGGgraphstatic boolean
Tests if the given SecGraph or the query subgraph can be found in the currently used RGGGraph.static boolean
inProjectGraph
(SecGraph query) Tests if the given SecGraph can be found in the Project Graphstatic boolean
inProjectGraph
(SecGraph query, boolean asQuery) Tests if either full SecGraph or the query subgraph of it can be found in the Project Graphstatic SecGraph
operator$add
(SecGraph s1, SecGraph s2)
-
Constructor Details
-
Library
public Library()
-
-
Method Details
-
operator$add
-
apply
public static void apply(SecGraph rule) throws de.grogra.graph.object.sg.impl.exception.NoRuleGraphException Apply arule
(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 arule
(a SecGraph with a queryRoot and a ProductionRoot) on the Destination-SecGraph. By setting thein
to be current.- Parameters:
rule
- RuleGraphon
- 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
- SecGraphasQuery
- 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
- SecGraphin
- 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
- SecGraphin
- Destination-SecGraphasQuery
-- 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
- SecGraphasQuery
-- Returns:
- Throws:
de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
-
inGraph
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
-