- All Implemented Interfaces:
GraphContext,GraphManagerContext,Integrateable,Interpretable,Producable,Rewritable,WrappedGraph,WrappedGraphRef,ProducingNode,Manageable,Shareable,RegistryContext,Graph
@HasModel(Compiletime.class)
public class SecGraphRef
extends ItemReference<SecGraph>
implements WrappedGraphRef, Rewritable, Interpretable, Integrateable, Producable, ProducingNode
This class is used to reference the SecGraph from the SecGraph Explorer in the RGG code
or to create new SecGraphs on the fly (which then are added to the explorer)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class de.grogra.pf.registry.ItemReference
item, itemResolved, name$FIELD, object, objectResolved -
Constructor Summary
ConstructorsConstructorDescriptionSecGraphRef(String name) SecGraphRef(String name, Node root) SecGraphRef(String name, WrappedGraph wg) -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemcreateItem(RegistryContext ctx, String directory, String name) If a SecGraphRef class is created with a name that is not in the explorer the following creates a new SecGraph in the secgraphs registry directory and links a project file to itstatic SecGraphRefstatic SecGraphRef[]getAll()static SecGraphRef[]getAll(int max) getName()intepreteEmbed(Object[] parameter) interpreteGraph(Object[] parameter) InterpreteObject(Object[] parameter, ParametricVisitor pv) booleanoperator$index(String key) resolve()static voidStatic function called from a hook to write the content of all secgraphs in the secgraphs registry-directory in their project files.voidsetAutoRecreate(boolean autoRecreate) booleanvoidMethods inherited from class de.grogra.pf.registry.ItemReference
equals, findChildrenWithoutExtension, hashCode, removeExtension, resolveItem, resolveObjectMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.graph.wrapped.WrappedGraph
setDerivationModeMethods inherited from interface de.grogra.graph.wrapped.WrappedGraphRef
apply, canEnumerateEdges, canEnumerateNodes, clear, cloneGraph, createMatcher, createProducer, createQueryState, derive, enumerateEdges, enumerateNodes, getDataGraph, getGraph, getModel, getQueryGraph, getRegistry, getRoot, getRootNode, reload, reload, setRootNode, toInstance, view2d, view3d
-
Field Details
-
$TYPE
-
-
Constructor Details
-
SecGraphRef
public SecGraphRef() -
SecGraphRef
-
SecGraphRef
-
SecGraphRef
-
-
Method Details
-
get
-
getAll
-
getAll
-
setAutoRecreate
public void setAutoRecreate(boolean autoRecreate) - Specified by:
setAutoRecreatein interfaceRewritable
-
write
- Specified by:
writein interfaceRewritable
-
resolve
- Specified by:
resolvein interfaceWrappedGraphRef
-
cloneEmbed
- Specified by:
cloneEmbedin interfaceIntegrateable- Throws:
CloneNotSupportedException
-
interpreteGraph
- Specified by:
interpreteGraphin interfaceInterpretable- Throws:
CloneNotSupportedException
-
intepreteEmbed
- Specified by:
intepreteEmbedin interfaceInterpretable- Throws:
CloneNotSupportedException
-
InterpreteObject
public Object InterpreteObject(Object[] parameter, ParametricVisitor pv) throws CloneNotSupportedException - Specified by:
InterpreteObjectin interfaceInterpretable- Throws:
CloneNotSupportedException
-
getName
- Specified by:
getNamein interfaceWrappedGraph- Specified by:
getNamein interfaceWrappedGraphRef- Overrides:
getNamein classItemReference<SecGraph>
-
producer$begin
- Specified by:
producer$beginin interfaceProducable
-
createItem
If a SecGraphRef class is created with a name that is not in the explorer the following creates a new SecGraph in the secgraphs registry directory and links a project file to it- Overrides:
createItemin classItemReference<SecGraph>
-
save
Static function called from a hook to write the content of all secgraphs in the secgraphs registry-directory in their project files. This has no influence on the SecGraphs used as fields since they are stored in the ESOsecgrpahs registry-directory.- Parameters:
Registry- r
-
operator$index
-
isAutoRecreate
public boolean isAutoRecreate()- Specified by:
isAutoRecreatein interfaceRewritable
-
getInitalProducer
- Specified by:
getInitalProducerin interfaceProducable
-
wasChanged
public boolean wasChanged()- Specified by:
wasChangedin interfaceRewritable
-
getOutNode
- Specified by:
getOutNodein interfaceIntegrateable
-
getFullTransformation
- Specified by:
getFullTransformationin interfaceIntegrateable
-
produceNode
- Specified by:
produceNodein interfaceProducingNode
-
getManageableType
- Specified by:
getManageableTypein interfaceManageable
-