net.sourceforge.combean.interfaces.graph.alg.flow
Interface MulticommodityCapable

Package class diagram package MulticommodityCapable
All Known Subinterfaces:
MulticommodityMinCostFlowAlg
All Known Implementing Classes:
MulticommodityMinCostFlowByLPAlg

public interface MulticommodityCapable

This interface may be combined with single commodity flow interfaces, turning them into the equivalent multicommodity flow variant.


Method Summary
 void focusOnCommodity(int numCommodity)
          All subsequent calls for a single commodity (e.g. setting the edge weight, the inflow or the individual capacitiy) refer to the given commodity.
 void setCommonEdgeCapacityMap(FixedDoubleEdgeMap edgeCapacities)
          Set the edge capacities for the sum of the flows.
 void setNumCommodities(int numCommodities)
          Define the number of commodities.
 

Method Detail

setNumCommodities

void setNumCommodities(int numCommodities)
Define the number of commodities. Must be called before any call to focusOnCommodity. Default is one.

Parameters:
numCommodities -

focusOnCommodity

void focusOnCommodity(int numCommodity)
All subsequent calls for a single commodity (e.g. setting the edge weight, the inflow or the individual capacitiy) refer to the given commodity.

Parameters:
numCommodity - the commodity to which all subsequent calls shall refer.

setCommonEdgeCapacityMap

void setCommonEdgeCapacityMap(FixedDoubleEdgeMap edgeCapacities)
Set the edge capacities for the sum of the flows.

Parameters:
edgeCapacities - a map containing the edge capacities.