|
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 831 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 843 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 857 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 871 of file cfl_agenerator.h. ◆ ~TaGenerator()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Destructor Definition at line 1001 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 1358 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 812 of file cfl_agenerator.h. ◆ Assign()
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::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 962 of file cfl_agenerator.h. ◆ Cast()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1036 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::Executor, and faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1067 of file cfl_agenerator.h. ◆ Copy()
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::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, 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::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1017 of file cfl_agenerator.h. ◆ DoAssign()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Assignment Definition at line 930 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 1317 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 1307 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 1287 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 1294 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 1322 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 1312 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 747 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 752 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 758 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 824 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 1074 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 1080 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 1160 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 1167 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 1184 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 1178 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 1100 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 1112 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 1094 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 1106 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 1124 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 1142 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 1150 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 1130 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 1136 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 1118 of file cfl_agenerator.h. ◆ Move() [1/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Destructive copy to other Generator. Copy method with increased performance at the cost of invalidating the source data. Convert attributes if possible.
Reimplemented from faudes::vGenerator. Definition at line 994 of file cfl_agenerator.h. ◆ Move() [2/2]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
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.
Definition at line 986 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::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, 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::TioGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TpGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TrGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1006 of file cfl_agenerator.h. ◆ NewAGen()
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.
Definition at line 1025 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 888 of file cfl_agenerator.h. ◆ operator=()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Assignment operator (uses DoAssign(Generator&) )
Definition at line 1042 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 1191 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 1202 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 1229 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 1197 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 1348 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 1327 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 1334 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 1353 of file cfl_agenerator.h. ◆ States()
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Return reference to state set
Definition at line 1363 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 816 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 1282 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 1256 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 1263 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 1276 of file cfl_agenerator.h. ◆ TransRel() [1/7]
template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Definition at line 1374 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 1373 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 1376 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 1368 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 820 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 906 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::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >. Definition at line 1048 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 769 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 778 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 772 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 775 of file cfl_agenerator.h. The documentation for this class was generated from the following file: libFAUDES 2.33k --- 2025.09.16 --- c++ api documentaion by doxygen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||