OSB_LIB::TpsConfig Class Reference

Collaboration diagram for OSB_LIB::TpsConfig:

Collaboration graph
[legend]
List of all members.

Detailed Description

Configuration of a TpsVersion.

Definition at line 704 of file tariffperiod.h.

Public Types

Public Member Functions

Configuration:

Private Attributes


Member Typedef Documentation

typedef std::map<DayClass::Oid, SwitchTimes> OSB_LIB::TpsConfig::DcMap

STL container for the configuration of all day classes.

Definition at line 709 of file tariffperiod.h.

typedef std::map<OSB_LIB::Time, TariffPeriod::Oid> OSB_LIB::TpsConfig::SwitchTimes

Switch times for one day class.

Definition at line 707 of file tariffperiod.h.


Member Function Documentation

void OSB_LIB::TpsConfig::add ( const DayClass::Oid dcId,
const OSB_LIB::Time switchTime,
const TariffPeriod::Oid tpId 
)

Add a configuration.

void OSB_LIB::TpsConfig::cleanup (  ) 

Clean-up the configuration.

Removes all switch times with the same tariff period as the previous switch time and erases empty day classes from dcMap_.

void OSB_LIB::TpsConfig::clear (  ) 

Clear the list.

const DcMap& OSB_LIB::TpsConfig::dcMap (  )  const

Read access to the whole configuration.

void OSB_LIB::TpsConfig::remove ( const DayClass::Oid dcId,
const OSB_LIB::Time switchTime 
)

Remove a configuration.

Parameters:
dcId Day class for which to remove switchTime.
switchTime Switch-time to remove.


Member Data Documentation

DcMap OSB_LIB::TpsConfig::dcMap_ [private]

The whole configuration.

Remarks:
It is mutable because of switchTimes().

Definition at line 748 of file tariffperiod.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:16:57 2006 for OSB Library by  doxygen 1.4.7