public abstract class BaseProcessGraph<Process extends ProcessModel> extends Object implements ProcessGraph<Process>
Modifier and Type | Field and Description |
---|---|
protected Set<FlowElement> |
sinkElements |
protected Set<FlowElement> |
sourceElements |
protected Map<String,Tap> |
trapsMap |
Constructor and Description |
---|
BaseProcessGraph() |
protected Set<FlowElement> sourceElements
protected Set<FlowElement> sinkElements
public BaseProcessGraph()
public boolean addVertex(Process process)
addVertex
in interface ProcessGraph<Process extends ProcessModel>
protected void bindEdges()
public Set<FlowElement> getSourceElements()
getSourceElements
in interface ProcessGraph<Process extends ProcessModel>
public Set<FlowElement> getSinkElements()
getSinkElements
in interface ProcessGraph<Process extends ProcessModel>
public Set<Tap> getSourceTaps()
getSourceTaps
in interface ProcessGraph<Process extends ProcessModel>
public Set<Tap> getSinkTaps()
getSinkTaps
in interface ProcessGraph<Process extends ProcessModel>
public Map<String,Tap> getTrapsMap()
getTrapsMap
in interface ProcessGraph<Process extends ProcessModel>
public Iterator<Process> getTopologicalIterator()
getTopologicalIterator
in interface ProcessGraph<Process extends ProcessModel>
public Iterator<Process> getOrdinalTopologicalIterator()
getOrdinalTopologicalIterator
in interface ProcessGraph<Process extends ProcessModel>
public Iterator<Process> getOrderedTopologicalIterator(Comparator<Process> comparator)
getOrderedTopologicalIterator
in interface ProcessGraph<Process extends ProcessModel>
public List<ElementGraph> getElementGraphs(FlowElement flowElement)
getElementGraphs
in interface ProcessGraph<Process extends ProcessModel>
public List<Process> getElementProcesses(FlowElement flowElement)
getElementProcesses
in interface ProcessGraph<Process extends ProcessModel>
public List<ElementGraph> getElementGraphs(Scope scope)
getElementGraphs
in interface ProcessGraph<Process extends ProcessModel>
public List<Process> getElementProcesses(Scope scope)
getElementProcesses
in interface ProcessGraph<Process extends ProcessModel>
public List<Process> getElementSourceProcesses(FlowElement flowElement)
getElementSourceProcesses
in interface ProcessGraph<Process extends ProcessModel>
public List<Process> getElementSinkProcesses(FlowElement flowElement)
getElementSinkProcesses
in interface ProcessGraph<Process extends ProcessModel>
public Set<FlowElement> getAllSourceElements()
getAllSourceElements
in interface ProcessGraph<Process extends ProcessModel>
public Set<FlowElement> getAllSinkElements()
getAllSinkElements
in interface ProcessGraph<Process extends ProcessModel>
public EnumMultiMap<FlowElement> getAnnotations()
getAnnotations
in interface ProcessGraph<Process extends ProcessModel>
public Set<FlowElement> getDuplicatedElements(ElementGraph elementGraph)
getDuplicatedElements
in interface ProcessGraph<Process extends ProcessModel>
public Set<ElementGraph> getIdentityElementGraphs()
getIdentityElementGraphs
in interface ProcessGraph<Process extends ProcessModel>
public Set<Process> getIdentityProcesses()
getIdentityProcesses
in interface ProcessGraph<Process extends ProcessModel>
public void writeDOT(String filename)
writeDOT
in interface ProcessGraph<Process extends ProcessModel>
filename
- of type Stringprotected void printProcessGraph(String filename)
public void writeDOTNested(String filename, ElementGraph graph)
writeDOTNested
in interface ProcessGraph<Process extends ProcessModel>
public boolean containsEdge(Process sourceVertex, Process targetVertex)
containsEdge
in interface ProcessGraph<Process extends ProcessModel>
public boolean removeAllEdges(Collection<? extends ProcessEdge> edges)
removeAllEdges
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> removeAllEdges(Process sourceVertex, Process targetVertex)
removeAllEdges
in interface ProcessGraph<Process extends ProcessModel>
public boolean removeAllVertices(Collection<? extends Process> vertices)
removeAllVertices
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> getAllEdges(Process sourceVertex, Process targetVertex)
getAllEdges
in interface ProcessGraph<Process extends ProcessModel>
public ProcessEdge getEdge(Process sourceVertex, Process targetVertex)
getEdge
in interface ProcessGraph<Process extends ProcessModel>
public ProcessEdge addEdge(Process sourceVertex, Process targetVertex)
addEdge
in interface ProcessGraph<Process extends ProcessModel>
public boolean addEdge(Process sourceVertex, Process targetVertex, ProcessEdge processEdge)
addEdge
in interface ProcessGraph<Process extends ProcessModel>
public Process getEdgeSource(ProcessEdge processEdge)
getEdgeSource
in interface ProcessGraph<Process extends ProcessModel>
public Process getEdgeTarget(ProcessEdge processEdge)
getEdgeTarget
in interface ProcessGraph<Process extends ProcessModel>
public boolean containsEdge(ProcessEdge processEdge)
containsEdge
in interface ProcessGraph<Process extends ProcessModel>
public boolean containsVertex(Process process)
containsVertex
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> edgeSet()
edgeSet
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> edgesOf(Process vertex)
edgesOf
in interface ProcessGraph<Process extends ProcessModel>
public int inDegreeOf(Process vertex)
inDegreeOf
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> incomingEdgesOf(Process vertex)
incomingEdgesOf
in interface ProcessGraph<Process extends ProcessModel>
public int outDegreeOf(Process vertex)
outDegreeOf
in interface ProcessGraph<Process extends ProcessModel>
public Set<ProcessEdge> outgoingEdgesOf(Process vertex)
outgoingEdgesOf
in interface ProcessGraph<Process extends ProcessModel>
public ProcessEdge removeEdge(Process sourceVertex, Process targetVertex)
removeEdge
in interface ProcessGraph<Process extends ProcessModel>
public boolean removeEdge(ProcessEdge processEdge)
removeEdge
in interface ProcessGraph<Process extends ProcessModel>
public boolean removeVertex(Process process)
removeVertex
in interface ProcessGraph<Process extends ProcessModel>
public Set<Process> vertexSet()
vertexSet
in interface ProcessGraph<Process extends ProcessModel>
public double getEdgeWeight(ProcessEdge processEdge)
getEdgeWeight
in interface ProcessGraph<Process extends ProcessModel>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.