The Itinerary class represents an itinerary in the network.
More...
#include <Itinerary.hpp>
The Itinerary class represents an itinerary in the network.
- Template Parameters
-
Id | The type of the itinerary's id. It must be an unsigned integral type. |
◆ Itinerary() [1/2]
dsm::Itinerary::Itinerary |
( |
Id | id, |
|
|
Id | destination ) |
Construct a new Itinerary object.
- Parameters
-
destination | The itinerary's destination |
◆ Itinerary() [2/2]
dsm::Itinerary::Itinerary |
( |
Id | id, |
|
|
Id | destination, |
|
|
SparseMatrix< bool > | path ) |
Construct a new Itinerary object.
- Parameters
-
destination | The itinerary's destination |
path | An adjacency matrix made by a SparseMatrix representing the itinerary's path |
◆ destination()
Id dsm::Itinerary::destination |
( |
| ) |
const |
|
inline |
Get the itinerary's destination.
- Returns
- Id, The itinerary's destination
◆ id()
Id dsm::Itinerary::id |
( |
| ) |
const |
|
inline |
Get the itinerary's id.
- Returns
- Id, The itinerary's id
◆ path()
Get the itinerary's path.
- Returns
- SparseMatrix<Id, bool>, An adjacency matrix made by a SparseMatrix representing the itinerary's path
◆ setDestination()
void dsm::Itinerary::setDestination |
( |
Id | destination | ) |
|
Set the itinerary's destination.
- Parameters
-
destination | The itinerary's destination |
◆ setPath()
Set the itinerary's path.
- Parameters
-
path | An adjacency matrix made by a SparseMatrix representing the itinerary's path |
- Exceptions
-
std::invalid_argument,if | the itinerary's source or destination is not in the path's |
The documentation for this class was generated from the following files: