Class AbstractPhysicalCost

    • Constructor Detail

      • AbstractPhysicalCost

        protected AbstractPhysicalCost​(IdGroupingToken groupId)
        Parameters:
        groupId - , contiguous id generation within this group for instances of this class
    • Method Detail

      • populateWithCost

        public abstract void populateWithCost​(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. This allows for more efficient implementations than having to revert to one by one updates. It does however rewuire network information hence its placement here where via the initialiseBeforeSimulation, the network is provided
        Parameters:
        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
      • initialiseBeforeSimulation

        public abstract void initialiseBeforeSimulation​(InfrastructureNetwork network)
                                                 throws PlanItException
        Initialize the cost parameter values in the network
        Parameters:
        network - the network
        Throws:
        PlanItException - thrown if error