Class representing a simple sub-network. More...
#include <airtsp/bom/OriginDestinationSet.hpp>
Public Types | |
typedef OriginDestinationSetKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
const stdair::AirportCode_T & | getDestination () const |
stdair::BomAbstract *const | getParent () const |
const stdair::HolderMap_T & | getHolderMap () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
OriginDestinationSet (const Key_T &) | |
~OriginDestinationSet () | |
Protected Attributes | |
Key_T | _key |
stdair::BomAbstract * | _parent |
stdair::HolderMap_T | _holderMap |
Friends | |
template<typename BOM > | |
class | stdair::FacBom |
class | stdair::FacBomManager |
class | boost::serialization::access |
Class representing a simple sub-network.
That simple sub-network is made of a set of segments (SegmentPathPeriod objects), from the origin airport specified within ReachableUniverse (parent object) to the destination specified in the OriginDestinationSetKey object.
Each segment (composing that OriginDestinationSet object) corresponds to an actual travel solution from the origin to the destination, that is, a path that a traveller can take with actual scheduled flights.
Definition at line 44 of file OriginDestinationSet.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 57 of file OriginDestinationSet.hpp.
|
protected |
Main constructor.
Definition at line 31 of file OriginDestinationSet.cpp.
|
protected |
Destructor.
Definition at line 36 of file OriginDestinationSet.cpp.
|
inline |
Get the primary key (destination airport).
Definition at line 65 of file OriginDestinationSet.hpp.
References _key.
|
inline |
Get the destination airport (i.e., the primary key).
Definition at line 72 of file OriginDestinationSet.hpp.
References _key, and AIRTSP::OriginDestinationSetKey::getOffPoint().
|
inline |
Get the parent (i.e., ReachableUniverse) object.
Definition at line 79 of file OriginDestinationSet.hpp.
References _parent.
|
inline |
Get the map of children holders (SegmentPathPeriod objects).
Definition at line 86 of file OriginDestinationSet.hpp.
References _holderMap.
|
inline |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Definition at line 98 of file OriginDestinationSet.hpp.
References toString().
|
inline |
Read a Business Object from an input stream.
istream& | the input stream. |
Definition at line 107 of file OriginDestinationSet.hpp.
std::string AIRTSP::OriginDestinationSet::toString | ( | ) | const |
Get the serialised version of the Business Object.
Definition at line 40 of file OriginDestinationSet.cpp.
References _key, and AIRTSP::OriginDestinationSetKey::toString().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 118 of file OriginDestinationSet.hpp.
References _key, and AIRTSP::OriginDestinationSetKey::toString().
void AIRTSP::OriginDestinationSet::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Friend classes.
Definition at line 48 of file OriginDestinationSet.hpp.
|
friend |
Definition at line 49 of file OriginDestinationSet.hpp.
|
friend |
Definition at line 50 of file OriginDestinationSet.hpp.
|
protected |
Primary key (destination airport code).
Definition at line 168 of file OriginDestinationSet.hpp.
Referenced by describeKey(), getDestination(), getKey(), serialize(), and toString().
|
protected |
Pointer on the parent (ReachableUniverse) object.
Definition at line 173 of file OriginDestinationSet.hpp.
Referenced by getParent().
|
protected |
Map holding the children (SegmentPathPeriod objects).
Definition at line 178 of file OriginDestinationSet.hpp.
Referenced by getHolderMap().