- All Superinterfaces:
Cloneable
,GraphContext
,GraphManagerContext
,GraphObject
,ProducingNode
,RegistryContext
- All Known Implementing Classes:
SecGraphImpl
,SecGraphRef
defines what a graph object stored in the SecGraph explorer should be able to do
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(GraphContext sg) void
apply the given SecGraph on this SecGraphvoid
Apply a RGG function on the SecGraphvoid
Apply an XL Query on the SecGraphvoid
clear()
removes all Nodes except the rootclone()
void
execute()
run this SecGraph as a rule on the MainGraphvoid
run this SecGraph as a rule on the given secGraphcreate a new producer to initialize the GraphgetProductionRoot
(boolean create) getQueryRoot
(boolean create) void
function triggered by the saving of the projectboolean
test if this SecGraph incldues the SecGraph SGboolean
test if this SecGraph incldues the given SecGraph or if the query SecGraph of this graph is included in the given SecGraphboolean
test if this graph is included in the ProjectGraphboolean
inProjectGraph
(boolean asQuery) test if this graph is included in the ProjectGraph or if the query SecGraph of this graph is included in the Project Graphboolean
check if the secgraph includes a queryRootboolean
check if the secgraph includes a QueryRoot and a ProductionRootquery()
void
set the project graph to be teh current onevoid
setAutoRecreate
(boolean b) defines if the SecGraph is automatically recreated if the model is savedvoid
set this graph to be the currently used onecreates a Node holding a instanciation of the SecGraphMethods inherited from interface de.grogra.graph.object.GraphObject
cloneGraph, describes, getGraph, getName, getNode, getRootNode, reload, resolve, setRootNode, view2d, view3d, write
Methods inherited from interface de.grogra.imp.objects.ProducingNode
produceNode
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Field Details
-
QUERY_ROOT
- See Also:
-
PRODUCTION_ROOT
- See Also:
-
-
Method Details
-
clear
void clear()removes all Nodes except the root -
apply
Apply a RGG function on the SecGraph- Parameters:
name
- : name of the function
-
applyXL
Apply an XL Query on the SecGraph- Parameters:
query
- : the XL query
-
toInstance
Node toInstance()creates a Node holding a instanciation of the SecGraph- Returns:
- the Node
-
handleSaveEvent
void handleSaveEvent()function triggered by the saving of the project -
setAutoRecreate
void setAutoRecreate(boolean b) defines if the SecGraph is automatically recreated if the model is saved- Parameters:
b
- sets if recreated or not
-
getInitalProducer
Object getInitalProducer()create a new producer to initialize the Graph- Returns:
-
setCurrent
void setCurrent()set this graph to be the currently used one -
releaseCurrent
void releaseCurrent()set the project graph to be teh current one -
isQueryGraph
boolean isQueryGraph()check if the secgraph includes a queryRoot- Returns:
-
isRuleGraph
boolean isRuleGraph()check if the secgraph includes a QueryRoot and a ProductionRoot- Returns:
-
getQueryRoot
-
getProductionRoot
-
query
Object query() -
production
Object production() -
includes
test if this SecGraph incldues the SecGraph SG- Parameters:
sg
-- Returns:
- Throws:
de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
-
includes
boolean includes(SecGraph sg, boolean asQuery) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException test if this SecGraph incldues the given SecGraph or if the query SecGraph of this graph is included in the given SecGraph- Parameters:
sg
-- Returns:
- Throws:
de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
-
inProjectGraph
boolean inProjectGraph() throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphExceptiontest if this graph is included in the ProjectGraph- Returns:
- Throws:
de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
-
inProjectGraph
boolean inProjectGraph(boolean asQuery) throws de.grogra.graph.object.sg.impl.exception.NoQueryGraphException test if this graph is included in the ProjectGraph or if the query SecGraph of this graph is included in the Project Graph- Parameters:
asQuery
-- Returns:
- Throws:
de.grogra.graph.object.sg.impl.exception.NoQueryGraphException
-
execute
void execute() throws de.grogra.graph.object.sg.impl.exception.NoRuleGraphExceptionrun this SecGraph as a rule on the MainGraph- Throws:
de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
-
execute
run this SecGraph as a rule on the given secGraph- Parameters:
sg
-- Throws:
de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
-
apply
apply the given SecGraph on this SecGraph- Parameters:
rule
-- Throws:
de.grogra.graph.object.sg.impl.exception.NoRuleGraphException
-
clone
- Throws:
CloneNotSupportedException
-
add
-
producer$begin
SecGraphInitialProducer producer$begin()
-