public class DirectGraph extends AbstractGraph<Executable>
DirectGraph
is a Graph
that
is executed in the current virtual machine.Constructor and Description |
---|
DirectGraph(java.lang.String topologyName,
ServiceContainer container)
Creates a new
DirectGraph instance underlying the specified
topology. |
Modifier and Type | Method and Description |
---|---|
Executable |
executable()
Returns the
Executable running this graph. |
java.util.Collection<Edge> |
getEdges()
Return an unmodifiable view of all edges in this graph.
|
java.util.Collection<Vertex<? extends Oplet<?,?>,?,?>> |
getVertices()
Return an unmodifiable view of all vertices in this graph.
|
<OP extends Oplet<C,P>,C,P> |
insert(OP oplet,
int inputs,
int outputs)
Add a new unconnected
Vertex into the graph. |
peekAll, pipe, source
public DirectGraph(java.lang.String topologyName, ServiceContainer container)
DirectGraph
instance underlying the specified
topology.topologyName
- name of the topologycontainer
- service containerpublic Executable executable()
Executable
running this graph.public <OP extends Oplet<C,P>,C,P> ExecutableVertex<OP,C,P> insert(OP oplet, int inputs, int outputs)
Graph
Vertex
into the graph.
OP
- an Oplet typeC
- tuple type of input streamsP
- tuple type of output streamsoplet
- the oplet to associate with the new vertexinputs
- the number of input connectors for the new vertexoutputs
- the number of output connectors for the new vertexVertex
for the opletpublic java.util.Collection<Vertex<? extends Oplet<?,?>,?,?>> getVertices()
Graph
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641