| |
libFAUDES
Sections
Index
|
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > Class Template Reference |
Public Types | |
typedef TaTransSet< TransAttr > | ATransSet |
Convenience typdef for member transiton set. | |
Public Member Functions | |
Constructors & Destructor | |
TaGenerator (void) | |
Construct an emtpy Generator. | |
TaGenerator (const TaGenerator &rOtherGen) | |
Copy-constructor (from TaGenerator, incl attributes). | |
TaGenerator (const vGenerator &rOtherGen) | |
Copy-constructor (from vGenerator, set attributes to default). | |
TaGenerator (const std::string &rFileName) | |
Construct from file. | |
virtual TaGenerator * | New (void) const |
Construct on heap. | |
virtual TaGenerator | NewAGen (void) const |
Construct on stack. | |
virtual | ~TaGenerator (void) |
Destructor. | |
Copy and Assignment | |
virtual void | Copy (TaGenerator &rGen) const |
Copy to other TaGenerator (incl attributes). | |
virtual void | Copy (vGenerator &rGen) const |
Copy to other vGenerator (try to maintain attributes). | |
virtual void | Move (TaGenerator &rGen) |
Destructive copy to other TaGenerator Copy method with increased performance at the cost of invalidating the source data. | |
virtual void | Move (vGenerator &rGen) |
Destructive copy to other vGenerator. | |
virtual TaGenerator & | operator= (const TaGenerator &rOtherGen) |
Assignment operator (uses Copy(TaGenerator&) ). | |
virtual TaGenerator & | operator= (const vGenerator &rOtherGen) |
Assignment operator (uses Copy(vGenerator&) ). | |
Basic Maintenance | |
bool | Valid (void) |
Check if generator is valid. | |
virtual void | Clear (void) |
Clear generator data. | |
Read Access to Core Members | |
const TaNameSet< EventAttr > & | Alphabet (void) const |
Return const reference to alphabet. | |
const TaIndexSet< StateAttr > & | States (void) const |
Return reference to state set. | |
const ATransSet & | TransRel (void) const |
Return reference to transition relation. | |
void | TransRel (TransSetX1EvX2 &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
void | TransRel (TransSetEvX1X2 &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
void | TransRel (TransSetEvX2X1 &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
void | TransRel (TransSetX2EvX1 &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
void | TransRel (TransSetX2X1Ev &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
void | TransRel (TransSetX1X2Ev &res) const |
Get copy of trantision relation sorted by other compare operator, e.g. | |
Write Access to Core Members | |
bool | InsEvent (Idx index) |
Add an existing event to alphabet by index. | |
Idx | InsEvent (const std::string &rName) |
Add named event to generator. | |
bool | InsEvent (Idx index, const EventAttr &rAttr) |
Add an existing event to alphabet by index, incl. | |
Idx | InsEvent (const std::string &rName, const EventAttr &rAttr) |
Add named event with attribute to generator. | |
void | InjectAlphabet (const EventSet &rNewalphabet) |
Set mpAlphabet without consistency check. | |
void | InjectAlphabet (const TaNameSet< EventAttr > &rNewalphabet) |
Set mpAlphabet without consistency check. | |
Idx | InsState (void) |
Add new anonymous state to generator. | |
Idx | InsState (const StateAttr &attr) |
Add new anonymous state with attribute to generator. | |
bool | InsState (Idx index) |
Add (perhaps new) state to generator. | |
Idx | InsState (const std::string &rName) |
Add new named state to generator. | |
Idx | InsState (const std::string &rName, const StateAttr &attr) |
Add new named state with attribute to generator. | |
bool | InsState (Idx index, const StateAttr &attr) |
Add (perhaps new) state with attribute to generator. | |
void | InjectStates (const StateSet &rNewStates) |
Inject a complete state set without consistency checks. | |
void | InjectStates (const TaIndexSet< StateAttr > &rNewStates) |
Inject a complete state set without consistency checks. | |
bool | SetTransition (Idx x1, Idx ev, Idx x2) |
Add a transition to generator by indices. | |
bool | SetTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2) |
Add a transition to generator by names. | |
bool | SetTransition (const Transition &rTransition) |
Add a transition to generator. | |
bool | SetTransition (const Transition &rTransition, const TransAttr &rAttr) |
Add a transition with attribute to generator. | |
void | InjectTransRel (const TransSet &rNewtransrel) |
Set transition relation without consistency check. | |
void | InjectTransRel (const ATransSet &rNewtransrel) |
Set transition relation without consistency check. | |
Attributes | |
void | EventAttribute (Idx index, const EventAttr &rAttr) |
Set attribute for existing event. | |
void | EventAttribute (Idx index, const Type &rAttr) |
Set attribute for existing event. | |
const EventAttr & | EventAttribute (Idx index) const |
Event attribute lookup. | |
const EventAttr & | EventAttribute (const std::string &rName) const |
Event attribute lookup. | |
EventAttr * | EventAttributep (Idx index) |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute. | |
EventAttr * | EventAttributep (const std::string &rName) |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute. | |
void | StateAttribute (Idx index, const StateAttr &rAttr) |
Set attribute for existing state. | |
void | StateAttribute (Idx index, const Type &rAttr) |
Set attribute for existing state. | |
const StateAttr & | StateAttribute (Idx index) const |
State attribute lookup. | |
StateAttr * | StateAttributep (Idx index) |
State attribute pointer (to access Attribute methods) note: may insert explicit default attribute. | |
void | TransAttribute (const Transition &rTrans, const TransAttr &rAttr) |
Set attribute for existing transition. | |
void | TransAttribute (const Transition &rTrans, const Type &rAttr) |
Set attribute for existing transition. | |
const TransAttr & | TransAttribute (const Transition &rTrans) const |
Get attribute for existing transition. | |
TransAttr * | TransAttributep (const Transition &rTrans) |
Get attribute pointer for existing transition note: may insert explicit default attribute. | |
void | GlobalAttribute (const GlobalAttr &rAttr) |
Set global attribute. | |
const GlobalAttr & | GlobalAttribute (void) const |
Get global attribute ref. | |
GlobalAttr * | GlobalAttributep (void) |
Get global attribute pointer. | |
Protected Member Functions | |
virtual void | NewCore (void) |
Allocate my heap members (attribute dependent types). | |
virtual void | UpdateCore (void) |
Update my secondary pointers for new core. | |
Protected Attributes | |
TaNameSet< EventAttr > * | pAlphabet |
Alphabet, pointer with actual attribute type. | |
TaIndexSet< StateAttr > * | pStates |
State set, pointer with actual attribute type. | |
ATransSet * | pTransRel |
Transition relation, pointer with actual attribute type. | |
GlobalAttr * | pGlobalAttribute |
Global attribute, pointer with actual attribute type. |
typedef TaTransSet<TransAttr> faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::ATransSet |
Convenience typdef for member transiton set.
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | void | ) | [inline] |
Construct an emtpy Generator.
doxygen group
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) | [inline] |
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const vGenerator & | rOtherGen | ) | [inline] |
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TaGenerator | ( | const std::string & | rFileName | ) | [inline] |
faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::~TaGenerator | ( | void | ) | [inline, virtual] |
Destructor.
TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > * faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::New | ( | void | ) | const [inline, 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::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TcGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >, faudes::THioConstraint< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioController< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioEnvironment< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioPlant< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::NewAGen | ( | void | ) | const [inline, virtual] |
Construct on stack.
Technically not a constructor, this function creates a TaGenerator with the same event symboltable and the same attribute type.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Copy | ( | TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rGen | ) | const [inline, virtual] |
Copy to other TaGenerator (incl attributes).
doxygen group
rGen | Destination for copy operation. |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Copy | ( | vGenerator & | rGen | ) | const [inline, virtual] |
Copy to other vGenerator (try to maintain attributes).
rGen | Destination for copy operation. |
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TmtcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Move | ( | TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rGen | ) | [inline, 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. |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Move | ( | vGenerator & | rGen | ) | [inline, virtual] |
Destructive copy to other vGenerator.
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.
TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= | ( | const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & | rOtherGen | ) | [inline, virtual] |
Assignment operator (uses Copy(TaGenerator&) ).
rOtherGen | Other generator |
TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= | ( | const vGenerator & | rOtherGen | ) | [inline, virtual] |
Assignment operator (uses Copy(vGenerator&) ).
rOtherGen | Other generator |
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TcGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioConstraint< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioController< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::THioPlant< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, faudes::TcGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >, faudes::THioConstraint< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioController< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioEnvironment< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, faudes::THioPlant< faudes::AttributeVoid, faudes::HioStateFlags, faudes::HioEventFlags, faudes::AttributeVoid >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Valid | ( | void | ) | [inline, virtual] |
Check if generator is valid.
doxygen group
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Clear | ( | void | ) | [inline, virtual] |
Clear generator data.
Clears state set, alphabet and transitionrealtion. Behavioural flags eg StateNamesEnabled are maintained.
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::Executor.
const TaNameSet< EventAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::Alphabet | ( | void | ) | const [inline] |
Return const reference to alphabet.
doxygen group
Reimplemented from faudes::vGenerator.
const TaIndexSet< StateAttr > & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::States | ( | void | ) | const [inline] |
Return reference to state set.
Reimplemented from faudes::vGenerator.
const TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::ATransSet & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | void | ) | const [inline] |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX1EvX2 & | res | ) | const [inline] |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetEvX1X2 & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetEvX2X1 & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX2EvX1 & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX2X1Ev & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransRel | ( | TransSetX1X2Ev & | res | ) | const |
Get copy of trantision relation sorted by other compare operator, e.g.
"x2,ev,x1"
res | resulting transition relation |
Reimplemented from faudes::vGenerator.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | Idx | index | ) | [inline] |
Add an existing event to alphabet by index.
doxygen group It is an error to insert an event index that is not known to the mpEventSymbolTable.
index | Event index |
Reimplemented from faudes::vGenerator.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | const std::string & | rName | ) | [inline] |
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 |
Reimplemented from faudes::vGenerator.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | Idx | index, | |
const EventAttr & | rAttr | |||
) | [inline] |
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 |
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsEvent | ( | const std::string & | rName, | |
const EventAttr & | rAttr | |||
) | [inline] |
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 |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectAlphabet | ( | const EventSet & | rNewalphabet | ) | [inline] |
Set mpAlphabet without consistency check.
Attributes will be casted if possible or silently ignored.
rNewalphabet | EventSet with new alphabet |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectAlphabet | ( | const TaNameSet< EventAttr > & | rNewalphabet | ) | [inline] |
Set mpAlphabet without consistency check.
rNewalphabet | EventSet with new alphabet |
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | void | ) | [inline] |
Add new anonymous state to generator.
Reimplemented from faudes::vGenerator.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const StateAttr & | attr | ) | [inline] |
Add new anonymous state with attribute to generator.
attr | attribute of new state |
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | Idx | index | ) | [inline] |
Add (perhaps new) state to generator.
Reimplemented from faudes::vGenerator.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const std::string & | rName | ) | [inline] |
Add new named state to generator.
rName | Name of the state to add |
Exception | Name already exists (id 44) |
Reimplemented from faudes::vGenerator.
Idx faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | const std::string & | rName, | |
const StateAttr & | attr | |||
) | [inline] |
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) |
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsState | ( | Idx | index, | |
const StateAttr & | attr | |||
) | [inline] |
Add (perhaps new) state with attribute to generator.
index | Index of state to add | |
attr | Attribute of new state |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectStates | ( | const StateSet & | rNewStates | ) | [inline] |
Inject a complete state set without consistency checks.
Attributes will be casted if possible or silently ignored.
rNewStates | StateSet |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectStates | ( | const TaIndexSet< StateAttr > & | rNewStates | ) | [inline] |
Inject a complete state set without consistency checks.
rNewStates | StateSet |
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | Idx | x1, | |
Idx | ev, | |||
Idx | x2 | |||
) | [inline] |
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 |
|
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const std::string & | rX1, | |
const std::string & | rEv, | |||
const std::string & | rX2 | |||
) | [inline] |
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 |
|
Reimplemented from faudes::vGenerator.
Reimplemented in faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const Transition & | rTransition | ) | [inline] |
Add a transition to generator.
States and event must already exist!
rTransition | Transition |
Exception |
|
Reimplemented from faudes::vGenerator.
bool faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetTransition | ( | const Transition & | rTransition, | |
const TransAttr & | rAttr | |||
) | [inline] |
Add a transition with attribute to generator.
States and event must already exist!
rTransition | transition | |
rAttr | attribute |
Exception |
|
Reimplemented in faudes::TtGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >, and faudes::TtGenerator< faudes::AttributeTimedGlobal, faudes::AttributeTimedState, faudes::AttributeCFlags, faudes::AttributeTimedTrans >.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectTransRel | ( | const TransSet & | rNewtransrel | ) | [inline] |
Set transition relation without consistency check.
Attributes will be casted if possible or silently ignored.
rNewtransrel | TransRel to insert |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::InjectTransRel | ( | const ATransSet & | rNewtransrel | ) | [inline] |
Set transition relation without consistency check.
rNewtransrel | TransRel to insert |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttribute | ( | Idx | index, | |
const EventAttr & | rAttr | |||
) | [inline] |
Set attribute for existing event.
doxygen group
index | Event index | |
rAttr | New attribute |
Exception | Index not found in alphabet (id 60) |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttribute | ( | Idx | index, | |
const Type & | rAttr | |||
) | [inline, 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.
const EventAttr & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttribute | ( | Idx | index | ) | const [inline, virtual] |
Event attribute lookup.
index |
Reimplemented from faudes::vGenerator.
const EventAttr & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttribute | ( | const std::string & | rName | ) | const [inline, virtual] |
Event attribute lookup.
rName |
Reimplemented from faudes::vGenerator.
EventAttr * faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttributep | ( | Idx | index | ) | [inline, virtual] |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute.
index |
Reimplemented from faudes::vGenerator.
EventAttr * faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::EventAttributep | ( | const std::string & | rName | ) | [inline, virtual] |
Event attribute pointer (to access Attribute methods) note: may insert explicit default attribute.
rName |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::StateAttribute | ( | Idx | index, | |
const StateAttr & | rAttr | |||
) | [inline] |
Set attribute for existing state.
index | Index | |
rAttr | attriute |
Exception | Name already associated with another index (id 44) |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::StateAttribute | ( | Idx | index, | |
const Type & | rAttr | |||
) | [inline, 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.
const StateAttr & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::StateAttribute | ( | Idx | index | ) | const [inline, virtual] |
State attribute lookup.
index |
Reimplemented from faudes::vGenerator.
StateAttr * faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::StateAttributep | ( | Idx | index | ) | [inline, virtual] |
State attribute pointer (to access Attribute methods) note: may insert explicit default attribute.
index |
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransAttribute | ( | const Transition & | rTrans, | |
const TransAttr & | rAttr | |||
) | [inline] |
Set attribute for existing transition.
rTrans | transition | |
rAttr | New attribute |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransAttribute | ( | const Transition & | rTrans, | |
const Type & | rAttr | |||
) | [inline, 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.
const TransAttr & faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransAttribute | ( | const Transition & | rTrans | ) | const [inline, virtual] |
TransAttr * faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::TransAttributep | ( | const Transition & | rTrans | ) | [inline, virtual] |
Get attribute pointer for existing transition note: may insert explicit default attribute.
Reimplemented from faudes::vGenerator.
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GlobalAttribute | ( | const GlobalAttr & | rAttr | ) | [inline] |
Set global attribute.
rAttr | attribute |
const GlobalAttr& faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GlobalAttribute | ( | void | ) | const [inline, virtual] |
GlobalAttr* faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::GlobalAttributep | ( | void | ) | [inline, virtual] |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::NewCore | ( | void | ) | [inline, protected, virtual] |
void faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::UpdateCore | ( | void | ) | [inline, protected, virtual] |
TaNameSet<EventAttr>* faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::pAlphabet [protected] |
Alphabet, pointer with actual attribute type.
TaIndexSet<StateAttr>* faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::pStates [protected] |
State set, pointer with actual attribute type.
ATransSet* faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::pTransRel [protected] |
Transition relation, pointer with actual attribute type.
GlobalAttr* faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >::pGlobalAttribute [protected] |
Global attribute, pointer with actual attribute type.
libFAUDES 2.13a c++ source docu by doxygen 1.5.6