Class ManualInitialLinkSegmentCost

    • Constructor Detail

      • ManualInitialLinkSegmentCost

        public ManualInitialLinkSegmentCost​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
      • ManualInitialLinkSegmentCost

        public ManualInitialLinkSegmentCost​(ManualInitialLinkSegmentCost other)
        Copy constructor
        Parameters:
        other - to copy
    • Method Detail

      • setAllSegmentCosts

        public void setAllSegmentCosts​(Mode mode,
                                       double cost,
                                       int noLinkSegments)
        Sets a given cost for all link segments for a given mode
        Parameters:
        mode - the specified mode
        cost - the cost of travel to be used
        noLinkSegments - the number of link segments
      • reset

        public void reset()
        All components should be able to reset going back to some representative initial state
        Overrides:
        reset in class InitialLinkSegmentCost