public class SCorpusGraphDOTWriter extends Object implements GraphTraverseHandler
| Constructor and Description |
|---|
SCorpusGraphDOTWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConstraint(SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
SRelation edge,
SNode currNode,
long order)
This method is called during a traversal to check if the current node and
eventually its sub-graph shall be traversed or not.
|
org.eclipse.emf.common.util.URI |
getOutputURI() |
SCorpusGraph |
getSCorpusGraph() |
void |
nodeLeft(SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
SNode currNode,
SRelation edge,
SNode fromNode,
long order)
This method will be invoked, when a node is left, after the method
#checkConstraint(GRAPH_TRAVERSE_TYPE, String, SRelation, SNode, long)
has returned true and the method
#nodeReached(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
has been invoked. |
void |
nodeReached(SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
SNode currSNode,
SRelation relation,
SNode fromSNode,
long order)
This method will be invoked, when a node is reached, after the method
#checkConstraint(GRAPH_TRAVERSE_TYPE, String, SRelation, SNode, long)
has returned true and before the method
#nodeLeft(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
is invoked. |
void |
save() |
void |
setOutputURI(org.eclipse.emf.common.util.URI outputURI) |
void |
setSCorpusGraph(SCorpusGraph sCorpusGraph) |
public void setOutputURI(org.eclipse.emf.common.util.URI outputURI)
public org.eclipse.emf.common.util.URI getOutputURI()
public void setSCorpusGraph(SCorpusGraph sCorpusGraph)
public SCorpusGraph getSCorpusGraph()
public void save()
public boolean checkConstraint(SGraph.GRAPH_TRAVERSE_TYPE traversalType, String traversalId, SRelation edge, SNode currNode, long order)
GraphTraverseHandler#nodeReached(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
and
#nodeLeft(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
as well will not be invoked. Otherwise the method
#nodeReached(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
will be invoked, when a new node is reached and
#nodeLeft(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
will be invoked, when this node is left.checkConstraint in interface GraphTraverseHandlertraversalType - the type of current traversaltraversalId - the id of current traversal, given by the invoking objectedge - the relation via which the current node was reachedcurrNode - the current nodeorder - the number of the relation in the parent nodepublic void nodeLeft(SGraph.GRAPH_TRAVERSE_TYPE traversalType, String traversalId, SNode currNode, SRelation edge, SNode fromNode, long order)
GraphTraverseHandler#checkConstraint(GRAPH_TRAVERSE_TYPE, String, SRelation, SNode, long)
has returned true and the method
#nodeReached(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
has been invoked.nodeLeft in interface GraphTraverseHandlertraversalType - the type of current traversaltraversalId - the id of current traversal, given by the invoking objectcurrNode - the current nodeedge - the relation via which the current node was reachedfromNode - the parent nodeorder - the number of the relation in the parent nodepublic void nodeReached(SGraph.GRAPH_TRAVERSE_TYPE traversalType, String traversalId, SNode currSNode, SRelation relation, SNode fromSNode, long order)
GraphTraverseHandler#checkConstraint(GRAPH_TRAVERSE_TYPE, String, SRelation, SNode, long)
has returned true and before the method
#nodeLeft(GRAPH_TRAVERSE_TYPE, String, SNode, SRelation, SNode, long)
is invoked.nodeReached in interface GraphTraverseHandlertraversalType - the type of current traversaltraversalId - the id of current traversal, given by the invoking objectcurrSNode - the current noderelation - the relation via which the current node was reachedfromSNode - the parent nodeorder - the number of the relation in the parent nodeCopyright © 2009–2015 Humboldt-Universität zu Berlin, INRIA. All rights reserved.