Class TTConfig


  • public class TTConfig
    extends Object
    TTConfig is use to control the timetable model

    TTConfig class diagram

    • Constructor Detail

      • TTConfig

        public TTConfig​(TimeTable tbl)
        Constructor. By default, if no starting time is specified, simulation starts at date 0
        Parameters:
        tbl -
    • Method Detail

      • init

        public void init()
      • maxAllowedTime

        public float maxAllowedTime​(float currentDate)
      • init

        public void init​(String pathLogs,
                         boolean enableLogs)
      • timeMove

        public void timeMove​(float duration,
                             PhysicalModel n)
      • timeMove

        public void timeMove​(float duration)
      • discreteMove

        public boolean discreteMove​(int nb)
        Executes an event at current date if it is a minimal event i.e., an event that has no unexecuted predecessor
        Parameters:
        nb - the identifier of the event to execute
      • discreteMoveTTPN

        public boolean discreteMoveTTPN​(int nb)
        For the joint simulation Executes an event at current date if it is a minimal event i.e., an event that has no unexecuted predecessor
        Parameters:
        nb - the identifier of the event to execute
      • getCurrentDate

        public float getCurrentDate()
      • allRealized

        public boolean allRealized()
        return true if all events are realized
      • reset

        public void reset()
      • setCurrentDate

        public void setCurrentDate​(float currentDate)
      • getTableDelay

        public float getTableDelay()