public abstract class AbstractGenerator extends Object
| Constructor and Description |
|---|
AbstractGenerator(String label)
Constructs a new network generator for edges with the given label and an empty annotator.
|
AbstractGenerator(String label,
EdgeAnnotator annotator)
Constructs a new network generator for edges with the given label and annotator.
|
AbstractGenerator(String label,
EdgeAnnotator edgeAnnotator,
VertexAnnotator vertexAnnotator)
Constructs a new network generator for edges with the given label and annotator.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.tinkerpop.blueprints.Edge |
addEdge(com.tinkerpop.blueprints.Graph graph,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in) |
EdgeAnnotator |
getEdgeAnnotator()
Returns the
EdgeAnnotator for this generator |
String |
getLabel()
Returns the label for this generator.
|
VertexAnnotator |
getVertexAnnotator()
Returns the
VertexAnnotator for this generator |
protected com.tinkerpop.blueprints.Vertex |
processVertex(com.tinkerpop.blueprints.Vertex vertex,
Map<String,Object> context) |
public AbstractGenerator(String label, EdgeAnnotator edgeAnnotator, VertexAnnotator vertexAnnotator)
label - Label for the generated edgesedgeAnnotator - EdgeAnnotator to use for annotating newly generated edges.vertexAnnotator - VertexAnnotator to use for annotating process vertices.public AbstractGenerator(String label, EdgeAnnotator annotator)
label - Label for the generated edgesannotator - EdgeAnnotator to use for annotating newly generated edges.public AbstractGenerator(String label)
label - Label for the generated edgespublic final String getLabel()
public final EdgeAnnotator getEdgeAnnotator()
EdgeAnnotator for this generatorpublic final VertexAnnotator getVertexAnnotator()
VertexAnnotator for this generatorprotected final com.tinkerpop.blueprints.Edge addEdge(com.tinkerpop.blueprints.Graph graph,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
Copyright © 2012–2016. All rights reserved.