Skip to content

yaramo v2: new datastructure for topology #31

Open
@jeriox

Description

@jeriox

With the current data structure (a node has a list of nodes that it is connected to as well as three attributes connected_on_head/left/right that also reference nodes) it is difficult to represent a topology in which two nodes are connected to each other via two separate edges.
That topology happens quite often, e.g. when a line with a single track splits up to two platforms in a station:

          -------------
         /             \
--------x---------------x------------

So far, we couldn't support this at all. In simulate-digital-rail/orm-importer#49 we introduced inserting the same node twice in the list of connected nodes. That works so far, but as the left point only knows that it is connected to the right point twice and that connected_on_left and connected_on_right both lead to the right point, there is no way of identifying the corresponding edge from the node. As soon as there are signals, different speed restrictions etc. on those edges, this could be a problem. We should rethink the datastructure of the topology and maybe use something more like the PlanPro approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions