Dynamical system model
|
The Itinerary class represents an itinerary in the network. More...
#include <Itinerary.hpp>
Public Member Functions | |
Itinerary (Id id, Id destination) | |
Construct a new Itinerary object. | |
Itinerary (Id id, Id destination, SparseMatrix< Id, bool > path) | |
Construct a new Itinerary<Id>:: Itinerary object. | |
void | setDestination (Id destination) |
Set the itinerary's destination. | |
void | setPath (SparseMatrix< Id, bool > path) |
Set the itinerary's path. | |
Id | id () const |
Get the itinerary's id. | |
Id | destination () const |
Get the itinerary's destination. | |
const SparseMatrix< Id, bool > & | path () const |
Get the itinerary's path. | |
The Itinerary class represents an itinerary in the network.
Id | The type of the itinerary's id. It must be an unsigned integral type. |
dsm::Itinerary< Id >::Itinerary | ( | Id | id, |
Id | destination ) |
Construct a new Itinerary object.
destination | The itinerary's destination |
dsm::Itinerary< Id >::Itinerary | ( | Id | id, |
Id | destination, | ||
SparseMatrix< Id, bool > | path ) |
Construct a new Itinerary<Id>:: Itinerary object.
destination | The itinerary's destination |
path | An adjacency matrix made by a SparseMatrix representing the itinerary's path |
|
inline |
Get the itinerary's destination.
|
inline |
Get the itinerary's id.
|
inline |
Get the itinerary's path.
void dsm::Itinerary< Id >::setDestination | ( | Id | destination | ) |
Set the itinerary's destination.
destination | The itinerary's destination |
void dsm::Itinerary< Id >::setPath | ( | SparseMatrix< Id, bool > | path | ) |
Set the itinerary's path.
path | An adjacency matrix made by a SparseMatrix representing the itinerary's path |
std::invalid_argument,if | the itinerary's source or destination is not in the path's |