faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Class Template Reference

#include <diag_generator.h>

Public Member Functions

Idx InsFailureTypeMapping (const std::string &failureType, const EventSet &rfailureEvents)
 
void InsFailureTypeMap (const std::map< std::string, EventSet > &rFailureMap)
 
Idx GetFailureType (Idx failureEvent) const
 
EventSet GetAllFailureEvents (void) const
 
void InsStateLabelMapping (Idx dStateIndex, Idx gStateIndex, Idx labelIndex)
 
void InsStateLabelMap (Idx dStateIndex, Idx gState, const DiagLabelSet &labels)
 
void SetStateAttr (Idx dStateIndex, const AttributeDiagnoserState &newAttr)
 
std::string SAStr (Idx dStateIndex) const
 
void DotWrite (const std::string &rFileName) const
 
Constructor, Destructor
 TdiagGenerator (void)
 
 TdiagGenerator (const Generator &rOtherGen)
 
 TdiagGenerator (const TdiagGenerator &rOtherGen)
 
 TdiagGenerator (const std::string &rFileName)
 
virtual TdiagGeneratorNew (void) const
 
virtual TdiagGeneratorCopy (void) const
 
 ~TdiagGenerator (void)
 
TdiagGeneratoroperator= (const Generator &rOtherGen)
 
- Public Member Functions inherited from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
 TcGenerator (void)
 
 TcGenerator (const vGenerator &rOtherGen)
 
 TcGenerator (const TcGenerator &rOtherGen)
 
 TcGenerator (const std::string &rFileName)
 
virtual const TypeCast (const Type *pOther) const
 
TcGenerator NewCGen (void) const
 
TcGeneratoroperator= (const TcGenerator &rOtherGen)
 
virtual TcGeneratorAssign (const Type &rSource)
 
void InsControllableEvent (Idx index)
 
Idx InsControllableEvent (const std::string &rName)
 
void InsUncontrollableEvent (Idx index)
 
Idx InsUncontrollableEvent (const std::string &rName)
 
void SetControllable (Idx index)
 
void SetControllable (const std::string &rName)
 
void SetControllable (const EventSet &rEvents)
 
void ClrControllable (Idx index)
 
void ClrControllable (const std::string &rName)
 
void ClrControllable (const EventSet &rEvents)
 
bool Controllable (Idx index) const
 
bool Controllable (const std::string &rName) const
 
EventSet ControllableEvents (void) const
 
EventSet UncontrollableEvents (void) const
 
void InsObservableEvent (Idx index)
 
Idx InsObservableEvent (const std::string &rName)
 
void InsUnobservableEvent (Idx index)
 
Idx InsUnobservableEvent (const std::string &rName)
 
void SetObservable (Idx index)
 
void SetObservable (const std::string &rName)
 
void SetObservable (const EventSet &rEvents)
 
void ClrObservable (Idx index)
 
void ClrObservable (const std::string &rName)
 
void ClrObservable (const EventSet &rEvents)
 
bool Observable (Idx index) const
 
bool Observable (const std::string &rName) const
 
EventSet ObservableEvents (void) const
 
EventSet UnobservableEvents (void) const
 
void InsForcibleEvent (Idx index)
 
Idx InsForcibleEvent (const std::string &rName)
 
void InsUnforcibleEvent (Idx index)
 
Idx InsUnforcibleEvent (const std::string &rName)
 
void SetForcible (Idx index)
 
void SetForcible (const std::string &rName)
 
void SetForcible (const EventSet &rEvents)
 
void ClrForcible (Idx index)
 
void ClrForcible (const std::string &rName)
 
void ClrForcible (const EventSet &rEvents)
 
bool Forcible (Idx index) const
 
bool Forcible (const std::string &rName) const
 
EventSet ForcibleEvents (void) const
 
EventSet UnforcibleEvents (void) const
 
void InsHighlevelEvent (Idx index)
 
Idx InsHighlevelEvent (const std::string &rName)
 
void InsLowlevelEvent (Idx index)
 
Idx InsLowlevelEvent (const std::string &rName)
 
void SetHighlevel (Idx index)
 
void SetHighlevel (const std::string &rName)
 
void SetHighlevel (const EventSet &rEvents)
 
void SetLowlevel (Idx index)
 
void SetLowlevel (const std::string &rName)
 
void SetLowlevel (const EventSet &rEvents)
 
bool Highlevel (Idx index) const
 
bool Highlevel (const std::string &rName) const
 
bool Lowlevel (Idx index) const
 
bool Lowlevel (const std::string &rName) const
 
EventSet HighlevelEvents (void) const
 
EventSet LowlevelEvents (void) const
 
- Public Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
 TaGenerator (void)
 
 TaGenerator (const TaGenerator &rOtherGen)
 
 TaGenerator (const vGenerator &rOtherGen)
 
 TaGenerator (const std::string &rFileName)
 
virtual TaGenerator NewAGen (void) const
 
virtual ~TaGenerator (void)
 
TaGeneratoroperator= (const TaGenerator &rOtherGen)
 
virtual void Move (TaGenerator &rGen)
 
virtual void Move (Generator &rGen)
 
bool Valid (void) const
 
virtual void Clear (void)
 
const TaEventSet< EventAttr > & Alphabet (void) const
 
const TaStateSet< StateAttr > & States (void) const
 
const ATransSetTransRel (void) const
 
void TransRel (TransSetX1EvX2 &res) const
 
void TransRel (TransSetEvX1X2 &res) const
 
void TransRel (TransSetEvX2X1 &res) const
 
void TransRel (TransSetX2EvX1 &res) const
 
void TransRel (TransSetX2X1Ev &res) const
 
void TransRel (TransSetX1X2Ev &res) const
 
bool InsEvent (Idx index)
 
Idx InsEvent (const std::string &rName)
 
bool InsEvent (Idx index, const EventAttr &rAttr)
 
Idx InsEvent (const std::string &rName, const EventAttr &rAttr)
 
void InjectAlphabet (const EventSet &rNewalphabet)
 
void InjectAlphabet (const TaEventSet< EventAttr > &rNewalphabet)
 
Idx InsState (void)
 
Idx InsState (const StateAttr &attr)
 
bool InsState (Idx index)
 
Idx InsState (const std::string &rName)
 
Idx InsState (const std::string &rName, const StateAttr &attr)
 
bool InsState (Idx index, const StateAttr &attr)
 
void InjectStates (const StateSet &rNewStates)
 
void InjectStates (const TaStateSet< StateAttr > &rNewStates)
 
bool SetTransition (Idx x1, Idx ev, Idx x2)
 
bool SetTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2)
 
bool SetTransition (const Transition &rTransition)
 
bool SetTransition (const Transition &rTransition, const TransAttr &rAttr)
 
void InjectTransRel (const TransSet &rNewtransrel)
 
void InjectTransRel (const ATransSet &rNewtransrel)
 
void EventAttribute (Idx index, const EventAttr &rAttr)
 
void EventAttribute (Idx index, const Type &rAttr)
 
const EventAttr & EventAttribute (Idx index) const
 
const EventAttr & EventAttribute (const std::string &rName) const
 
EventAttr * EventAttributep (Idx index)
 
EventAttr * EventAttributep (const std::string &rName)
 
void StateAttribute (Idx index, const StateAttr &rAttr)
 
void StateAttribute (Idx index, const Type &rAttr)
 
const StateAttr & StateAttribute (Idx index) const
 
StateAttr * StateAttributep (Idx index)
 
void TransAttribute (const Transition &rTrans, const TransAttr &rAttr)
 
void TransAttribute (const Transition &rTrans, const Type &rAttr)
 
const TransAttr & TransAttribute (const Transition &rTrans) const
 
TransAttr * TransAttributep (const Transition &rTrans)
 
void GlobalAttribute (const GlobalAttr &rAttr)
 
void GlobalAttribute (const Type &rAttr)
 
const GlobalAttr & GlobalAttribute (void) const
 
GlobalAttr * GlobalAttributep (void)
 
- Public Member Functions inherited from faudes::vGenerator
 vGenerator (void)
 
 vGenerator (const vGenerator &rOtherGen)
 
 vGenerator (const std::string &rFileName)
 
virtual ~vGenerator (void)
 
virtual vGeneratorAssignWithoutAttributes (const vGenerator &rGen)
 
vGeneratoroperator= (const vGenerator &rOtherGen)
 
virtual void Version (const std::string &rVersion, vGenerator &rResGen) const
 
virtual void Version (Idx version, vGenerator &rResGen) const
 
virtual void Version (const std::string &rPattern, const std::string &rReplacement, vGenerator &rResGen) const
 
void Name (const std::string &rName)
 
const std::string & Name (void) const
 
void ClearStates (void)
 
Idx AlphabetSize (void) const
 
Idx Size (void) const
 
Idx TransRelSize (void) const
 
Idx InitStatesSize (void) const
 
Idx MarkedStatesSize (void) const
 
bool Empty (void) const
 
bool AlphabetEmpty (void) const
 
bool TransRelEmpty (void) const
 
bool InitStatesEmpty (void) const
 
bool MarkedStatesEmpty (void) const
 
SymbolTableEventSymbolTablep (void) const
 
virtual void EventSymbolTablep (SymbolTable *pSymTab)
 
virtual void EventSymbolTablep (const vGenerator &rOtherGen)
 
EventSet NewEventSet (void) const
 
EventSetNewEventSetp (void) const
 
Idx EventIndex (const std::string &rName) const
 
std::string EventName (Idx index) const
 
void EventName (Idx index, const std::string &rName)
 
std::string UniqueEventName (const std::string &rName) const
 
bool EventRename (Idx event, const std::string &rNewName)
 
bool EventRename (const std::string &rOldName, const std::string &rNewName)
 
const SymbolTableStateSymbolTable (void) const
 
void StateSymbolTable (const SymbolTable &rSymTab)
 
Idx StateIndex (const std::string &rName) const
 
std::string StateName (Idx index) const
 
void StateName (Idx index, const std::string &rName)
 
void ClearStateNames (void)
 
void ClrStateName (Idx index)
 
void ClrStateName (const std::string &rName)
 
bool StateNamesEnabled (void) const
 
void StateNamesEnabled (bool flag)
 
void SetDefaultStateNames (void)
 
void EnforceStateNames (const std::string &rTemplate)
 
std::string UniqueStateName (const std::string &rName) const
 
EventSet::Iterator AlphabetBegin (void) const
 
EventSet::Iterator AlphabetEnd (void) const
 
bool ExistsEvent (Idx index) const
 
bool ExistsEvent (const std::string &rName) const
 
EventSet::Iterator FindEvent (Idx index) const
 
EventSet::Iterator FindEvent (const std::string &rName) const
 
const EventSetAlphabet (void) const
 
StateSet::Iterator StatesBegin (void) const
 
StateSet::Iterator StatesEnd (void) const
 
bool ExistsState (Idx index) const
 
bool ExistsState (const std::string &name) const
 
StateSet::Iterator FindState (Idx index) const
 
StateSet::Iterator FindState (const std::string &rName) const
 
const StateSetStates (void) const
 
Idx InitState (void) const
 
StateSet::Iterator InitStatesBegin (void) const
 
StateSet::Iterator InitStatesEnd (void) const
 
bool ExistsInitState (Idx index) const
 
StateSet::Iterator FindInitState (Idx index) const
 
const StateSetInitStates (void) const
 
StateSet::Iterator MarkedStatesBegin (void) const
 
StateSet::Iterator MarkedStatesEnd (void) const
 
bool ExistsMarkedState (Idx index) const
 
StateSet::Iterator FindMarkedState (Idx index) const
 
const StateSetMarkedStates (void) const
 
TransSet::Iterator TransRelBegin (void) const
 
TransSet::Iterator TransRelEnd (void) const
 
TransSet::Iterator TransRelBegin (Idx x1) const
 
TransSet::Iterator TransRelEnd (Idx x1) const
 
TransSet::Iterator TransRelBegin (Idx x1, Idx ev) const
 
TransSet::Iterator TransRelEnd (Idx x1, Idx ev) const
 
TransSet::Iterator FindTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 
TransSet::Iterator FindTransition (Idx x1, Idx ev, Idx x2) const
 
TransSet::Iterator FindTransition (const Transition &rTrans) const
 
bool ExistsTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 
bool ExistsTransition (Idx x1, Idx ev, Idx x2) const
 
bool ExistsTransition (const Transition &rTrans) const
 
bool ExistsTransition (Idx x1, Idx ev) const
 
bool ExistsTransition (Idx x1) const
 
const TransSetTransRel (void) const
 
void TransRel (TransSetX1EvX2 &res) const
 
void TransRel (TransSetEvX1X2 &res) const
 
void TransRel (TransSetEvX2X1 &res) const
 
void TransRel (TransSetX2EvX1 &res) const
 
void TransRel (TransSetX2X1Ev &res) const
 
void TransRel (TransSetX1X2Ev &res) const
 
Transition TransitionByNames (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 
bool InsEvent (Idx index)
 
Idx InsEvent (const std::string &rName)
 
void InsEvents (const EventSet &events)
 
bool DelEvent (Idx index)
 
bool DelEvent (const std::string &rName)
 
void DelEvents (const EventSet &rEvents)
 
bool DelEventFromAlphabet (Idx index)
 
void InjectAlphabet (const EventSet &rNewalphabet)
 
void RestrictAlphabet (const EventSet &rNewalphabet)
 
Idx InsState (void)
 
bool InsState (Idx index)
 
Idx InsState (const std::string &rName)
 
void InsStates (const StateSet &rStates)
 
bool DelState (Idx index)
 
bool DelState (const std::string &rName)
 
void DelStates (const StateSet &rDelStates)
 
bool DelStateFromStates (Idx index)
 
StateSet::Iterator DelStateFromStates (StateSet::Iterator pos)
 
void RestrictStates (const StateSet &rStates)
 
void InjectState (Idx index)
 
void InjectStates (const StateSet &rNewStates)
 
Idx InsInitState (void)
 
bool InsInitState (Idx index)
 
Idx InsInitState (const std::string &rName)
 
void InsInitStates (const StateSet &rStates)
 
Idx InsMarkedState (void)
 
bool InsMarkedState (Idx index)
 
Idx InsMarkedState (const std::string &rName)
 
void InsMarkedStates (const StateSet &rStates)
 
void SetInitState (Idx index)
 
void SetInitState (const std::string &rName)
 
void InjectInitStates (const StateSet &rNewInitStates)
 
void ClrInitState (Idx index)
 
void ClrInitState (const std::string &rName)
 
StateSet::Iterator ClrInitState (StateSet::Iterator pos)
 
void ClearInitStates (void)
 
void SetMarkedState (Idx index)
 
void SetMarkedState (const std::string &rName)
 
void ClrMarkedState (Idx index)
 
void ClrMarkedState (const std::string &rName)
 
StateSet::Iterator ClrMarkedState (StateSet::Iterator pos)
 
void ClearMarkedStates (void)
 
void InjectMarkedStates (const StateSet &rNewMarkedStates)
 
bool SetTransition (Idx x1, Idx ev, Idx x2)
 
bool SetTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2)
 
bool SetTransition (const Transition &rTransition)
 
void ClrTransition (Idx x1, Idx ev, Idx x2)
 
void ClrTransition (const Transition &rTrans)
 
TransSet::Iterator ClrTransition (TransSet::Iterator it)
 
void ClrTransitions (Idx x1, Idx ev)
 
void ClrTransitions (Idx x1)
 
void ClearTransRel (void)
 
void InjectTransition (const Transition &rTrans)
 
void InjectTransRel (const TransSet &rNewtransrel)
 
virtual void ClearAttributes (void)
 
virtual bool UpdateAttributes (void)
 
virtual void ClearEventAttributes (void)
 
virtual void ClrEventAttribute (Idx index)
 
virtual void EventAttributes (const EventSet &rEventSet)
 
virtual void ClearStateAttributes (void)
 
virtual void ClrStateAttribute (Idx index)
 
virtual void ClearTransAttributes (void)
 
virtual void ClrTransAttribute (const Transition &rTrans)
 
virtual void ClearGlobalAttribute (void)
 
virtual void GlobalAttributeTry (const Type &rAttr)
 
StateSet AccessibleSet (void) const
 
bool Accessible (void)
 
bool IsAccessible (void) const
 
StateSet CoaccessibleSet (void) const
 
bool Coaccessible (void)
 
bool IsCoaccessible (void) const
 
StateSet BlockingStates (void) const
 
StateSet TerminalStates (void) const
 
StateSet TerminalStates (const StateSet &rStates) const
 
bool IsComplete (void) const
 
bool IsComplete (const StateSet &rStates) const
 
bool IsComplete (const EventSet &rSigmaO) const
 
bool Complete (void)
 
bool Complete (const EventSet &rSigmaO)
 
StateSet TrimSet (void) const
 
bool Trim (void)
 
bool IsTrim (void) const
 
bool OmegaTrim (void)
 
bool IsOmegaTrim (void) const
 
EventSet UsedEvents (void) const
 
EventSet UnusedEvents (void) const
 
void MinimizeAlphabet (void)
 
EventSet ActiveEventSet (Idx x1) const
 
TransSet ActiveTransSet (Idx x1) const
 
StateSet TransRelStates (void) const
 
Idx SuccessorState (Idx x1, Idx ev) const
 
StateSet SuccessorStates (Idx x1) const
 
StateSet SuccessorStates (Idx x1, Idx ev) const
 
bool IsDeterministic (void) const
 
void SetMinStateIndexMap (void) const
 
void ClearMinStateIndexMap (void) const
 
Idx MinStateIndex (Idx index) const
 
void MinStateIndex (void)
 
Idx MaxStateIndex (void) const
 
const std::map< Idx, Idx > & MinStateIndexMap (void) const
 
std::string EStr (Idx index) const
 
std::string SStr (Idx index) const
 
std::string TStr (const Transition &rTrans) const
 
void GraphWrite (const std::string &rFileName, const std::string &rOutFormat="", const std::string &rDotExec="dot") const
 
bool operator< (const vGenerator &rOtherGen) const
 
void WriteAlphabet (void) const
 
std::string AlphabetToString (void) const
 
void WriteAlphabet (TokenWriter &rTw) const
 
void WriteStateSet (const StateSet &rStateSet) const
 
std::string StateSetToString (const StateSet &rStateSet) const
 
std::string StateSetToText (const StateSet &rStateSet) const
 
void WriteStateSet (TokenWriter &rTw, const StateSet &rStateSet) const
 
void DWriteStateSet (TokenWriter &rTw, const StateSet &rStateSet) const
 
std::string StatesToString (void) const
 
std::string StatesToText (void) const
 
std::string MarkedStatesToString (void) const
 
std::string InitStatesToString (void) const
 
void WriteTransRel (void) const
 
std::string TransRelToString (void) const
 
std::string TransRelToText (void) const
 
void WriteTransRel (TokenWriter &rTw) const
 
void DWriteTransRel (TokenWriter &rTw) const
 
virtual void DDotWrite (const std::string &rFileName) const
 
virtual void XDotWrite (const std::string &rFileName) const
 
void ReadStateSet (TokenReader &rTr, const std::string &rLabel, StateSet &rStateSet) const
 
bool ReindexOnWrite (void) const
 
void ReindexOnWrite (bool flag)
 
- Public Member Functions inherited from faudes::Type
 Type (void)
 
 Type (const Type &rType)
 
virtual ~Type (void)
 
Typeoperator= (const Type &rSrc)
 
virtual bool Equal (const Type &rOther) const
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
virtual const std::string & TypeName (void) const
 
void Write (const Type *pContext=0) const
 
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 
void XWrite (const Type *pContext=0) const
 
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 
void DWrite (const Type *pContext=0) const
 
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void SWrite (TokenWriter &rTw) const
 
void SWrite (void) const
 
std::string ToSText (void) const
 
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 

Private Attributes

SymbolTablempLabelSymbolTable
 

Additional Inherited Members

- Public Types inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
typedef TaTransSet< TransAttr > ATransSet
 
- Static Public Member Functions inherited from faudes::vGenerator
static SymbolTableGlobalEventSymbolTablep (void)
 
static void StateNamesEnabledDefault (bool flag)
 
static void ReindexOnWriteDefault (bool flag)
 
static bool ReindexOnWriteDefault (void)
 
- Protected Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
virtual void NewCore (void)
 
virtual void UpdateCore (void)
 
void DoAssign (const TaGenerator &rGen)
 
- Protected Member Functions inherited from faudes::vGenerator
virtual void DeleteCore (void)
 
void ConfigureAttributeTypes (const AttributeVoid *pNewGlobalPrototype, const StateSet *pNewStatesPrototype, const EventSet *pNewAlphabetPrototype, const TransSet *pNewTransRelPrototype)
 
void DoAssign (const vGenerator &rSrc)
 
virtual void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 
virtual void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoSWrite (TokenWriter &rTw) const
 
virtual void DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void ReadAlphabet (TokenReader &rTr)
 
void WriteStates (TokenWriter &rTw) const
 
void ReadStates (TokenReader &rTr)
 
void XReadStateSet (TokenReader &rTr, StateSet &rStateSet, const std::string &rLabel="") const
 
void ReadTransRel (const std::string &rFileName)
 
void ReadTransRel (TokenReader &rTr)
 
void XReadTransRel (TokenReader &rTr)
 
void XWriteStateSet (TokenWriter &rTw, const StateSet &rStateSet, const std::string &rLabel="") const
 
void XWriteTransRel (TokenWriter &rTw) const
 
- Protected Member Functions inherited from faudes::Type
void DoAssign (const Type &rSrc)
 
bool DoEqual (const Type &rOther) const
 
virtual const TypeDefinitionTypeDefinitionp (void) const
 
virtual Token XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const
 
- Static Protected Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
static const TaNameSet< EventAttr > & AlphabetTaGen (void)
 
static const TaIndexSet< StateAttr > & StatesTaGen (void)
 
static const ATransSetTransRelTaGen (void)
 
static const GlobalAttr & GlobalTaGen (void)
 
- Static Protected Member Functions inherited from faudes::vGenerator
static const EventSetAlphabetVoid (void)
 
static const StateSetStatesVoid (void)
 
static const TransSetTransRelVoid (void)
 
static const AttributeVoidGlobalVoid (void)
 
- Protected Attributes inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
TaNameSet< EventAttr > * pAlphabet
 
TaIndexSet< StateAttr > * pStates
 
ATransSetpTransRel
 
GlobalAttr * pGlobalAttribute
 
- Protected Attributes inherited from faudes::vGenerator
std::string mMyName
 
Idx mId
 
SymbolTable mStateSymbolTable
 
SymbolTablempStateSymbolTable
 
SymbolTablempEventSymbolTable
 
bool mStateNamesEnabled
 
bool mReindexOnWrite
 
EventSetmpAlphabet
 
StateSetmpStates
 
TransSetmpTransRel
 
AttributeVoidmpGlobalAttribute
 
const EventSetpAlphabetPrototype
 
const StateSetpStatesPrototype
 
const TransSetpTransRelPrototype
 
const AttributeVoidpGlobalPrototype
 
StateSet mInitStates
 
StateSet mMarkedStates
 
std::map< Idx, IdxmMinStateIndexMap
 
- Static Protected Attributes inherited from faudes::vGenerator
static Idx msObjectCount = 0
 
static bool msStateNamesEnabledDefault = true
 
static bool msReindexOnWriteDefault = false
 

Detailed Description

template<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
class faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >

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.

Constructor & Destructor Documentation

◆ TdiagGenerator() [1/4]

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator ( void  )

doxygen group Creates an emtpy diagnoser

Definition at line 227 of file diag_generator.h.

◆ TdiagGenerator() [2/4]

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator ( const Generator rOtherGen)

Construct diagnoser from std generator.

Parameters
rOtherGen

Definition at line 241 of file diag_generator.h.

◆ TdiagGenerator() [3/4]

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator ( const TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > &  rOtherGen)

Copy constructor.

Parameters
rOtherGen

Definition at line 234 of file diag_generator.h.

◆ TdiagGenerator() [4/4]

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TdiagGenerator ( const std::string &  rFileName)

Construct from file

Parameters
rFileNameFilename
Exceptions
ExceptionIf opening/reading fails an Exception object is thrown (id 1, 50, 51)

Definition at line 248 of file diag_generator.h.

◆ ~TdiagGenerator()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::~TdiagGenerator ( void  )
inline

Default destructor.

Definition at line 84 of file diag_generator.h.

Member Function Documentation

◆ Copy()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > * faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Copy ( void  ) const
virtual

Construct copy on heap

Returns
new Generator

Reimplemented from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.

Definition at line 269 of file diag_generator.h.

◆ DotWrite()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::DotWrite ( const std::string &  rFileName) const
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.

Parameters
rFileNameFile to write
Exceptions
Exception
  • IO errors (id 2)

Reimplemented from faudes::vGenerator.

Definition at line 321 of file diag_generator.h.

◆ GetAllFailureEvents()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
EventSet faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GetAllFailureEvents ( void  ) const

Returns the all failure events of the failure partition.

Returns

EventSet containing all failure events.

Definition at line 294 of file diag_generator.h.

◆ GetFailureType()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GetFailureType ( Idx  failureEvent) const

Returns the failure type of a particular failure events.

Parameters
failureEventA failure event.
Returns

Index of failure type in msLabelSymbolTable.

Definition at line 289 of file diag_generator.h.

◆ InsFailureTypeMap()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsFailureTypeMap ( const std::map< std::string, EventSet > &  rFailureMap)

Insert entire failure type map in the diagnoser.

Parameters
rFailureMapMap of failure type names to failure events.

Definition at line 283 of file diag_generator.h.

◆ InsFailureTypeMapping()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsFailureTypeMapping ( const std::string &  failureType,
const EventSet rfailureEvents 
)

Adds a failure type with associated failure events to the global attribute. If failure type does already exists the failure events are overridden.

Parameters
failureTypeName of failure type.
rfailureEventsAssociated failure events.
Returns
Index of failure type in msLabelSymbolTable of DiagLabelSet

Definition at line 278 of file diag_generator.h.

◆ InsStateLabelMap()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsStateLabelMap ( Idx  dStateIndex,
Idx  gState,
const DiagLabelSet labels 
)

Inserts a DiagLabelSet containing a complete set of generator state estimates to a diagnoser state.

Parameters
dStateIndexIndex of diagnoser state.
gStateIndex of generator state estimate.
labelsAssociated DiagLabelSet containing the generator state estimates.

Definition at line 305 of file diag_generator.h.

◆ InsStateLabelMapping()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsStateLabelMapping ( Idx  dStateIndex,
Idx  gStateIndex,
Idx  labelIndex 
)

Inserts a generator state estimate to a diagnoser state.

Parameters
dStateIndexIndex of diagnoser state.
gStateIndexIndex of generator state estimate.
labelIndexIndex of associated label.

Definition at line 299 of file diag_generator.h.

◆ New()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > * faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::New ( void  ) const
virtual

Construct on heap

Returns
new Generator

Reimplemented from faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.

Definition at line 256 of file diag_generator.h.

◆ operator=()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
TdiagGenerator& faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= ( const Generator rOtherGen)
inline

Assignment operator (uses copy )

Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly

Parameters
rOtherGenOther generator

Definition at line 97 of file diag_generator.h.

◆ SAStr()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
std::string faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SAStr ( Idx  dStateIndex) const

Prints all generator state estimates of a diagnoser state to a string.

Parameters
dStateIndexIndex of diagnoser state.
Returns
String containing state estimates.

Definition at line 316 of file diag_generator.h.

◆ SetStateAttr()

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetStateAttr ( Idx  dStateIndex,
const AttributeDiagnoserState newAttr 
)

Set a diagnoser state attribute.

Parameters
dStateIndexIndex of diagnoser state.
newAttrThe new attribute.

Definition at line 311 of file diag_generator.h.

Member Data Documentation

◆ mpLabelSymbolTable

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
SymbolTable* faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::mpLabelSymbolTable
private

Pointer to static LabelSymbolTable of DiagLabelSet.

Definition at line 30 of file diag_generator.h.


The documentation for this class was generated from the following file:

libFAUDES 2.33b --- 2025.05.07 --- c++ api documentaion by doxygen