|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Flow<V,A extends Arc<V>>
This interface is used to manage flow. This flow is simplest one, one source and one destination
Method Summary | |
---|---|
java.util.Iterator<A> |
edgeWithFlowIterator()
Give an iterator on all edge of this flows. |
V |
getDestination()
Give the destination of this flow. |
AbstractScalar |
getFlow(A e)
Give the quantity of flow associated with an edge. |
AbstractScalar |
getIncomingFlow(V v)
Return the quantity of flow incoming to vertex v. |
AbstractScalar |
getOutgoingFlow(V v)
Return the quantity of flow outgoing from vertex v. |
V |
getSource()
Give the source of this flow. |
Graph<V,A> |
getUnderlyingGraph()
Give the underlying graph associated with this flow. |
void |
setFlow(A e,
AbstractScalar value)
Set the quantity of flow associated to an edge. |
void |
setFlow(V source,
V destination,
AbstractScalar value)
Set source, destination and value of this flow. |
boolean |
verify()
Verify the coherence of the flow. |
Method Detail |
---|
void setFlow(V source, V destination, AbstractScalar value)
source
- The source.destination
- The destination.value
- The value of flow.V getSource()
null
if not define.V getDestination()
null
if not define.AbstractScalar getIncomingFlow(V v)
v
- The vertex.
AbstractScalar getOutgoingFlow(V v)
v
- The vertex.
void setFlow(A e, AbstractScalar value)
e
- The edge.value
- The quantity of flow associated to the edge e.AbstractScalar getFlow(A e)
e
- The edge.
java.util.Iterator<A> edgeWithFlowIterator()
Graph<V,A> getUnderlyingGraph()
boolean verify()
Flow
must define exactly what
this method do.
true
if this flow is coherent with verifications and
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |