All BaseItem objects that are created should be handled by the Model class. This will allow the Model class to track and enforce requirements for unique component IDs and unique train/agent IDs.
Turns out this is only really relevant for train IDs, as routes are named and components are attached to a unique NetworkX edge (and can be replaced with new ones as needed).
All
BaseItem
objects that are created should be handled by theModel
class. This will allow theModel
class to track and enforce requirements for unique component IDs and unique train/agent IDs.