| |
|
|||||||
|
|
||||||||
|
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> class faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Generator with specified attribute types. OverviewThe TaGenerator takes four template parameters to specify attribute classes for the global attribute and state-, event- and transition-attributes. In the context of a TaGenerator, attributes still have only minimal sematics: they can be accessed in a per event, state and transition manner and they can have default or non-default value. The minimum interface that an attribute template parameter must provide, is given in faudes::AttributeVoid. Derived attribute classes are meant to provide addtional semantics, eg faudes::AttributeFlags for boolean flags and faudes::AttributeCFlags for controllability properties. The TaGenerator transparently supports extended attribute semantics, but does not provide taylored access functions. This is done in TaGenerator derivates eg TcGenerator. Technical detail: Attributes data types must be derived from AttributeVoid, which in turn is derived from the general purpose base faudes::Type. For your derived attribute class to be fully functional, you must reimplement the faudes::Type::New(). Definition at line 70 of file cfl_agenerator.h.
Member Typedef Documentation◆ ATransSet
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Convenience typdef for member transiton set Definition at line 75 of file cfl_agenerator.h. Constructor & Destructor Documentation◆ TaGenerator() [1/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
doxygen group Construct an emtpy Generator Definition at line 820 of file cfl_agenerator.h. ◆ TaGenerator() [2/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copy-constructor (from TaGenerator, incl attributes)
Definition at line 832 of file cfl_agenerator.h. ◆ TaGenerator() [3/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copy-constructor (from vGenerator, set attributes to default)
Definition at line 846 of file cfl_agenerator.h. ◆ TaGenerator() [4/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Construct from file. This constructor effectively uses the Read(TokenReader&) function to read.
Definition at line 860 of file cfl_agenerator.h. ◆ ~TaGenerator()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Destructor Definition at line 985 of file cfl_agenerator.h. Member Function Documentation◆ Alphabet()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
doxygen group Return const reference to alphabet
Definition at line 1343 of file cfl_agenerator.h. ◆ AlphabetTaGen()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Static default alphabet prototype (incl. attribute type) Definition at line 801 of file cfl_agenerator.h. ◆ Cast()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Construct on stack. Technically not a constructor, this function creates a TaGenerator with the same event symboltable and the same attribute type.
Reimplemented from faudes::vGenerator. Reimplemented in faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1021 of file cfl_agenerator.h. ◆ Clear()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Clear generator data. Clears state set, alphabet and transitionrealtion. Behavioural flags eg StateNamesEnabled are maintained. Reimplemented from faudes::vGenerator. Reimplemented in faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::Executor. Definition at line 1052 of file cfl_agenerator.h. ◆ Copy()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
doxygen group Copy from other faudes Type (try to cast to agenerator or pass to base)
Reimplemented from faudes::vGenerator. Reimplemented in faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 951 of file cfl_agenerator.h. ◆ DoCopy()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copyment Definition at line 919 of file cfl_agenerator.h. ◆ EventAttribute() [1/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Event attribute lookup
Reimplemented from faudes::vGenerator. Definition at line 1302 of file cfl_agenerator.h. ◆ EventAttribute() [2/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Event attribute lookup
Reimplemented from faudes::vGenerator. Definition at line 1292 of file cfl_agenerator.h. ◆ EventAttribute() [3/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
doxygen group Set attribute for existing event
Definition at line 1272 of file cfl_agenerator.h. ◆ EventAttribute() [4/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Reimplemented from faudes::vGenerator. Definition at line 1279 of file cfl_agenerator.h. ◆ EventAttributep() [1/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute
Reimplemented from faudes::vGenerator. Definition at line 1307 of file cfl_agenerator.h. ◆ EventAttributep() [2/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute
Reimplemented from faudes::vGenerator. Definition at line 1297 of file cfl_agenerator.h. ◆ GlobalAttribute() [1/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
◆ GlobalAttribute() [2/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Reimplemented from faudes::vGenerator. Definition at line 736 of file cfl_agenerator.h. ◆ GlobalAttribute() [3/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get global attribute ref Reimplemented from faudes::vGenerator. Definition at line 741 of file cfl_agenerator.h. ◆ GlobalAttributep()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get global attribute pointer Reimplemented from faudes::vGenerator. Definition at line 747 of file cfl_agenerator.h. ◆ GlobalTaGen()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Static default global attribute prototype (configures global attribute type) Definition at line 813 of file cfl_agenerator.h. ◆ InjectAlphabet() [1/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set mpAlphabet without consistency check. Attributes will be casted if possible or silently ignored.
Definition at line 1059 of file cfl_agenerator.h. ◆ InjectAlphabet() [2/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set mpAlphabet without consistency check.
Definition at line 1065 of file cfl_agenerator.h. ◆ InjectStates() [1/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Inject a complete state set without consistency checks. Attributes will be casted if possible or silently ignored.
Definition at line 1145 of file cfl_agenerator.h. ◆ InjectStates() [2/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Inject a complete state set without consistency checks.
Definition at line 1152 of file cfl_agenerator.h. ◆ InjectTransRel() [1/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set transition relation without consistency check.
Definition at line 1169 of file cfl_agenerator.h. ◆ InjectTransRel() [2/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set transition relation without consistency check. Attributes will be casted if possible or silently ignored.
Definition at line 1163 of file cfl_agenerator.h. ◆ InsEvent() [1/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add named event to generator. An entry in the mpEventSymbolTable will be made if event name is not known so far.
Definition at line 1085 of file cfl_agenerator.h. ◆ InsEvent() [2/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Definition at line 1097 of file cfl_agenerator.h. ◆ InsEvent() [3/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Definition at line 1079 of file cfl_agenerator.h. ◆ InsEvent() [4/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add an existing event to alphabet by index, incl. attribute If the index allready exists, the attribute is overwritten by rAttr.
Definition at line 1091 of file cfl_agenerator.h. ◆ InsState() [1/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add new anonymous state with attribute to generator
Definition at line 1109 of file cfl_agenerator.h. ◆ InsState() [2/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add new named state to generator.
Definition at line 1127 of file cfl_agenerator.h. ◆ InsState() [3/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add new named state with attribute to generator.
Definition at line 1135 of file cfl_agenerator.h. ◆ InsState() [4/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add (perhaps new) state to generator
Definition at line 1115 of file cfl_agenerator.h. ◆ InsState() [5/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add (perhaps new) state with attribute to generator.
Definition at line 1121 of file cfl_agenerator.h. ◆ InsState() [6/6]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add new anonymous state to generator
Definition at line 1103 of file cfl_agenerator.h. ◆ Move()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Destructive copy from other Generator. Copy method with increased performance at the cost of invalidating the source data. Convert attributes if possible.
Reimplemented from faudes::vGenerator. Reimplemented in faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 975 of file cfl_agenerator.h. ◆ New()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 990 of file cfl_agenerator.h. ◆ NewCore()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Allocate my heap members (attribute dependent types) Reimplemented from faudes::vGenerator. Definition at line 877 of file cfl_agenerator.h. ◆ NewCpy()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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::TdiagGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< AttributeVoid, HioStateFlags, HioEventFlags, AttributeVoid >, faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1001 of file cfl_agenerator.h. ◆ operator=()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Copyment operator (uses DoCopy(Generator&) )
Definition at line 1027 of file cfl_agenerator.h. ◆ SetTransition() [1/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition to generator by names. Statename and eventname must already exist!
Definition at line 1176 of file cfl_agenerator.h. ◆ SetTransition() [2/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition to generator. States and event must already exist!
Definition at line 1187 of file cfl_agenerator.h. ◆ SetTransition() [3/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition with attribute to generator. States and event must already exist!
Definition at line 1214 of file cfl_agenerator.h. ◆ SetTransition() [4/4]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Add a transition to generator by indices. States and event must already exist! Define FAUDES_CHECKED for consistency checks.
Definition at line 1182 of file cfl_agenerator.h. ◆ StateAttribute() [1/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
State attribute lookup
Reimplemented from faudes::vGenerator. Definition at line 1333 of file cfl_agenerator.h. ◆ StateAttribute() [2/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set attribute for existing state
Definition at line 1312 of file cfl_agenerator.h. ◆ StateAttribute() [3/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Reimplemented from faudes::vGenerator. Definition at line 1319 of file cfl_agenerator.h. ◆ StateAttributep()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
State attribute pointer (to access Attribute methods) note: may insert explicit default attribute
Reimplemented from faudes::vGenerator. Definition at line 1338 of file cfl_agenerator.h. ◆ States()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Return reference to state set
Definition at line 1348 of file cfl_agenerator.h. ◆ StatesTaGen()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Static default state set prototype (incl. attribute type) Definition at line 805 of file cfl_agenerator.h. ◆ TransAttribute() [1/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get attribute for existing transition
Reimplemented from faudes::vGenerator. Definition at line 1267 of file cfl_agenerator.h. ◆ TransAttribute() [2/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Set attribute for existing transition
Definition at line 1241 of file cfl_agenerator.h. ◆ TransAttribute() [3/3]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Reimplemented from faudes::vGenerator. Definition at line 1248 of file cfl_agenerator.h. ◆ TransAttributep()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get attribute pointer for existing transition note: may insert explicit default attribute
Reimplemented from faudes::vGenerator. Definition at line 1261 of file cfl_agenerator.h. ◆ TransRel() [1/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Definition at line 1359 of file cfl_agenerator.h. ◆ TransRel() [2/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
◆ TransRel() [3/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Get copy of trantision relation sorted by other compare operator, e.g. "x2,ev,x1"
Definition at line 1358 of file cfl_agenerator.h. ◆ TransRel() [4/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
◆ TransRel() [5/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Definition at line 1361 of file cfl_agenerator.h. ◆ TransRel() [6/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
◆ TransRel() [7/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Return reference to transition relation
Definition at line 1353 of file cfl_agenerator.h. ◆ TransRelTaGen()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Static default transition relation prototype (incl. attribute type) Definition at line 809 of file cfl_agenerator.h. ◆ UpdateCore()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Update my secondary pointers for new core Reimplemented from faudes::vGenerator. Definition at line 895 of file cfl_agenerator.h. ◆ Valid()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
doxygen group Check if generator is valid
Reimplemented from faudes::vGenerator. Reimplemented in faudes::TlhaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1033 of file cfl_agenerator.h. Member Data Documentation◆ pAlphabet
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Alphabet, pointer with actual attribute type Definition at line 758 of file cfl_agenerator.h. ◆ pGlobalAttribute
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Global attribute, pointer with actual attribute type Definition at line 767 of file cfl_agenerator.h. ◆ pStates
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
State set, pointer with actual attribute type Definition at line 761 of file cfl_agenerator.h. ◆ pTransRel
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Transition relation, pointer with actual attribute type Definition at line 764 of file cfl_agenerator.h. The documentation for this class was generated from the following file: libFAUDES 2.34e --- 2026.03.16 --- c++ api documentaion by doxygen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||