faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Class Template Reference
|
Public Member Functions | |
Idx | InsFailureTypeMapping (const std::string &failureType, const EventSet &rfailureEvents) |
Adds a failure type with associated failure events to the global attribute. | |
void | InsFailureTypeMap (const std::map< std::string, EventSet > &rFailureMap) |
Insert entire failure type map in the diagnoser. | |
Idx | GetFailureType (Idx failureEvent) const |
Returns the failure type of a particular failure events. | |
EventSet | GetAllFailureEvents (void) const |
Returns the all failure events of the failure partition. | |
void | InsStateLabelMapping (Idx dStateIndex, Idx gStateIndex, Idx labelIndex) |
Inserts a generator state estimate to a diagnoser state. | |
void | InsStateLabelMap (Idx dStateIndex, Idx gState, const DiagLabelSet &labels) |
Inserts a DiagLabelSet containing a complete set of generator state estimates to a diagnoser state. | |
void | SetStateAttr (Idx dStateIndex, const AttributeDiagnoserState &newAttr) |
Set a diagnoser state attribute. | |
std::string | SAStr (Idx dStateIndex) const |
Prints all generator state estimates of a diagnoser state to a string. | |
void | DotWrite (const std::string &rFileName) const |
Writes generator to dot input format. | |
Constructor, Destructor | |
TdiagGenerator (void) | |
Creates an emtpy diagnoser. | |
TdiagGenerator (const Generator &rOtherGen) | |
Construct diagnoser from std generator. | |
TdiagGenerator (const TdiagGenerator &rOtherGen) | |
Copy constructor. | |
TdiagGenerator (const std::string &rFileName) | |
Construct from file. | |
virtual TdiagGenerator * | New (void) const |
Construct on heap. | |
virtual TdiagGenerator * | Copy (void) const |
Construct copy on heap. | |
~TdiagGenerator (void) | |
Default destructor. | |
virtual TdiagGenerator & | operator= (const TdiagGenerator &rOtherGen) |
Assignment operator (uses copy ) Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly. | |
virtual TdiagGenerator & | operator= (const Generator &rOtherGen) |
Assignment operator (uses copy ). | |
Private Attributes | |
SymbolTable * | mpLabelSymbolTable |
Pointer to static LabelSymbolTable of DiagLabelSet. |
Provides the structure and methods to build and handle diagnosers.
The diagnoser states carry state estimates for the generator under observation, which are implemented using state attributes.
Definition at line 26 of file diag_generator.h.
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator | ( | void | ) | [inline] |
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator | ( | const Generator & | rOtherGen | ) | [inline] |
Construct diagnoser from std generator.
rOtherGen |
Definition at line 247 of file diag_generator.h.
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator | ( | const TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) | [inline] |
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator | ( | const std::string & | rFileName | ) | [inline] |
Construct from file.
rFileName | Filename |
Definition at line 254 of file diag_generator.h.
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::~TdiagGenerator | ( | void | ) | [inline] |
Default destructor.
Definition at line 84 of file diag_generator.h.
TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > * faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Copy | ( | void | ) | const [inline, virtual] |
Construct copy on heap.
Reimplemented from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 275 of file diag_generator.h.
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::DotWrite | ( | const std::string & | rFileName | ) | const [inline, virtual] |
Writes generator to dot input format.
The dot file format is specified by the graphiz package; see http://www.graphviz.org. The package includes the dot command line tool to generate a graphical representation of the generators graph. See also Generator::GraphWrite(). This functions sets the re-indexing to minimal indices.
rFileName | File to write |
Exception |
|
Reimplemented from faudes::vGenerator.
Definition at line 327 of file diag_generator.h.
EventSet faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GetAllFailureEvents | ( | void | ) | const [inline] |
Returns the all failure events of the failure partition.
Definition at line 300 of file diag_generator.h.
Idx faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GetFailureType | ( | Idx | failureEvent | ) | const [inline] |
Returns the failure type of a particular failure events.
failureEvent | A failure event. |
Definition at line 295 of file diag_generator.h.
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsFailureTypeMap | ( | const std::map< std::string, EventSet > & | rFailureMap | ) | [inline] |
Insert entire failure type map in the diagnoser.
rFailureMap | Map of failure type names to failure events. |
Definition at line 289 of file diag_generator.h.
Idx faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsFailureTypeMapping | ( | const std::string & | failureType, | |
const EventSet & | rfailureEvents | |||
) | [inline] |
Adds a failure type with associated failure events to the global attribute.
If failure type does already exists the failure events are overridden.
failureType | Name of failure type. | |
rfailureEvents | Associated failure events. |
Definition at line 284 of file diag_generator.h.
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsStateLabelMap | ( | Idx | dStateIndex, | |
Idx | gState, | |||
const DiagLabelSet & | labels | |||
) | [inline] |
Inserts a DiagLabelSet containing a complete set of generator state estimates to a diagnoser state.
dStateIndex | Index of diagnoser state. | |
gState | Index of generator state estimate. | |
labels | Associated DiagLabelSet containing the generator state estimates. |
Definition at line 311 of file diag_generator.h.
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsStateLabelMapping | ( | Idx | dStateIndex, | |
Idx | gStateIndex, | |||
Idx | labelIndex | |||
) | [inline] |
Inserts a generator state estimate to a diagnoser state.
dStateIndex | Index of diagnoser state. | |
gStateIndex | Index of generator state estimate. | |
labelIndex | Index of associated label. |
Definition at line 305 of file diag_generator.h.
TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > * faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::New | ( | void | ) | const [inline, virtual] |
Construct on heap.
Reimplemented from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 262 of file diag_generator.h.
virtual TdiagGenerator& faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= | ( | const Generator & | rOtherGen | ) | [inline, virtual] |
Assignment operator (uses copy ).
rOtherGen | Other generator |
Reimplemented from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 104 of file diag_generator.h.
virtual TdiagGenerator& faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= | ( | const TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) | [inline, virtual] |
Assignment operator (uses copy ) Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly.
rOtherGen | Other generator |
Definition at line 96 of file diag_generator.h.
std::string faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SAStr | ( | Idx | dStateIndex | ) | const [inline] |
Prints all generator state estimates of a diagnoser state to a string.
dStateIndex | Index of diagnoser state. |
Definition at line 322 of file diag_generator.h.
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetStateAttr | ( | Idx | dStateIndex, | |
const AttributeDiagnoserState & | newAttr | |||
) | [inline] |
Set a diagnoser state attribute.
dStateIndex | Index of diagnoser state. | |
newAttr | The new attribute. |
Definition at line 317 of file diag_generator.h.
SymbolTable* faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::mpLabelSymbolTable [private] |
Pointer to static LabelSymbolTable of DiagLabelSet.
Definition at line 30 of file diag_generator.h.
libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen