Interface VirtualCost

    • Field Detail

      • FIXED

        static final String FIXED
        short hand for configuring fixed virtual cost instance
      • SPEED

        static final String SPEED
        short hand for configuring speed based virtual cost instance
    • Method Detail

      • populateWithCost

        void populateWithCost​(VirtualNetwork virtualNetwork,
                              Mode mode,
                              double[] costToFill)
                       throws PlanItException
        Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id
        Parameters:
        virtualNetwork - the cost pertains to
        mode - the mode these costs pertain to
        costToFill - array of link segment costs identified by the link segment's internal id
        Throws:
        PlanItException - thrown if error