Interface OdDemands

    • Method Detail

      • multiply

        void multiply​(double factor)
        Multiply all entries with given factor
        Parameters:
        factor - to multiply with
      • 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 over
        consumer - 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 for
        odZones - to loop destinations over
        consumer - to apply
      • deepClone

        default OdDemands deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Specified by:
        deepClone in interface IdAble
        Returns:
        deep copy of entity