Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Orekit Orekit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Orekit
  • OrekitOrekit
  • Issues
  • #883
Closed
Open
Created Jan 18, 2022 by Luc Maisonobe@lucOwner

Add navigation links between time spans and transitions in TimeSpanMap

The TimeSpanMap container provides duals views to its data. The Span view represent the time span during which one entry is valid, it has a value, and start and end dates. The Transition view represent one transition date between two spans.

The Span view can be retrieved only for single dates, using map.getSpan(date), it is not possible from a span to get naturally the previous or next span, one has to use dirty tricks like map.getSpan(currentSpan.getStart().shiftedBy(-0.001)), hoping the previous span is larger than 1ms.

The Transition view can be retrieved only globally as a NavigableSet<Transitions> using map.getTransitions(). There is no way to get the Span on each side, only the value contained in the Span.

The dual Span and Transition views are therefore mutually exclusive at API level, despite they are intertwined in the implementation.

It would be nice to have a way to get the Transition at start and end of a Span, and to have the before and after Spans at both sides of a Transition. It would also be nice to have next and previous methods to navigated from one Transition to the other or to one Span to the other.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking