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

Iterable perception

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Unresolved
    • Labels:
      None
    • Epic Link:
    • Organization:
      TU Delft
    • Java Project:
      generic

      Description

      Much of the perception output is in the form of SortedSet<T> with objects sorted by distance. This makes it required that all possibly perceived objects are preceived always, and sorted. A different approach is to make the output Iterable<T>, where each new object is only created if requested. Whether the perception is used by a simple 1-object model, or a multi-object model, then doesn't matter. The Iterable<T> will only search and create those objects that are needed. This is both very flexible, and quite efficient for simple models.

        Attachments

        1. iterable.gif
          14 kB
          Wouter Schakel

          Issue Links

            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 - 3 days
                  3d
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified