Class StaticLtm

    • Constructor Detail

      • StaticLtm

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

        public StaticLtm​(StaticLtm sltm)
        Copy Constructor
        Parameters:
        sltm - to copy
    • Method Detail

      • verifyComponentCompatibility

        protected void verifyComponentCompatibility()
                                             throws PlanItException
        Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network. Called before starting the simulation and after the transport network has been generated from physical and virtual network. So this is called after the build of the assignment instance
        Overrides:
        verifyComponentCompatibility in class LtmAssignment
        Throws:
        PlanItException - thrown if the components are not compatible
      • getIterationData

        protected StaticLtmSimulationData getIterationData()
        Return the simulation data for the current iteration
        Returns:
        simulation data
      • getStrategy

        protected StaticLtmAssignmentStrategy getStrategy()
        Return the assignment solution strategy used
        Returns:
        used assignment strategy
      • createOutputTypeAdapter

        public OutputTypeAdapter createOutputTypeAdapter​(OutputType outputType)
        Create the output type adapter for the current output type, specifically tailored towards the assignment type that we are builing
        Specified by:
        createOutputTypeAdapter in class TrafficAssignment
        Parameters:
        outputType - the current output type
        Returns:
        the output type adapter corresponding to the current traffic assignment and output type
      • getIterationIndex

        public int getIterationIndex()
        Collect the current iteration index of the simulation
        Specified by:
        getIterationIndex in class TrafficAssignment
        Returns:
        current iteration index
      • clone

        public StaticLtm clone()
        Create a shallow copy of this entity
        Specified by:
        clone in interface IdAble
        Specified by:
        clone in class LtmAssignment
        Returns:
        shallow copy of entity
      • isDisableLinkStorageConstraints

        public boolean isDisableLinkStorageConstraints()
        Verify to enable link storage constraints or not
        Returns:
        true when enabled, false otherwise
      • setDisableLinkStorageConstraints

        public void setDisableLinkStorageConstraints​(boolean flag)
        Set the flag indicating link storage constraints are active or not
        Parameters:
        flag - when true activate, when false disable
      • setActivateDetailedLogging

        public void setActivateDetailedLogging​(boolean flag)
        Set the flag indicating link storage constraints are active or not
        Parameters:
        flag - when true activate, when false disable
      • isActivateBushBased

        public boolean isActivateBushBased()
        Verify if bush based assignment is applied or not
        Returns:
        true when activated, false otherwise
      • setActivateBushBased

        public void setActivateBushBased​(boolean flag)
        Set the flag indicating if bush based assignment is to be applied or not
        Parameters:
        flag - when true activate, when false disable
      • isActivateDetailedLogging

        public boolean isActivateDetailedLogging()
        collect the flag indicating link storage constraints are active or not
        Returns:
        flag when true activated, when false disabled
      • getLinkSegmentInflowsPcuHour

        public double[] getLinkSegmentInflowsPcuHour()
        Get link segment inflow rates for all link segments, where index is based on id of the link segment.
        Specified by:
        getLinkSegmentInflowsPcuHour in interface LinkInflowOutflowAccessee
        Returns:
        link segment inflows for all modes
      • getLinkSegmentOutflowsPcuHour

        public double[] getLinkSegmentOutflowsPcuHour()
        Get link segment outflow rates for all link segments, where index is based on id of the link segment.
        Specified by:
        getLinkSegmentOutflowsPcuHour in interface LinkInflowOutflowAccessee
        Returns:
        link segment inflows for all modes
      • reset

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