#include <stdair/basic/OptimisationMethod.hpp>
Public Types | |
enum | EN_OptimisationMethod { LEG_BASED_MC = 0, LEG_BASED_EMSR_B, LAST_VALUE } |
Public Member Functions | |
EN_OptimisationMethod | getMethod () const |
std::string | getMethodAsString () const |
const std::string | describe () const |
bool | operator== (const EN_OptimisationMethod &) const |
OptimisationMethod (const EN_OptimisationMethod &) | |
OptimisationMethod (const char iMethod) | |
OptimisationMethod (const OptimisationMethod &) | |
void | toStream (std::ostream &ioOut) const |
virtual void | fromStream (std::istream &ioIn) |
Static Public Member Functions | |
static const std::string & | getLabel (const EN_OptimisationMethod &) |
static char | getMethodLabel (const EN_OptimisationMethod &) |
static std::string | getMethodLabelAsString (const EN_OptimisationMethod &) |
static std::string | describeLabels () |
Enumeration of Optimisation methods.
Definition at line 15 of file OptimisationMethod.hpp.
Definition at line 17 of file OptimisationMethod.hpp.
stdair::OptimisationMethod::OptimisationMethod | ( | const EN_OptimisationMethod & | iOptimisationMethod | ) |
Constructor.
Definition at line 36 of file OptimisationMethod.cpp.
stdair::OptimisationMethod::OptimisationMethod | ( | const char | iMethod | ) |
Constructor.
Definition at line 41 of file OptimisationMethod.cpp.
References describeLabels(), LAST_VALUE, LEG_BASED_EMSR_B, and LEG_BASED_MC.
stdair::OptimisationMethod::OptimisationMethod | ( | const OptimisationMethod & | iOptimisationMethod | ) |
Default copy constructor.
Definition at line 30 of file OptimisationMethod.cpp.
|
static |
Get the label as a string (e.g., "Leg based Monte Carlo" or "Leg based EMSRb").
Definition at line 59 of file OptimisationMethod.cpp.
|
static |
Get the label as a single char (e.g., 'M' or 'E').
Definition at line 64 of file OptimisationMethod.cpp.
|
static |
Get the label as a string of a single char (e.g., "M" or "E").
Definition at line 70 of file OptimisationMethod.cpp.
|
static |
List the labels.
Definition at line 77 of file OptimisationMethod.cpp.
References LAST_VALUE.
Referenced by OptimisationMethod().
OptimisationMethod::EN_OptimisationMethod stdair::OptimisationMethod::getMethod | ( | ) | const |
Get the enumerated value.
Definition at line 89 of file OptimisationMethod.cpp.
Referenced by stdair::AirlineFeature::getOptimisationMethod().
std::string stdair::OptimisationMethod::getMethodAsString | ( | ) | const |
Get the enumerated value as a short string (e.g., "M" or "E").
Definition at line 94 of file OptimisationMethod.cpp.
|
virtual |
Give a description of the structure (e.g., "Leg based Monte Carlo" or "Leg based EMSRb").
Implements stdair::StructAbstract.
Definition at line 101 of file OptimisationMethod.cpp.
bool stdair::OptimisationMethod::operator== | ( | const EN_OptimisationMethod & | iMethod | ) | const |
Comparaison operator.
Definition at line 109 of file OptimisationMethod.cpp.
|
inlineinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 29 of file StructAbstract.hpp.
References stdair::StructAbstract::describe().
|
inlinevirtualinherited |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::EventStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::ProgressStatusSet, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 38 of file StructAbstract.hpp.
Referenced by operator>>().