Package org.goplanit.od.demand
Interface OdDemands
-
- All Known Implementing Classes:
OdDemandMatrix
public interface OdDemands extends OdData<Double>
OdData representing Origin-Destination demands without a specific container reference so a general typed definition of OdDemands can be used for access- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidforEachNonZeroDestinationDemand(OdZones odZones, OdZone origin, BiConsumer<OdZone,Double> consumer)Apply the provided consumer to each destination of the origin provided that has non zero demandsdefault voidforEachNonZeroOdDemand(OdZones odZones, TriConsumer<OdZone,OdZone,Double> consumer)Apply the provided consumer to each origin-destination combination found that has non zero demands-
Methods inherited from interface org.goplanit.utils.id.IdAble
clone, compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
forEachNonZeroOdDemand
default void forEachNonZeroOdDemand(OdZones odZones, TriConsumer<OdZone,OdZone,Double> consumer)
Apply the provided consumer to each origin-destination combination found that has non zero demands- Parameters:
odZones- to loop overconsumer- to apply
-
forEachNonZeroDestinationDemand
default void forEachNonZeroDestinationDemand(OdZones odZones, OdZone origin, BiConsumer<OdZone,Double> consumer)
Apply the provided consumer to each destination of the origin provided that has non zero demands- Parameters:
origin- to consider destinations forodZones- to loop destinations overconsumer- to apply
-
-