public interface ITaskGraph<TV,TE>
Modifier and Type | Method and Description |
---|---|
TE |
addTaskEdge(TV sourceTaskVertex,
TV targetTaskVertex)
This method receives the source and target task vertex and create the task edge between the
source and target task vertex.
|
boolean |
addTaskEdge(TV sourceTaskVertex,
TV targetTaskVertex,
TE taskEdge)
This method returns true if the task edge is created between the source task vertex and target task vertex.
|
boolean |
addTaskVertex(TV taskVertex)
This method returns true if the task vertex is created successfully in the graph.
|
boolean |
containsTaskEdge(TE taskEdge)
This method returns true if the task edge persists in the graph.
|
boolean |
containsTaskEdge(TV sourceTaskVertex,
TV targetTaskVertex)
This method returns true if the task edge persists in the graph between the source task vertex TV and target task
vertex TV.
|
boolean |
containsTaskVertex(TV taskVertex)
This method returns true if the task vertex exists in the graph.
|
java.util.Set<TE> |
getAllTaskEdges(TV sourceTaskVertex,
TV targetTaskVertex)
This method receives the source and target task vertex and return the set of task edges
persists in the graph.
|
java.lang.String |
getGraphName() |
java.util.Set<TV> |
getTaskVertexSet()
This method returns the set of task vertexes.
|
java.util.Set<TE> |
incomingTaskEdgesOf(TV taskVertex)
This method returns the set of incoming task edges for the task vertex 'TV'
|
int |
inDegreeOfTask(TV taskVertex)
This method is responsible for returning the number of inward directed edges for the task vertex 'TV'
|
int |
outDegreeOfTask(TV taskVertex)
This method returns the set of outward task edges for the task vertex 'TV'
|
java.util.Set<TE> |
outgoingTaskEdgesOf(TV taskVertex)
This method returns the set of outgoing task edges for the task vertex 'TV'
|
boolean |
removeAllTaskEdges(java.util.Collection<? extends TE> taskEdges)
This method removes all the task edges between the task vertexes.
|
java.util.Set<TE> |
removeAllTaskEdges(TV sourceTaskVertex,
TV targetTaskVertex)
This method remove all the task edges between the source task vertex and target task vertex.
|
boolean |
removeAllTaskVertices(java.util.Collection<? extends TV> taskVertices)
This method removes all the task vertices between the task edges.
|
boolean |
removeTaskEdge(TE taskEdge) |
TE |
removeTaskEdge(TV sourceTaskVertex,
TV targetTaskVertex)
This method remove the particular task edge between the source task vertex and target task vertex.
|
boolean |
removeTaskVertex(TV taskVertex) |
java.util.Set<TE> |
taskEdgeSet()
This method returns the set of task edges.
|
java.util.Set<TE> |
taskEdgesOf(TV taskVertex) |
java.util.Set<TV> getTaskVertexSet()
java.util.Set<TE> taskEdgeSet()
java.util.Set<TE> getAllTaskEdges(TV sourceTaskVertex, TV targetTaskVertex)
TE addTaskEdge(TV sourceTaskVertex, TV targetTaskVertex)
SourceTaskVertex --->TaskEdge---->TargetTaskVertex
TE removeTaskEdge(TV sourceTaskVertex, TV targetTaskVertex)
java.util.Set<TE> removeAllTaskEdges(TV sourceTaskVertex, TV targetTaskVertex)
boolean addTaskEdge(TV sourceTaskVertex, TV targetTaskVertex, TE taskEdge)
boolean addTaskVertex(TV taskVertex)
boolean removeAllTaskEdges(java.util.Collection<? extends TE> taskEdges)
boolean containsTaskEdge(TV sourceTaskVertex, TV targetTaskVertex)
boolean containsTaskEdge(TE taskEdge)
boolean containsTaskVertex(TV taskVertex)
boolean removeTaskVertex(TV taskVertex)
boolean removeTaskEdge(TE taskEdge)
boolean removeAllTaskVertices(java.util.Collection<? extends TV> taskVertices)
int inDegreeOfTask(TV taskVertex)
java.util.Set<TE> incomingTaskEdgesOf(TV taskVertex)
int outDegreeOfTask(TV taskVertex)
java.util.Set<TE> outgoingTaskEdgesOf(TV taskVertex)
java.lang.String getGraphName()