- All Superinterfaces:
Graph,GraphContext,GraphManagerContext,RegistryContext
- All Known Subinterfaces:
IntegratableWrappedGraphObj,InterpretableWrappedGraphObj,ProducableWrappedGraphObj,TWGraph,WrappedGraphObj,WrappedGraphRef
- All Known Implementing Classes:
GraphObject,GraphObjectRef,NonEsoSecGraph,NonEsoThreadedSecGraph,NonEsoWrappedGraph,RewritableWrappedGraph,SecGraph,SecGraphRef,SharedWrappedGraph,ThreadedSecGraph
-
Method Summary
Modifier and TypeMethodDescriptionapply(int count) default booleancanEnumerateEdges(EdgeDirection dir, boolean constEdge, Serializable edge) default booleancanEnumerateNodes(Type type) Can nodes of the specifiedtypebe enumerated?voidclear()default Pattern.MatchercreateMatcher(Pattern pred, XBitSet providedConstants, IntList neededConstantsOut) default ProducerCreates an instance ofProducer.default QueryStateCreates a query state to be used for queries which use this graph.voidderive()default voidenumerateEdges(Object node, EdgeDirection dir, Type edgeType, QueryState qs, int toIndex, int patternIndex, Serializable pattern, int matchIndex, MatchConsumer consumer, int arg) default voidenumerateNodes(Type type, QueryState qs, int tp, MatchConsumer consumer, int arg) This methods enumerates all nodes of this graph of the given type to the givenMatchConsumervia the given query state.default RuntimeModelgetModel()Default implementation for xl.query.graph based on the queryGraph provided from getQueryGraph()getName()default ObjectgetRoot()Returns the root node of this graph.voiddefault voidsetDerivationMode(int mode) voidsetRootNode(Node n) toInstance(boolean transfrom) voidview2d()voidview3d()Methods inherited from interface de.grogra.graph.GraphManagerContext
getGraphMethods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Method Details
-
getDataGraph
GraphManager getDataGraph() -
getQueryGraph
Graph getQueryGraph() -
getRootNode
Node getRootNode() -
setRootNode
-
cloneGraph
- Throws:
CloneNotSupportedException
-
toInstance
-
getName
String getName() -
clear
void clear() -
reload
-
derive
void derive() -
apply
-
getModel
Default implementation for xl.query.graph based on the queryGraph provided from getQueryGraph() -
createQueryState
Description copied from interface:GraphCreates a query state to be used for queries which use this graph. The returned query state has to be an instance of the type defined byCompiletimeModel.getQueryStateType()of the corresponding compile-time model.- Specified by:
createQueryStatein interfaceGraph- Returns:
- a new query state
-
createProducer
Description copied from interface:GraphCreates an instance ofProducer. This factory method creates an instance of a subclass ofProducerwhich will be exclusively used later on in the context of the current match represented byqs. The instance must be an instance of the class returned byCompiletimeModel.getProducerType()for the corresponding compile-time model.The usage of producers is specified by the XL programming language.
- Specified by:
createProducerin interfaceGraph- Parameters:
qs- query state which holds current match for which the producer shall produce a replacement- Returns:
- a producer for use in the context of
qs
-
createMatcher
default Pattern.Matcher createMatcher(Pattern pred, XBitSet providedConstants, IntList neededConstantsOut) - Specified by:
createMatcherin interfaceGraph
-
canEnumerateNodes
Description copied from interface:GraphCan nodes of the specifiedtypebe enumerated? This method returnstrueiff this graph can enumerate nodes of the giventypeusing the methodGraph.enumerateNodes(de.grogra.reflect.Type, de.grogra.xl.query.QueryState, int, de.grogra.xl.query.MatchConsumer, int).- Specified by:
canEnumerateNodesin interfaceGraph- Parameters:
type- the type of nodes- Returns:
trueiff nodes oftypecan be enumerated
-
enumerateNodes
Description copied from interface:GraphThis methods enumerates all nodes of this graph of the given type to the givenMatchConsumervia the given query state. I.e., for every nodecof this extent that has typetype, the following statement is executed:qs.amatch (tp, c, consumer, arg);- Specified by:
enumerateNodesin interfaceGraph- Parameters:
type- the type of nodesqs- the query state on which theamatch-method has to be invokedtp- the index-parameter for theamatch-methodconsumer- the consumer-parameter for theamatch-methodarg- the arg-parameter for theamatch-method
-
canEnumerateEdges
- Specified by:
canEnumerateEdgesin interfaceGraph
-
enumerateEdges
default void enumerateEdges(Object node, EdgeDirection dir, Type edgeType, QueryState qs, int toIndex, int patternIndex, Serializable pattern, int matchIndex, MatchConsumer consumer, int arg) - Specified by:
enumerateEdgesin interfaceGraph
-
getRoot
Description copied from interface:GraphReturns the root node of this graph. -
setDerivationMode
default void setDerivationMode(int mode) -
view2d
void view2d() -
view3d
void view3d()
-