|
|
||||||
|
Public Types |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
List of all members
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Class Template Reference
Detailed Descriptiontemplate<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
|
typedef TaTransSet<TransAttr> faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::ATransSet |
Convenience typdef for member transiton set
Definition at line 75 of file cfl_agenerator.h.
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | void | ) |
doxygen group Construct an emtpy Generator
Definition at line 831 of file cfl_agenerator.h.
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) |
Copy-constructor (from TaGenerator, incl attributes)
rOtherGen |
Definition at line 843 of file cfl_agenerator.h.
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const vGenerator & | rOtherGen | ) |
Copy-constructor (from vGenerator, set attributes to default)
rOtherGen |
Definition at line 857 of file cfl_agenerator.h.
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const std::string & | rFileName | ) |
Construct from file. This constructor effectively uses the Read(TokenReader&) function to read.
rFileName | Name of file |
Definition at line 871 of file cfl_agenerator.h.
|
virtual |
Destructor
Definition at line 1001 of file cfl_agenerator.h.
const TaEventSet< EventAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Alphabet | ( | void | ) | const |
doxygen group Return const reference to alphabet
Definition at line 1360 of file cfl_agenerator.h.
|
staticprotected |
Static default alphabet prototype (incl. attribute type)
Definition at line 812 of file cfl_agenerator.h.
|
virtual |
doxygen group Copy from other faudes Type (try to cast to agenerator or pass to base)
rSrc | Source for copy operation. |
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 962 of file cfl_agenerator.h.
|
virtual |
Type test. Uses C++ dynamic cast to test whether the specified object casts to a Generator.
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 1038 of file cfl_agenerator.h.
|
virtual |
Clear generator data. Clears state set, alphabet and transitionrealtion. Behavioural flags eg StateNamesEnabled are maintained.
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::Executor.
Definition at line 1069 of file cfl_agenerator.h.
|
virtual |
Construct copy on heap. Technically not a constructor, this function creates a TaGenerator with the same event symboltable and the same attribute types. It is the callers reponsebilty to delete the object when no longer needed.
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, and faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 1017 of file cfl_agenerator.h.
|
protected |
Assignment
Definition at line 930 of file cfl_agenerator.h.
|
virtual |
Event attribute lookup
rName |
Reimplemented from faudes::vGenerator.
Definition at line 1319 of file cfl_agenerator.h.
|
virtual |
Event attribute lookup
index |
Reimplemented from faudes::vGenerator.
Definition at line 1309 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttribute | ( | Idx | index, |
const EventAttr & | rAttr | ||
) |
doxygen group Set attribute for existing event
index | Event index |
rAttr | New attribute |
Exception | Index not found in alphabet (id 60) |
Definition at line 1289 of file cfl_agenerator.h.
|
virtual |
Set attribute for existing event. This version uses a dynamic cast to test the actual type of the provided attribute. An exception is thrown for an invalid attribute type.
index | Event index |
rAttr | New attribute |
Exception |
|
Reimplemented from faudes::vGenerator.
Definition at line 1296 of file cfl_agenerator.h.
|
virtual |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute
rName |
Reimplemented from faudes::vGenerator.
Definition at line 1324 of file cfl_agenerator.h.
|
virtual |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute
index |
Reimplemented from faudes::vGenerator.
Definition at line 1314 of file cfl_agenerator.h.
|
inline |
|
inlinevirtual |
Set global attribute. The vGenerator does not have attributes, so this function throws an exception for any specified attribute different to AttributeVoid. The TaGenarator provides a re-implementation to actually set the global attribute.
rAttr | Attribute |
Exception |
|
Reimplemented from faudes::vGenerator.
Definition at line 747 of file cfl_agenerator.h.
|
inlinevirtual |
Get global attribute ref
Reimplemented from faudes::vGenerator.
Definition at line 752 of file cfl_agenerator.h.
|
inlinevirtual |
Get global attribute pointer
Reimplemented from faudes::vGenerator.
Definition at line 758 of file cfl_agenerator.h.
|
staticprotected |
Static default global attribute prototype (configures global attribute type)
Definition at line 824 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectAlphabet | ( | const EventSet & | rNewalphabet | ) |
Set mpAlphabet without consistency check. Attributes will be casted if possible or silently ignored.
rNewalphabet | EventSet with new alphabet |
Definition at line 1076 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectAlphabet | ( | const TaEventSet< EventAttr > & | rNewalphabet | ) |
Set mpAlphabet without consistency check.
rNewalphabet | EventSet with new alphabet |
Definition at line 1082 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectStates | ( | const StateSet & | rNewStates | ) |
Inject a complete state set without consistency checks. Attributes will be casted if possible or silently ignored.
rNewStates | StateSet |
Definition at line 1162 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectStates | ( | const TaStateSet< StateAttr > & | rNewStates | ) |
Inject a complete state set without consistency checks.
rNewStates | StateSet |
Definition at line 1169 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectTransRel | ( | const ATransSet & | rNewtransrel | ) |
Set transition relation without consistency check.
rNewtransrel | TransRel to insert |
Definition at line 1186 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectTransRel | ( | const TransSet & | rNewtransrel | ) |
Set transition relation without consistency check. Attributes will be casted if possible or silently ignored.
rNewtransrel | TransRel to insert |
Definition at line 1180 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | const std::string & | rName | ) |
Add named event to generator. An entry in the mpEventSymbolTable will be made if event name is not known so far.
rName | Name of the event to add |
Definition at line 1102 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | const std::string & | rName, |
const EventAttr & | rAttr | ||
) |
Add named event with attribute to generator. An entry in the mpEventSymbolTable will be made if event is not kown so far. If the event allready exits in the generator, the attribute will be overwritten by rAttr.
rName | Name of the event to add |
rAttr | Attribute of event |
Definition at line 1114 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | Idx | index | ) |
doxygen group Add an existing event to alphabet by index. It is an error to insert an event index that is not known to the mpEventSymbolTable.
index | Event index |
Definition at line 1096 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | Idx | index, |
const EventAttr & | rAttr | ||
) |
Add an existing event to alphabet by index, incl. attribute If the index allready exists, the attribute is overwritten by rAttr.
rAttr | Attribute of event |
index | Event index |
Definition at line 1108 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const StateAttr & | attr | ) |
Add new anonymous state with attribute to generator
attr | attribute of new state |
Definition at line 1126 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const std::string & | rName | ) |
Add new named state to generator.
rName | Name of the state to add |
Exception | Name already exists (id 44) |
Definition at line 1144 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const std::string & | rName, |
const StateAttr & | attr | ||
) |
Add new named state with attribute to generator.
rName | Name of the state to add |
attr | attribute of new state |
Exception | Name already exists (id 44) |
Definition at line 1152 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | Idx | index | ) |
Add (perhaps new) state to generator
Definition at line 1132 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | Idx | index, |
const StateAttr & | attr | ||
) |
Add (perhaps new) state with attribute to generator.
index | Index of state to add |
attr | Attribute of new state |
Definition at line 1138 of file cfl_agenerator.h.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | void | ) |
Add new anonymous state to generator
Definition at line 1120 of file cfl_agenerator.h.
|
virtual |
Destructive copy to other Generator. Copy method with increased performance at the cost of invalidating the source data. Convert attributes if possible.
rGen | Destination for copy operation. |
Reimplemented from faudes::vGenerator.
Definition at line 994 of file cfl_agenerator.h.
|
virtual |
Destructive copy to other TaGenerator Copy method with increased performance at the cost of invalidating the source data. This version will copy attributes 1:1.
rGen | Destination for copy operation. |
Definition at line 986 of file cfl_agenerator.h.
|
virtual |
Construct on heap. Technically not a constructor, this function creates a TaGenerator with the same event symboltable and the same attribute types. It is the callers reponsebilty to delete the object when no longer needed.
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, and faudes::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 1006 of file cfl_agenerator.h.
|
virtual |
Construct on stack. Technically not a constructor, this function creates a TaGenerator with the same event symboltable and the same attribute type.
Definition at line 1025 of file cfl_agenerator.h.
|
protectedvirtual |
Allocate my heap members (attribute dependent types)
Reimplemented from faudes::vGenerator.
Definition at line 888 of file cfl_agenerator.h.
TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= | ( | const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) |
Assignment operator (uses Assign(Generator&) )
rOtherGen | Other generator |
Definition at line 1044 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const std::string & | rX1, |
const std::string & | rEv, | ||
const std::string & | rX2 | ||
) |
Add a transition to generator by names. Statename and eventname must already exist!
rX1 | Predecessor state name |
rEv | Event name |
rX2 | Successor state name |
Exception |
|
Definition at line 1193 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const Transition & | rTransition | ) |
Add a transition to generator. States and event must already exist!
rTransition | Transition |
Exception |
|
Definition at line 1204 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const Transition & | rTransition, |
const TransAttr & | rAttr | ||
) |
Add a transition with attribute to generator. States and event must already exist!
rTransition | transition |
rAttr | attribute |
Exception |
|
Definition at line 1231 of file cfl_agenerator.h.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | Idx | x1, |
Idx | ev, | ||
Idx | x2 | ||
) |
Add a transition to generator by indices. States and event must already exist!
Define FAUDES_CHECKED for consistency checks.
x1 | Predecessor state index |
ev | Event index |
x2 | Successor state index |
Exception |
|
Definition at line 1199 of file cfl_agenerator.h.
|
virtual |
State attribute lookup
index |
Reimplemented from faudes::vGenerator.
Definition at line 1350 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::StateAttribute | ( | Idx | index, |
const StateAttr & | rAttr | ||
) |
Set attribute for existing state
index | Index |
rAttr | attriute |
Exception | Name already associated with another index (id 44) |
Definition at line 1329 of file cfl_agenerator.h.
|
virtual |
Set attribute for existing state. This version uses a dynamic cast to test the actual type of the provided attribute. An exception is thrown for an invalid attribute type.
index | State index |
rAttr | New attribute |
Exception |
|
Reimplemented from faudes::vGenerator.
Definition at line 1336 of file cfl_agenerator.h.
|
virtual |
State attribute pointer (to access Attribute methods) note: may insert explicit default attribute
index |
Reimplemented from faudes::vGenerator.
Definition at line 1355 of file cfl_agenerator.h.
const TaStateSet< StateAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::States | ( | void | ) | const |
Return reference to state set
Definition at line 1365 of file cfl_agenerator.h.
|
staticprotected |
Static default state set prototype (incl. attribute type)
Definition at line 816 of file cfl_agenerator.h.
|
virtual |
Get attribute for existing transition
Reimplemented from faudes::vGenerator.
Definition at line 1284 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransAttribute | ( | const Transition & | rTrans, |
const TransAttr & | rAttr | ||
) |
Set attribute for existing transition
rTrans | transition |
rAttr | New attribute |
Definition at line 1258 of file cfl_agenerator.h.
|
virtual |
Set attribute for existing transition. This version uses a dynamic cast to test the actual type of the provided attribute. An exception is thrown for an invalid attribute type.
rTrans | transition |
rAttr | New attribute |
Exception |
|
Reimplemented from faudes::vGenerator.
Definition at line 1265 of file cfl_agenerator.h.
|
virtual |
Get attribute pointer for existing transition note: may insert explicit default attribute
Reimplemented from faudes::vGenerator.
Definition at line 1278 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetEvX1X2 & | res | ) | const |
Definition at line 1376 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetEvX2X1 & | res | ) | const |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX1EvX2 & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g. "x2,ev,x1"
res | resulting transition relation |
Definition at line 1375 of file cfl_agenerator.h.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX1X2Ev & | res | ) | const |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX2EvX1 & | res | ) | const |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX2X1Ev & | res | ) | const |
const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::ATransSet & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | void | ) | const |
Return reference to transition relation
Definition at line 1370 of file cfl_agenerator.h.
|
staticprotected |
Static default transition relation prototype (incl. attribute type)
Definition at line 820 of file cfl_agenerator.h.
|
protectedvirtual |
Update my secondary pointers for new core
Reimplemented from faudes::vGenerator.
Definition at line 906 of file cfl_agenerator.h.
|
virtual |
doxygen group Check if generator is valid
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::Executor, and faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >.
Definition at line 1050 of file cfl_agenerator.h.
|
protected |
Alphabet, pointer with actual attribute type
Definition at line 769 of file cfl_agenerator.h.
|
protected |
Global attribute, pointer with actual attribute type
Definition at line 778 of file cfl_agenerator.h.
|
protected |
State set, pointer with actual attribute type
Definition at line 772 of file cfl_agenerator.h.
|
protected |
Transition relation, pointer with actual attribute type
Definition at line 775 of file cfl_agenerator.h.
libFAUDES 2.33c --- 2025.05.15 --- c++ api documentaion by doxygen