Peter-Knoppers / OTSim

Open Traffic Simulator
2 stars 2 forks source link

Could a Node be an embedded Network? #5

Closed Peter-Knoppers closed 10 years ago

Peter-Knoppers commented 11 years ago

At a meeting on July 2nd Hans van Lint suggested to put the auto-generated Nodes and Links of a (non-auto-generated) Node in a Network object (owned by that non-auto-generated Node).

Discussion

Currently a Node does not directly own the auto-generated sub-Nodes. Instead these are owned by the Links that enter or leave the Node. The sub-Nodes are connected to these Links with the fromNodeExpand and toNodeExpand fields.

It was always the intention that auto-generated Nodes and Links could be promoted to manual editable status which implies that these can be saved to and read from files as well. As Networks can already be saved and read this should save work.

The field "link" of an auto-generated Node is (currently) not filled in. This will have to be fixed.

Peter-Knoppers commented 10 years ago

Done (together with part of the new Node Expansion)