Defines the data structure for system Recovery Info. More...
#include </home/user/DXC_svn/trunk/Src/APIs/cpp/DataTypes/RecoveryData.hpp>
Public Member Functions | |
RecoveryData (Timestamp timestamp, const FaultSet &fs=FaultSet(), const CommandSet &commands=CommandSet(), double cost=-1, const std::string ¬es="") | |
Constructor to initialize the RecoveryData with timestamp. | |
RecoveryData (const FaultSet &fs=FaultSet(), const CommandSet &commands=CommandSet(), double cost=-1, const std::string ¬es="") | |
Constructor to initialize the RecoveryData with timestamp. | |
virtual RecoveryData * | clone () const |
Virtual copy constructor. | |
virtual std::ostream & | put (std::ostream &) const |
Prints DxcData in standardized, parseable format. |
Defines the data structure for system Recovery Info.
Recovery information consists of a hypothetical set of fault modes (with estimated parameters), a set of commands that represent a recovery action for the fault modes, and a cost for performing these actions.
RecoveryData::RecoveryData | ( | Timestamp | timestamp, | |
const FaultSet & | fs = FaultSet() , |
|||
const CommandSet & | commands = CommandSet() , |
|||
double | cost = -1 , |
|||
const std::string & | notes = "" | |||
) |
Constructor to initialize the RecoveryData with timestamp.
timestamp | - message timestamp. | |
faults | - hypothetical fault set | |
commands | - recovery actions | |
cost | - cost of taking the actions | |
notes | - additional information, such as errors. |
RecoveryData::RecoveryData | ( | const FaultSet & | fs = FaultSet() , |
|
const CommandSet & | commands = CommandSet() , |
|||
double | cost = -1 , |
|||
const std::string & | notes = "" | |||
) |
Constructor to initialize the RecoveryData with timestamp.
faults | - hypothetical fault set | |
commands | - recovery actions | |
cost | - cost of taking the actions | |
notes | - additional information, such as errors. |
RecoveryData * RecoveryData::clone | ( | ) | const [virtual] |
Virtual copy constructor.
Returns a pointer to a copy of the DxcData. The user is responsible for managing the memory.
Implements Dxc::DxcData.