Expand description

The railway_objects module contains traits for different types of railway objects, their positions within an internal model, target management, and geographical locations.

Structs

  • A Train struct representing a train in the railway system.

Traits

  • The GeoLocation trait provides a method for obtaining the geographical location of a railway object.
  • The Movable trait
  • The MultipleTargets trait provides methods for managing a list of targets for a railway object.
  • The NextTarget trait provides methods for managing a single target for a railway object.
  • The RailwayObject trait represents the basic properties of a railway object, including a unique identifier and a position within an internal model. Objects implementing this trait can be used in a railway simulation.