|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Everything a simulation run needs beyond the instance itself. More...
#include <GeneralSimulator.hpp>
Public Member Functions | |
| bool | operator== (const SimulatorState &other) const |
| Compares two simulator states for equality. | |
| bool | operator> (const SimulatorState &other) const |
| Provides a strict ordering between simulator states. | |
Public Attributes | |
| std::vector< cda_rail::index_vector > | train_edges |
| std::vector< cda_rail::index_vector > | ttd_orders |
| std::vector< cda_rail::index_vector > | vertex_orders |
| std::vector< std::vector< double > > | stop_positions |
Everything a simulation run needs beyond the instance itself.
These are the decisions a solver makes, namely which edges every train uses, in which order the trains pass the TTD sections and the vertices, and where on its route every train serves its stops. A state is compared and hashed as a whole, since a search algorithm has to recognize states it has seen before.
| bool cda_rail::simulator::SimulatorState::operator== | ( | const SimulatorState & | other | ) | const |
Compares two simulator states for equality.
| other | State to compare against. |
| bool cda_rail::simulator::SimulatorState::operator> | ( | const SimulatorState & | other | ) | const |
Provides a strict ordering between simulator states.
| other | State to compare against. |
other. | std::vector<std::vector<double> > cda_rail::simulator::SimulatorState::stop_positions |
| std::vector<cda_rail::index_vector> cda_rail::simulator::SimulatorState::train_edges |
| std::vector<cda_rail::index_vector> cda_rail::simulator::SimulatorState::ttd_orders |
| std::vector<cda_rail::index_vector> cda_rail::simulator::SimulatorState::vertex_orders |