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

Generator with I/O-environment attributes. More...

#include <hio_environment.h>

Public Member Functions

 THioEnvironment (void)
 Creates an empty HioEnvironment object.
 THioEnvironment (const Generator &rOtherGen)
 HioEnvironment from a std Generator.
 THioEnvironment (const Generator &rOtherGen, const EventSet &rYl, const EventSet &rUl, const EventSet &rYe, const EventSet &rUe)
 HioEnvironment from a std Generator and event sets.
 THioEnvironment (const THioEnvironment &rOtherGen)
 HioEnvironment from a HioEnvironment.
 THioEnvironment (const std::string &rFileName)
 construct a HioEnvironment from file
THioEnvironmentNew (void) const
 Construct on heap.
virtual THioEnvironmentCopy (void) const
 Construct copy on heap.
THioEnvironment NewHioEnvironment (void) const
 Create empty HioEnvironment with same symboltable as this.
virtual THioEnvironmentoperator= (const THioEnvironment &rOtherGen)
 Assignment operator (uses copy ) Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly.
virtual THioEnvironmentoperator= (const Generator &rOtherGen)
 Assignment operator (uses copy )
void InsYeEvent (Idx index)
 Add an existing Ye-event to generator.
Idx InsYeEvent (const std::string &rName)
 Add new named Ye-event to generator.
void InsUeEvent (Idx index)
 Add an existing Ue-event to generator.
Idx InsUeEvent (const std::string &rName)
 Add new named Ue-event to generator.
void SetYe (Idx index)
 Mark event as Ye-event (by index)
void SetYe (const std::string &rName)
 Mark event as Ye-event(by name)
void SetYe (const EventSet &rEvents)
 Mark set of events as Ye-events.
void SetUe (Idx index)
 Mark event Ue-event(by index)
void SetUe (const std::string &rName)
 Mark event Ue-event(by name)
void SetUe (const EventSet &rEvents)
 Mark set of events as Ue-events.
bool IsYe (Idx index) const
 Is event Ye-event(by index)
bool IsYe (const std::string &rName) const
 Is event Ye-event(by name)
bool IsUe (Idx index) const
 Is event Ue-event(by index)
bool IsUe (const std::string &rName) const
 Is event Ue-event(by name)
EventSet YeEvents (void) const
 Get EventSet with Ye-events.
EventSet UeEvents (void) const
 Get EventSet with Ue-events.
void InsYlEvent (Idx index)
 Add an existing Yl-event to generator.
Idx InsYlEvent (const std::string &rName)
 Add new named Yl-event to generator.
void InsUlEvent (Idx index)
 Add an existing Ul-event to generator.
Idx InsUlEvent (const std::string &rName)
 Add new named Ul-event to generator.
void SetYl (Idx index)
 Mark event as Yl-event (by index)
void SetYl (const std::string &rName)
 Mark event as Yl-event (by name)
void SetYl (const EventSet &rEvents)
 Mark set of events as Yl-events.
void SetUl (Idx index)
 Mark event as Ul-event (by index)
void SetUl (const std::string &rName)
 Mark event as Ul-event (by name)
void SetUl (const EventSet &rEvents)
 Mark set of events as Ul-events.
bool IsYl (Idx index) const
 Is event Yl-event (by index)
bool IsYl (const std::string &rName) const
 Is event Yl-event (by name)
bool IsUl (Idx index) const
 Is event Ul-event (by index)
bool IsUl (const std::string &rName) const
 Is event Ul-event (by name)
EventSet YlEvents (void) const
 Get EventSet with Yl-events.
EventSet UlEvents (void) const
 Get EventSet with Ul-events.
bool IsY (Idx index) const
 Is event Y-event? (by index)
bool IsY (const std::string &rName) const
 Is event Y-event? (by name)
EventSet YEvents (void) const
 Get EventSet with Y-events.
bool IsU (Idx index) const
 Is event U-event? (by index)
bool IsU (const std::string &rName) const
 Is event U-event? (by name)
EventSet UEvents (void) const
 Get EventSet with U-events.
bool IsE (Idx index) const
 Is event P-event? (by index)
bool IsE (const std::string &rName) const
 Is event P-event? (by name)
EventSet EEvents (void) const
 Get EventSet with P-events.
bool IsL (Idx index) const
 Is event E-event? (by index)
bool IsL (const std::string &rName) const
 Is event E-event? (by name)
EventSet LEvents (void) const
 Get EventSet with E-events.
void SetQYe (Idx index)
 Mark event as QYe-state (by index)
void SetQYe (const std::string &rName)
 Mark state as QYe-state (by name)
void SetQYe (const StateSet &rStates)
 Mark set of states as QYe-states.
void ClrQYe (Idx index)
 Mark state as NOT QYe-state (by index)
void ClrQYe (const std::string &rName)
 Mark state as NOT QYe-state (by name)
void ClrQYe (const StateSet &rStates)
 Mark set of states as NOT QYe-states (by index)
bool IsQYe (Idx index) const
 Is state QYe-state (by index)
bool IsQYe (const std::string &rName) const
 Is state QYe-state (by name)
StateSet QYeStates (void) const
 Get StateSet with QYe-states.
void SetQUe (Idx index)
 Mark event as QUe-state (by index)
void SetQUe (const std::string &rName)
 Mark state as QUe-state (by name)
void SetQUe (const StateSet &rStates)
 Mark set of states as QUe-states.
void ClrQUe (Idx index)
 Mark state as NOT QUe-state (by index)
void ClrQUe (const std::string &rName)
 Mark state as NOT QUe-state (by name)
void ClrQUe (const StateSet &rStates)
 Mark set of states as NOT QUe-states (by index)
bool IsQUe (Idx index) const
 Is state QUe-state (by index)
bool IsQUe (const std::string &rName) const
 Is state QUe-state (by name)
StateSet QUeStates (void) const
 Get StateSet with QUe-states.
void SetQUl (Idx index)
 Mark event as QUl-state (by index)
void SetQUl (const std::string &rName)
 Mark state as QUl-state (by name)
void SetQUl (const StateSet &rStates)
 Mark set of states as QUl-states.
void ClrQUl (Idx index)
 Mark state as NOT QUl-state (by index)
void ClrQUl (const std::string &rName)
 Mark state as NOT QUl-state (by name)
void ClrQUl (const StateSet &rStates)
 Mark set of states as NOT QUl-states (by index)
bool IsQUl (Idx index) const
 Is state QUl-state (by index)
bool IsQUl (const std::string &rName) const
 Is state QUl-state (by name)
StateSet QUlStates (void) const
 Get StateSet with QUl-states.
void SetQYlUe (Idx index)
 Mark event as QYlUe-state (by index)
void SetQYlUe (const std::string &rName)
 Mark state as QYlUe-state (by name)
void SetQYlUe (const StateSet &rStates)
 Mark set of states as QYlUe-states.
void ClrQYlUe (Idx index)
 Mark state as NOT QYlUe-state (by index)
void ClrQYlUe (const std::string &rName)
 Mark state as NOT QYlUe-state (by name)
void ClrQYlUe (const StateSet &rStates)
 Mark set of states as NOT QYlUe-states (by index)
bool IsQYlUe (Idx index) const
 Is state QYlUe-state (by index)
bool IsQYlUe (const std::string &rName) const
 Is state QYlUe-state (by name)
StateSet QYlUeStates (void) const
 Get StateSet with QYlUe-states.
void SetErr (Idx index)
 Mark state as Err-state (by index)
void SetErr (const std::string &rName)
 Mark state as Err-state (by name)
void SetErr (const StateSet &rStates)
 Mark set of states as Err-states.
void ClrErr (Idx index)
 Mark state as NOT Err-state (by index)
void ClrErr (const std::string &rName)
 Mark state as NOT Err-state (by name)
void ClrErr (const StateSet &rStates)
 Mark set of states as NOT Err-states (by index)
bool IsErr (Idx index) const
 Is state Err-state (by index)
bool IsErr (const std::string &rName) const
 Is state Err-state (by name)
StateSet ErrStates (void) const
 Get StateSet with Err-states.
virtual bool UpdateAttributes (void)
 Updates internal attributes.
- Public Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
 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 NewAGen (void) const
 Construct on stack.
virtual const TypeCast (const Type *pOther) const
 Type test.
virtual ~TaGenerator (void)
 Destructor.
virtual TaGeneratorAssign (const TaGenerator &rGen)
 Copy from other TaGenerator (incl attributes)
virtual TaGeneratorAssign (const vGenerator &rGen)
 Copy from other Generator (try to maintain attributes)
virtual TaGeneratorAssign (const Type &rSrc)
 Copy from other faudes Type.
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 (Generator &rGen)
 Destructive copy to other Generator.
virtual TaGeneratoroperator= (const TaGenerator &rOtherGen)
 Assignment operator (uses Copy(TaGenerator&) )
bool Valid (void)
 Check if generator is valid.
virtual void Clear (void)
 Clear generator data.
const TaEventSet< EventAttr > & Alphabet (void) const
 Return const reference to alphabet.
const TaStateSet< StateAttr > & States (void) const
 Return reference to state set.
const ATransSetTransRel (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
void TransRel (TransSetEvX2X1 &res) const
void TransRel (TransSetX2EvX1 &res) const
void TransRel (TransSetX2X1Ev &res) const
void TransRel (TransSetX1X2Ev &res) const
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 TaEventSet< 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 TaStateSet< 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.
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.
- Public Member Functions inherited from faudes::vGenerator
 vGenerator (void)
 Default constructor.
 vGenerator (const vGenerator &rOtherGen)
 Copy-constructror.
 vGenerator (const std::string &rFileName)
 Construct from file.
virtual ~vGenerator (void)
 Destructor.
virtual vGeneratorAssignWithoutAttributes (const vGenerator &rGen)
 Copy from other vGenerator, ignore attributes.
virtual void Version (const std::string &rVersion, vGenerator &rResGen) const
 Create another version of this generator.
virtual void Version (Idx version, vGenerator &rResGen) const
 Create another version of this generator.
virtual void Version (const std::string &rPattern, const std::string &rReplacement, vGenerator &rResGen) const
 Create another version of this generator.
void Name (const std::string &rName)
 Set the generator's name.
const std::string & Name (void) const
 Get generator's name.
void ClearStates (void)
 Clear all states and transitions, maintain alphabet.
Idx AlphabetSize (void) const
 Get number of events in alphabet.
Idx Size (void) const
 Get generator size (number of states)
Idx TransRelSize (void) const
 Get number of transitions.
Idx InitStatesSize (void) const
 Get number of initial states.
Idx MarkedStatesSize (void) const
 Get number of marked states.
bool Empty (void) const
 Check if generator is empty (no states)
bool AlphabetEmpty (void) const
 Check if alphabet is Empty.
bool TransRelEmpty (void) const
 Check if transition relation is empty.
bool InitStatesEmpty (void) const
 Check if set of initial states are empty.
bool MarkedStatesEmpty (void) const
 Check if set of marked states are empty.
SymbolTableEventSymbolTablep (void) const
 Get Pointer to EventSymbolTable currently used by this vGenerator.
virtual void EventSymbolTablep (SymbolTable *pSymTab)
 Set EventSymbolTable to be used by this vGenerator.
virtual void EventSymbolTablep (const vGenerator &rOtherGen)
 Set EventSymbolTable as given by rOtherGen.
EventSet NewEventSet (void) const
 Create EventSet with generator's EventSymbolTable (on stack).
EventSetNewEventSetp (void) const
 Create EventSet with generator's EventSymbolTable (on heap).
Idx EventIndex (const std::string &rName) const
 Event index lookup.
std::string EventName (Idx index) const
 Event name lookup.
void EventName (Idx index, const std::string &rName)
 Set name for existing event.
std::string UniqueEventName (const std::string &rName) const
 Create a new unique symbolic event name.
bool EventRename (Idx event, const std::string &rNewName)
 Rename event in this generator.
bool EventRename (const std::string &rOldName, const std::string &rNewName)
 Rename event in this generator.
const SymbolTableStateSymbolTable (void) const
 Get StateSymbolTable.
void StateSymbolTable (const SymbolTable &rSymTab)
 Set StateSymbolTable.
Idx StateIndex (const std::string &rName) const
 State index lookup.
std::string StateName (Idx index) const
 State name lookup.
void StateName (Idx index, const std::string &rName)
 Set name of state.
void ClearStateNames (void)
 Remove all names from generator's StateSymbolTable.
void ClrStateName (Idx index)
 Clear name for individual state.
void ClrStateName (const std::string &rName)
 Clear name for individual state.
bool StateNamesEnabled (void) const
 Whether libFAUEDS functions are requested to generate state names.
void StateNamesEnabled (bool flag)
 Enable/disable libFAUEDS functions to automatically generate state names.
void SetDefaultStateNames (void)
 Assign each state a default name based on its index.
void EnforceStateNames (const std::string &rTemplate)
 For all states without a symbolic name, assign a name based on suggested template and the index.
std::string UniqueStateName (const std::string &rName) const
 Create a new unique symbolic state name.
EventSet::Iterator AlphabetBegin (void) const
 Iterator to Begin() of alphabet.
EventSet::Iterator AlphabetEnd (void) const
 Iterator to End() of alphabet.
bool ExistsEvent (Idx index) const
 Test existence of event in alphabet.
bool ExistsEvent (const std::string &rName) const
 Test existence of event in alphabet.
EventSet::Iterator FindEvent (Idx index) const
 Returns a iterator to event index in alphabet.
EventSet::Iterator FindEvent (const std::string &rName) const
 Returns a iterator to event index in alphabet.
StateSet::Iterator StatesBegin (void) const
 Iterator to Begin() of state set.
StateSet::Iterator StatesEnd (void) const
 Iterator to End() of state set.
bool ExistsState (Idx index) const
 Test existence of state in state set.
bool ExistsState (const std::string &name) const
 Test existence of state in state set.
StateSet::Iterator FindState (Idx index) const
 Returns a iterator to state index in state set.
StateSet::Iterator FindState (const std::string &rName) const
 Returns a iterator to state with specified name.
Idx InitState (void) const
 Return initial state.
StateSet::Iterator InitStatesBegin (void) const
 Iterator to Begin() of mInitStates.
StateSet::Iterator InitStatesEnd (void) const
 Iterator to End() of mInitStates.
bool ExistsInitState (Idx index) const
 Test existence of state in mInitStates.
StateSet::Iterator FindInitState (Idx index) const
 Iterator to state index in mInitStates.
const StateSetInitStates (void) const
 Const ref to initial states.
StateSet::Iterator MarkedStatesBegin (void) const
 Iterator to Begin() of mMarkedStates.
StateSet::Iterator MarkedStatesEnd (void) const
 Iterator to End() of mMarkedStates.
bool ExistsMarkedState (Idx index) const
 Test existence of state in mMarkedStates.
StateSet::Iterator FindMarkedState (Idx index) const
 Returns a iterator to state index in mMarkedStates.
const StateSetMarkedStates (void) const
 Return const ref of marked states.
TransSet::Iterator TransRelBegin (void) const
 Iterator to Begin() of transition relation.
TransSet::Iterator TransRelEnd (void) const
 Iterator to End() of transition relation.
TransSet::Iterator TransRelBegin (Idx x1) const
 Iterator to begin of transitions with x1 as predecessor state.
TransSet::Iterator TransRelEnd (Idx x1) const
 iterator to end of transitions with x1 as predecessor state.
TransSet::Iterator TransRelBegin (Idx x1, Idx ev) const
 iterator to begin of transitions with x1 as predecessor state and event ev.
TransSet::Iterator TransRelEnd (Idx x1, Idx ev) const
 Iterator to end of transitions with x1 as predecessor state and event ev.
TransSet::Iterator FindTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 iterator to transition given by x1, ev, x2
TransSet::Iterator FindTransition (Idx x1, Idx ev, Idx x2) const
 Iterator to transition given by x1, ev, x2.
TransSet::Iterator FindTransition (const Transition &rTrans) const
 Iterator to transition.
bool ExistsTransition (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 Test for transition given by x1, ev, x2.
bool ExistsTransition (Idx x1, Idx ev, Idx x2) const
 Test for transition given by x1, ev, x2.
bool ExistsTransition (const Transition &rTrans) const
 test for transition
bool ExistsTransition (Idx x1, Idx ev) const
 Test for transition given by x1, ev.
bool ExistsTransition (Idx x1) const
 Test for transition given by x1.
Transition TransitionByNames (const std::string &rX1, const std::string &rEv, const std::string &rX2) const
 Convebience function.
void InsEvents (const EventSet &events)
 Add new named events to generator.
bool DelEvent (Idx index)
 Delete event from generator by index.
bool DelEvent (const std::string &rName)
 Delete event from generator by name.
void DelEvents (const EventSet &rEvents)
 Delete a set of events from generator.
bool DelEventFromAlphabet (Idx index)
 Delete event from alphabet without consistency check.
void RestrictAlphabet (const EventSet &rNewalphabet)
 Restricts mpAlphabet incl removing resp.
void InsStates (const StateSet &rStates)
 Add anonymous states to generator.
bool DelState (Idx index)
 Delete a state from generator by index.
bool DelState (const std::string &rName)
 Delete a state from generator by name.
void DelStates (const StateSet &rDelStates)
 Delete a set of states Cleans mpStates, mInitStates, mMarkedStates, mpTransrel, and mpStateSymboltable.
bool DelStateFromStates (Idx index)
 Delete a state from generator without consistency check.
StateSet::Iterator DelStateFromStates (StateSet::Iterator pos)
 Delete a state from generator without consistency check.
void RestrictStates (const StateSet &rStates)
 Restrict states Cleans mpStates, mInitStates, mMarkedStates, mpTransrel, and mpStateSymboltable.
void InjectState (Idx index)
 Inject an existing state index into generators mStates Use with care! For use in performance optimized functions.
Idx InsInitState (void)
 Create new anonymous state and set as initial state.
bool InsInitState (Idx index)
 Add (perhaps new) state to generator and turn it into a initial state.
Idx InsInitState (const std::string &rName)
 Create a new named state and set as initial state.
void InsInitStates (const StateSet &rStates)
 Add (perhaps new) anonymous initial states to generator.
Idx InsMarkedState (void)
 Create new anonymous state and set as marked state.
bool InsMarkedState (Idx index)
 Add (perhaps new) state to generator and turn it into a marked state.
Idx InsMarkedState (const std::string &rName)
 Create a new named state and set as marked state.
void InsMarkedStates (const StateSet &rStates)
 Add (perhaps new) anonymous initial states to generator.
void SetInitState (Idx index)
 Set an existing state as initial state by index.
void SetInitState (const std::string &rName)
 Set an existing state as initial state by name.
void InjectInitStates (const StateSet &rNewInitStates)
 Replace mInitStates with StateSet given as parameter without consistency checks.
void ClrInitState (Idx index)
 Unset an existing state as initial state by index.
void ClrInitState (const std::string &rName)
 Unset an existing state as initial state by name.
StateSet::Iterator ClrInitState (StateSet::Iterator pos)
 Unset an existing state as initial state by iterator.
void ClearInitStates (void)
 Clear all mInitStates.
void SetMarkedState (Idx index)
 Set an existing state as marked state by index.
void SetMarkedState (const std::string &rName)
 Set an existing state as marked state by name.
void ClrMarkedState (Idx index)
 Unset an existing state as marked state by index.
void ClrMarkedState (const std::string &rName)
 Unset an existing state as marked state by name.
StateSet::Iterator ClrMarkedState (StateSet::Iterator pos)
 Unset an existing state as marked state by iterator.
void ClearMarkedStates (void)
 Clear all marked states.
void InjectMarkedStates (const StateSet &rNewMarkedStates)
 Replace mMarkedStates with StateSet given as parameter without consistency checks.
void ClrTransition (Idx x1, Idx ev, Idx x2)
 Remove a transition by indices.
void ClrTransition (const Transition &rTrans)
 Remove a transition by transition object.
TransSet::Iterator ClrTransition (TransSet::Iterator it)
 Remove a transition by iterator.
void ClrTransitions (Idx x1, Idx ev)
 Remove a transitions by state and event.
void ClrTransitions (Idx x1)
 Remove a transitions by state.
void ClearTransRel (void)
 Clear all transitions.
void InjectTransition (const Transition &rTrans)
 Set transition without consistency check.
virtual void ClearAttributes (void)
 Clear Attributes.
virtual void ClearEventAttributes (void)
 Clear event attributes.
virtual void ClrEventAttribute (Idx index)
 Clear attribute for existing event.
virtual void EventAttributes (const EventSet &rEventSet)
 Set attributes for existing events.
virtual void ClearStateAttributes (void)
 Clear state attributes.
virtual void ClrStateAttribute (Idx index)
 Clear attribute for existing state.
virtual void ClearTransAttributes (void)
 Clear transition attributes.
virtual void ClrTransAttribute (const Transition &rTrans)
 Clear attribute for existing transition.
virtual void ClearGlobalAttribute (void)
 Clear global attribute.
virtual void GlobalAttribute (const Type &rAttr)
 Set global attribute.
virtual void GlobalAttributeTry (const Type &rAttr)
 Set global attribute.
StateSet AccessibleSet (void) const
 Compute set of accessible states.
bool Accessible (void)
 Make generator accessible.
bool IsAccessible (void) const
 Check if generator is accessible.
StateSet CoaccessibleSet (void) const
 Compute set of Coaccessible states.
bool Coaccessible (void)
 Make generator Coaccessible.
bool IsCoaccessible (void) const
 Check if generator is Coaccessible.
StateSet BlockingStates (void) const
 Compute set of blocking states.
StateSet TerminalStates (void) const
 Compute set of terminal states.
StateSet TerminalStates (const StateSet &rStates) const
 Compute set of terminal states.
bool IsComplete (void) const
 Check if generator is complete.
bool IsComplete (const StateSet &rStates) const
 Check if generator is complete.
bool IsComplete (const EventSet &rSigmaO) const
 Check if generator is complete w.r.t.
bool Complete (void)
 Make generator Complete.
bool Complete (const EventSet &rSigmaO)
 Make generator Complete w.r.t.
StateSet TrimSet (void) const
 Compute set of trim states.
bool Trim (void)
 Make generator trim.
bool IsTrim (void) const
 Check if generator is trim.
bool OmegaTrim (void)
 Make generator omega-trim.
bool IsOmegaTrim (void) const
 Check if generator is omega-trim.
EventSet UsedEvents (void) const
 Return used events (executed in transitions)
EventSet UnusedEvents (void) const
 Return unused events.
void MinimizeAlphabet (void)
 Set the alphabet to used events.
EventSet ActiveEventSet (Idx x1) const
 Return active event set at state x1.
TransSet ActiveTransSet (Idx x1) const
 Return active transition set at state x1.
StateSet TransRelStates (void) const
 Return the states covered by transitions.
Idx SuccessorState (Idx x1, Idx ev) const
 Return the successor state of state x1 with event ev.
StateSet SuccessorStates (Idx x1) const
 Return the successor states of state x1.
StateSet SuccessorStates (Idx x1, Idx ev) const
 Return the successor states of state x1 with event ev.
bool IsDeterministic (void) const
 Check if generator is deterministic.
void SetMinStateIndexMap (void) const
 Set minimal index map for file io of generator states.
void ClearMinStateIndexMap (void) const
 Clear minimal index map for 1:1 file io.
Idx MinStateIndex (Idx index) const
 Get state index as is it will be written to file.
void MinStateIndex (void)
 Re-enumerate states.
Idx MaxStateIndex (void) const
 Get maximum state index used in this generator.
const std::map< Idx, Idx > & MinStateIndexMap (void) const
 Get state index translation map.
std::string EStr (Idx index) const
 Pretty printable event name for index (eg for debugging).
std::string SStr (Idx index) const
 Return pretty printable state name for index (eg for debugging)
std::string TStr (const Transition &rTrans) const
 Return pretty printable transition (eg for debugging)
void GraphWrite (const std::string &rFileName, const std::string &rOutFormat="", const std::string &rDotExec="dot") const
 Produce graphical representation of this generator.
bool operator< (const vGenerator &rOtherGen) const
 Order for sorting containers of generators.
void WriteAlphabet (void) const
 Write generators alphabet to console.
std::string AlphabetToString (void) const
 Write generators alphabet to string.
void WriteAlphabet (TokenWriter &rTw) const
 Write generators alphabet to tokenwriter.
void WriteStateSet (const StateSet &rStateSet) const
 Write a stateset to console (no re-indexing).
std::string StateSetToString (const StateSet &rStateSet) const
 Write a stateset to string (no re-indexing).
std::string StateSetToText (const StateSet &rStateSet) const
 Write a stateset to formated text (no re-indexing).
void WriteStateSet (TokenWriter &rTw, const StateSet &rStateSet) const
 Write a stateset to TokenWriter.
void DWriteStateSet (TokenWriter &rTw, const StateSet &rStateSet) const
 Write a stateset to TokenWriter (debug version, no re-indexing)
std::string StatesToString (void) const
 Write stateset of this generator to a string (no re-indexing)
std::string StatesToText (void) const
 Write stateset of this generator to formated text (no re-indexing)
std::string MarkedStatesToString (void) const
 Write set of marked states to a string (no re-indexing)
std::string InitStatesToString (void) const
 Write set of initial states to a string (no re-indexing)
void WriteTransRel (void) const
 Write transition relation to console (no re-indexing)
std::string TransRelToString (void) const
 Write transition relation to string (no re-indexing)
std::string TransRelToText (void) const
 Write transition relation to formated text (no re-indexing)
void WriteTransRel (TokenWriter &rTw) const
 Write transition relation to tokenwriter.
void DWriteTransRel (TokenWriter &rTw) const
 Write transition relation to tokenwriter (debug version)
virtual void DotWrite (const std::string &rFileName) const
 Writes generator to dot input format.
virtual void DDotWrite (const std::string &rFileName) const
 Writes generator to dot input format (no re-indexing).
virtual void XDotWrite (const std::string &rFileName) const
 Writes generator to dot input format for export to VioLib.
void ReadStateSet (TokenReader &rTr, const std::string &rLabel, StateSet &rStateSet) const
 Read a state set.
bool ReindexOnWrite (void) const
 Test whether file-i/o uses minimal state indicees.
void ReindexOnWrite (bool flag)
 Enable/disable minimal state indicees for file-i/o.
- Public Member Functions inherited from faudes::Type
 Type (void)
 Constructor.
 Type (const Type &rType)
 Copy constructor.
virtual ~Type (void)
 Destructor.
virtual Typeoperator= (const Type &rSrc)
 Assign configurationdata from other object.
virtual bool Equal (const Type &rOther) const
 Test equality of configuration data.
virtual bool operator== (const Type &rOther) const
 Test equality of configuration data.
virtual bool operator!= (const Type &rOther) const
 Test equality of configuration data.
void Write (const Type *pContext=0) const
 Write configuration data to console.
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 Write configuration data to a file.
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 Write configuration data to a file.
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data to TokenWriter.
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data to an XML file.
void XWrite (const Type *pContext=0) const
 Write configuration data in XML format to concole Note: this write function uses the virtual function DoXWrite(), to be reimplemented by derived classes.
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data in XML format to TokenWriter.
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data to a string.
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data to a formated string.
void DWrite (const Type *pContext=0) const
 Write configuration data to console, debugging format.
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 Write configuration data to a file, debugging format.
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 Write configuration data in debug format to TokenWriter.
void SWrite (TokenWriter &rTw) const
 Write statistics comment to TokenWriter.
void SWrite (void) const
 Write statistics comment to console.
std::string ToSText (void) const
 Write statistics to a string.
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 Read configuration data from file with label specified.
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 Read configuration data from a string.
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 Read configuration data from TokenReader with label sepcified.

Additional Inherited Members

- Public Types inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
typedef TaTransSet< TransAttr > ATransSet
 Convenience typdef for member transiton set.
- Static Public Member Functions inherited from faudes::vGenerator
static SymbolTableGlobalEventSymbolTablep (void)
 Get Pointer to global EventSymbolTable.
static void StateNamesEnabledDefault (bool flag)
 Sets the default for automatic state name generation.
static void ReindexOnWriteDefault (bool flag)
 Enable/disable reindexing states for file-i/o.
static bool ReindexOnWriteDefault (void)
 Enable/disable reindexing states for file-i/o.
- Protected Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
virtual void NewCore (void)
 Allocate my heap members (attribute dependent types)
virtual void UpdateCore (void)
 Update my secondary pointers for new core.
- Static Protected Member Functions inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
static const TaNameSet
< EventAttr > & 
AlphabetTaGen (void)
 Static default alphabet prototype (incl.
static const TaIndexSet
< StateAttr > & 
StatesTaGen (void)
 Static default state set prototype (incl.
static const ATransSetTransRelTaGen (void)
 Static default transition relation prototype (incl.
static const GlobalAttr & GlobalTaGen (void)
 Static default global attribute prototype (configures global attribute type)
- Protected Attributes inherited from faudes::TaGenerator< GlobalAttr, StateAttr, EventAttr, TransAttr >
TaNameSet< EventAttr > * pAlphabet
 Alphabet, pointer with actual attribute type.
TaIndexSet< StateAttr > * pStates
 State set, pointer with actual attribute type.
ATransSetpTransRel
 Transition relation, pointer with actual attribute type.
GlobalAttr * pGlobalAttribute
 Global attribute, pointer with actual attribute type.
- Static Protected Attributes inherited from faudes::vGenerator
static Idx msObjectCount = 0
 Number of generator objects.
static bool msStateNamesEnabledDefault = true
 Default for automatic statenames.
static bool msReindexOnWriteDefault = false
 Default for automatic statenames.

Detailed Description

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

Generator with I/O-environment attributes.

The HioEnvironment is a variant of the Generator to add an interface for events and states with I/O-environment attributes, built from HioEvent- and HioStateFlags

  • event attributes: YE = Y && E UE = U && E YL = Y && L UL = U && L
  • state attributes: QYe = QY && QE QUe = QU && QE QUl = QU && QL QYlUe

Technically, the construct is based on the specialized attribute classes faudes::HioEventFlags and faudes::HioStateFlags that provide attributes with semantics for hierarchical I/O properties. The THioEnvironment expects attribute template parameters with the minimum interface defined in HioEventFlags and HioStateFlags. Thus, you can add further semantics by deriving a class HioEventFlagsAndMore from HioEventFlags (same for HioStateFlags) and use this as event attribute parameter for THioEnvironment. To model a plain finite state machine plus I/O-environment properties, use THioEnvironment with HioEventFlags and HioStateFlags for the event and state attribute parameters and AttributeVoid for the other parameters. For convenience, this has been typedefed as HioEnvironment.

Definition at line 47 of file hio_environment.h.

Constructor & Destructor Documentation

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

Creates an empty HioEnvironment object.

Definition at line 975 of file hio_environment.h.

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

HioEnvironment from a std Generator.

Copy constructor

Parameters
rOtherGen

Definition at line 985 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::THioEnvironment ( const Generator rOtherGen,
const EventSet rYl,
const EventSet rUl,
const EventSet rYe,
const EventSet rUe 
)

HioEnvironment from a std Generator and event sets.

Copy constructor

Parameters
rOtherGenGenerator
rYlalphabet Yl
rUlalphabet Ul
rYealphabet Ye
rUealphabet Ue

Definition at line 990 of file hio_environment.h.

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

HioEnvironment from a HioEnvironment.

Copy constructor

Parameters
rOtherGen

Definition at line 980 of file hio_environment.h.

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

construct a HioEnvironment from file

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

Definition at line 1005 of file hio_environment.h.

Member Function Documentation

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrErr ( Idx  index)

Mark state as NOT Err-state (by index)

Parameters
indexState index

Definition at line 1747 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrErr ( const std::string &  rName)

Mark state as NOT Err-state (by name)

Parameters
rNameState name

Definition at line 1755 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrErr ( const StateSet rStates)

Mark set of states as NOT Err-states (by index)

Parameters
rStatesStateSet

Definition at line 1762 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUe ( Idx  index)

Mark state as NOT QUe-state (by index)

Parameters
indexState index

Definition at line 1513 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUe ( const std::string &  rName)

Mark state as NOT QUe-state (by name)

Parameters
rNameState name

Definition at line 1522 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUe ( const StateSet rStates)

Mark set of states as NOT QUe-states (by index)

Parameters
rStatesStateSet

Definition at line 1529 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUl ( Idx  index)

Mark state as NOT QUl-state (by index)

Parameters
indexState index

Definition at line 1595 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUl ( const std::string &  rName)

Mark state as NOT QUl-state (by name)

Parameters
rNameState name

Definition at line 1604 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQUl ( const StateSet rStates)

Mark set of states as NOT QUl-states (by index)

Parameters
rStatesStateSet

Definition at line 1611 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYe ( Idx  index)

Mark state as NOT QYe-state (by index)

Parameters
indexState index

Definition at line 1433 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYe ( const std::string &  rName)

Mark state as NOT QYe-state (by name)

Parameters
rNameState name

Definition at line 1442 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYe ( const StateSet rStates)

Mark set of states as NOT QYe-states (by index)

Parameters
rStatesStateSet

Definition at line 1449 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYlUe ( Idx  index)

Mark state as NOT QYlUe-state (by index)

Parameters
indexState index

Definition at line 1676 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYlUe ( const std::string &  rName)

Mark state as NOT QYlUe-state (by name)

Parameters
rNameState name

Definition at line 1684 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ClrQYlUe ( const StateSet rStates)

Mark set of states as NOT QYlUe-states (by index)

Parameters
rStatesStateSet

Definition at line 1691 of file hio_environment.h.

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

Construct copy on heap.

Returns
new Generator

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

Definition at line 1020 of file hio_environment.h.

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

Get EventSet with P-events.

Returns
EventSet of P-events

Definition at line 1374 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
StateSet faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::ErrStates ( void  ) const

Get StateSet with Err-states.

Returns
StateSet of Err-states

Definition at line 1783 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsUeEvent ( Idx  index)

Add an existing Ue-event to generator.

An entry in the global event table will be made.

Parameters
indexEvent index

Definition at line 1100 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsUeEvent ( const std::string &  rName)

Add new named Ue-event to generator.

An entry in the global event table will be made if event is new.

Parameters
rNameName of the event to add
Returns
New global unique index

Definition at line 1109 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsUlEvent ( Idx  index)

Add an existing Ul-event to generator.

An entry in the global event table will be made.

Parameters
indexEvent index

Definition at line 1234 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsUlEvent ( const std::string &  rName)

Add new named Ul-event to generator.

An entry in the global event table will be made if event is new.

Parameters
rNameName of the event to add
Returns
New global unique index

Definition at line 1243 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsYeEvent ( Idx  index)

Add an existing Ye-event to generator.

An entry in the global event table will be made.

Parameters
indexEvent index

Definition at line 1082 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsYeEvent ( const std::string &  rName)

Add new named Ye-event to generator.

An entry in the global event table will be made if event is new.

Parameters
rNameName of the event to add
Returns
New global unique index

Definition at line 1091 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsYlEvent ( Idx  index)

Add an existing Yl-event to generator.

An entry in the global event table will be made.

Parameters
indexEvent index

Definition at line 1216 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
Idx faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::InsYlEvent ( const std::string &  rName)

Add new named Yl-event to generator.

An entry in the global event table will be made if event is new.

Parameters
rNameName of the event to add
Returns
New global unique index

Definition at line 1225 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsE ( Idx  index) const

Is event P-event? (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1350 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsE ( const std::string &  rName) const

Is event P-event? (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1356 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsErr ( Idx  index) const

Is state Err-state (by index)

Parameters
indexState index
Returns
True / false

Definition at line 1771 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsErr ( const std::string &  rName) const

Is state Err-state (by name)

Parameters
rNameState name
Returns
True / false

Definition at line 1777 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsL ( Idx  index) const

Is event E-event? (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1362 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsL ( const std::string &  rName) const

Is event E-event? (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1368 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQUe ( Idx  index) const

Is state QUe-state (by index)

Parameters
indexState index
Returns
True / false

Definition at line 1538 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQUe ( const std::string &  rName) const

Is state QUe-state (by name)

Parameters
rNameState name
Returns
True / false

Definition at line 1544 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQUl ( Idx  index) const

Is state QUl-state (by index)

Parameters
indexState index
Returns
True / false

Definition at line 1620 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQUl ( const std::string &  rName) const

Is state QUl-state (by name)

Parameters
rNameState name
Returns
True / false

Definition at line 1626 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQYe ( Idx  index) const

Is state QYe-state (by index)

Parameters
indexState index
Returns
True / false

Definition at line 1458 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQYe ( const std::string &  rName) const

Is state QYe-state (by name)

Parameters
rNameState name
Returns
True / false

Definition at line 1464 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQYlUe ( Idx  index) const

Is state QYlUe-state (by index)

Parameters
indexState index
Returns
True / false

Definition at line 1700 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsQYlUe ( const std::string &  rName) const

Is state QYlUe-state (by name)

Parameters
rNameState name
Returns
True / false

Definition at line 1706 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsU ( Idx  index) const

Is event U-event? (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1046 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsU ( const std::string &  rName) const

Is event U-event? (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1052 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsUe ( Idx  index) const

Is event Ue-event(by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1180 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsUe ( const std::string &  rName) const

Is event Ue-event(by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1186 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsUl ( Idx  index) const

Is event Ul-event (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1314 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsUl ( const std::string &  rName) const

Is event Ul-event (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1320 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsY ( Idx  index) const

Is event Y-event? (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1034 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsY ( const std::string &  rName) const

Is event Y-event? (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1040 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsYe ( Idx  index) const

Is event Ye-event(by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1168 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsYe ( const std::string &  rName) const

Is event Ye-event(by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1174 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsYl ( Idx  index) const

Is event Yl-event (by index)

Parameters
indexEvent index
Returns
True / false

Definition at line 1302 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::IsYl ( const std::string &  rName) const

Is event Yl-event (by name)

Parameters
rNameEvent name
Returns
True / false

Definition at line 1308 of file hio_environment.h.

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

Get EventSet with E-events.

Returns
EventSet of E-events

Definition at line 1385 of file hio_environment.h.

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

Construct on heap.

Returns
new Generator

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

Definition at line 1010 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr > faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::NewHioEnvironment ( void  ) const

Create empty HioEnvironment with same symboltable as this.

Returns
New Generator

Definition at line 1025 of file hio_environment.h.

template<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
virtual THioEnvironment& faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= ( const THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr > &  rOtherGen)
inlinevirtual

Assignment operator (uses copy ) Note: you must reimplement this operator in derived classes in order to handle internal pointers correctly.

Parameters
rOtherGenOther generator

Definition at line 133 of file hio_environment.h.

template<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
virtual THioEnvironment& faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::operator= ( const Generator rOtherGen)
inlinevirtual

Assignment operator (uses copy )

Parameters
rOtherGenOther generator

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

Definition at line 141 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
StateSet faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::QUeStates ( void  ) const

Get StateSet with QUe-states.

Returns
StateSet of QUe-states

Definition at line 1550 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
StateSet faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::QUlStates ( void  ) const

Get StateSet with QUl-states.

Returns
StateSet of QUl-states

Definition at line 1632 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
StateSet faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::QYeStates ( void  ) const

Get StateSet with QYe-states.

Returns
StateSet of QYe-states

Definition at line 1470 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
StateSet faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::QYlUeStates ( void  ) const

Get StateSet with QYlUe-states.

Returns
StateSet of QYlUe-states

Definition at line 1712 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetErr ( Idx  index)

Mark state as Err-state (by index)

Parameters
indexState index

Definition at line 1723 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetErr ( const std::string &  rName)

Mark state as Err-state (by name)

Parameters
rNameState name

Definition at line 1731 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetErr ( const StateSet rStates)

Mark set of states as Err-states.

Parameters
rStatesStateSet

Definition at line 1738 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUe ( Idx  index)

Mark event as QUe-state (by index)

Parameters
indexState index

Definition at line 1482 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUe ( const std::string &  rName)

Mark state as QUe-state (by name)

Parameters
rNameState name

Definition at line 1497 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUe ( const StateSet rStates)

Mark set of states as QUe-states.

Parameters
rStatesStateSet

Definition at line 1504 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUl ( Idx  index)

Mark event as QUl-state (by index)

Parameters
indexState index

Definition at line 1564 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUl ( const std::string &  rName)

Mark state as QUl-state (by name)

Parameters
rNameState name

Definition at line 1579 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQUl ( const StateSet rStates)

Mark set of states as QUl-states.

Parameters
rStatesStateSet

Definition at line 1586 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYe ( Idx  index)

Mark event as QYe-state (by index)

Parameters
indexState index

Definition at line 1402 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYe ( const std::string &  rName)

Mark state as QYe-state (by name)

Parameters
rNameState name

Definition at line 1417 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYe ( const StateSet rStates)

Mark set of states as QYe-states.

Parameters
rStatesStateSet

Definition at line 1424 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYlUe ( Idx  index)

Mark event as QYlUe-state (by index)

Parameters
indexState index

Definition at line 1645 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYlUe ( const std::string &  rName)

Mark state as QYlUe-state (by name)

Parameters
rNameState name

Definition at line 1660 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetQYlUe ( const StateSet rStates)

Mark set of states as QYlUe-states.

Parameters
rStatesStateSet

Definition at line 1667 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUe ( Idx  index)

Mark event Ue-event(by index)

Parameters
indexEvent index

Definition at line 1143 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUe ( const std::string &  rName)

Mark event Ue-event(by name)

Parameters
rNameEvent name

Definition at line 1152 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUe ( const EventSet rEvents)

Mark set of events as Ue-events.

Parameters
rEventsEventSet

Definition at line 1159 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUl ( Idx  index)

Mark event as Ul-event (by index)

Parameters
indexEvent index

Definition at line 1277 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUl ( const std::string &  rName)

Mark event as Ul-event (by name)

Parameters
rNameEvent name

Definition at line 1286 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetUl ( const EventSet rEvents)

Mark set of events as Ul-events.

Parameters
rEventsEventSet

Definition at line 1293 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYe ( Idx  index)

Mark event as Ye-event (by index)

Parameters
indexEvent index

Definition at line 1118 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYe ( const std::string &  rName)

Mark event as Ye-event(by name)

Parameters
rNameEvent name

Definition at line 1127 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYe ( const EventSet rEvents)

Mark set of events as Ye-events.

Parameters
rEventsEventSet

Definition at line 1134 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYl ( Idx  index)

Mark event as Yl-event (by index)

Parameters
indexEvent index

Definition at line 1252 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYl ( const std::string &  rName)

Mark event as Yl-event (by name)

Parameters
rNameEvent name

Definition at line 1261 of file hio_environment.h.

template<class GlobalAttr , class StateAttr , class EventAttr , class TransAttr >
void faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::SetYl ( const EventSet rEvents)

Mark set of events as Yl-events.

Parameters
rEventsEventSet

Definition at line 1268 of file hio_environment.h.

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

Get EventSet with Ue-events.

Returns
EventSet of Ue-events

Definition at line 1203 of file hio_environment.h.

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

Get EventSet with U-events.

Returns
EventSet of U-events

Definition at line 1069 of file hio_environment.h.

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

Get EventSet with Ul-events.

Returns
EventSet of Ul-events

Definition at line 1337 of file hio_environment.h.

template<class GlobalAttr, class StateAttr, class EventAttr, class TransAttr>
virtual bool faudes::THioEnvironment< GlobalAttr, StateAttr, EventAttr, TransAttr >::UpdateAttributes ( void  )
inlinevirtual

Updates internal attributes.

This method sets the state partition attributes.

Returns
True if value changed

Reimplemented from faudes::vGenerator.

Definition at line 957 of file hio_environment.h.

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

Get EventSet with Ye-events.

Returns
EventSet of Ye-events

Definition at line 1192 of file hio_environment.h.

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

Get EventSet with Y-events.

Returns
EventSet of Y-events

Definition at line 1058 of file hio_environment.h.

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

Get EventSet with Yl-events.

Returns
EventSet of Yl-events

Definition at line 1326 of file hio_environment.h.


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

libFAUDES 2.26g --- 2015.08.17 --- c++ api documentaion by doxygen