Uploaded image for project: 'OpenTrafficSim'
  1. OpenTrafficSim
  2. OTS-373

GTU initialization; events and operational plan

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Unresolved
    • Labels:
      None
    • Java Project:
      generic

      Description

      Currently we have:

      LaneBasedIndividualGTU.initWithAnimation()

      • AbstractLaneBasedGTU.init()
        • enterLane()
          • Lane.GTU_ADD_EVENT 1
        • AbstractGTU.init()
          • Initial 1-mircometer operational plan
          • GTU.INIT_EVENT
          • AbstractLaneBasedGTU.move()
            • super.move()
              • GTU.MOVE_EVENT
              • First operational plan
            • LaneBasedGTU.LANEBASED_MOVE_EVENT
        • LaneBasedGTU.LANEBASED_INIT_EVENT 2

      Which gives these problems at 1:

      1. The GTU has no operational plan yet, speed and acceleration are 0 in the event.
      2. If a listener wants to use the GTU, e.g. position(), this fails as the GTU has no operational plan yet, or doesn't register on a lane yet.
      3. Events from lanes/links are sent for a GTU for which no INIT event has been sent yet.

      And at 2:

      1. Init event after move event.

        Attachments

          Activity

            People

            • Assignee:
              w.j.schakel Wouter Schakel
              Reporter:
              w.j.schakel Wouter Schakel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified