State attributes for hierarchical discrete event systems with inputs and outputs.
The flags are used by eg assertion functions to describe membership of the active events of a given state in a certain alphabet:
- QY: only output (Y-) events are active.
- QU: only input (U-) events are active.
- additional flags QC,QP,QE,QL can be set/cleared to designate membership of the active events in the C-,P-,E-,L-alphabet, respectively. Membership in the union of several alphabets is possible by setting more than one of these flags.
- states with active input- as well as active output-events are provided with the exclusive flags QYcUp, meaning that only events of the alphabet YC or UP are active, and QYlUe, meaning that only events of the alphabet YL or UE are active. QY,QU,QYcUp and QYlUe are exclusive by construction of the Set() operations.
- Err: with public read/write access in all hiogenerators, this flag enables to specify so-called "Error behaviour" that is typically entered after unexpected input events, for example malfunction of a HioPlant after faulty operator input. The flag can be used by the model designer; also the hio function FreeInput() uses this flag when extending a hio generator by error behaviour in order to make an input free in this generator. Err is not bound to any formal definition and does not effect / can be combined with any of the remaining flags. Hence, Err remains untouched by the functions IsIoPlant(), IsIoController(), IsIoEnvironment(), IsIoConstraint() and UpdateStateAttributes().
Definition at line 256 of file hio_attributes.h.
|
| HioStateFlags (void) |
| Default constructor. More...
|
|
| HioStateFlags (const HioStateFlags &rSrc) |
| Copy constructor. More...
|
|
virtual | ~HioStateFlags (void) |
|
virtual std::string | ToString (void) const |
| Write attribute to string. More...
|
|
void | SetQY (void) |
| Set QY-state flag. More...
|
|
void | ClrQY (void) |
| Clear QY-state flag. More...
|
|
bool | IsQY (void) const |
| Query QY-state flag. More...
|
|
void | SetQU (void) |
| Set QU-state flag. More...
|
|
void | ClrQU (void) |
| Clear QU-state flag. More...
|
|
bool | IsQU (void) const |
| Query QU-state flag. More...
|
|
void | SetQC (void) |
| Set QC-state flag. More...
|
|
void | ClrQC (void) |
| Clear QC-state flag. More...
|
|
bool | IsQC (void) const |
| Query QC-state flag. More...
|
|
void | SetQP (void) |
| Set QP-state flag. More...
|
|
void | ClrQP (void) |
| Clear QP-state flag. More...
|
|
bool | IsQP (void) const |
| Query QP-state flag. More...
|
|
void | SetQE (void) |
| Set QE-state flag. More...
|
|
void | ClrQE (void) |
| Clear QE-state flag. More...
|
|
bool | IsQE (void) const |
| Query QE-state flag. More...
|
|
void | SetQL (void) |
| Set QL-state flag. More...
|
|
void | ClrQL (void) |
| Clear QL-state flag. More...
|
|
bool | IsQL (void) const |
| Query QL-state flag. More...
|
|
void | SetQYcUp (void) |
| Set QYcUp-state flag. More...
|
|
void | ClrQYcUp (void) |
| Clear QYcUp-state flag. More...
|
|
bool | IsQYcUp (void) const |
| Query QYcUp-state flag. More...
|
|
void | SetQYlUe (void) |
| Set QYlUe-state flag. More...
|
|
void | ClrQYlUe (void) |
| Clear QYlUe-state flag. More...
|
|
bool | IsQYlUe (void) const |
| Query QYlUe-state flag. More...
|
|
void | SetErr (void) |
| Set Err-state flag. More...
|
|
void | ClrErr (void) |
| Clear Err-state flag. More...
|
|
bool | IsErr (void) const |
| Query Err-state flag. More...
|
|
bool | IsDefault (void) const |
| Test for default value. More...
|
|
| AttributeFlags (void) |
| Default constructor. More...
|
|
| AttributeFlags (const AttributeFlags &rOther) |
| Copy constructor. More...
|
|
virtual | ~AttributeFlags (void) |
| Destructor. More...
|
|
bool | Test (fType mask) const |
| Test a flag. More...
|
|
bool | TestAll (fType mask) const |
| Test multible flags, combine by "and". More...
|
|
bool | TestSome (fType mask) const |
| Test multible flags, combine by "or". More...
|
|
bool | TestNone (fType mask) const |
| Test multible flags, combine by "not or". More...
|
|
void | Set (fType mask) |
| Set multiple flags. More...
|
|
void | Clr (fType mask) |
| Clear multiple flags. More...
|
|
Type & | operator= (const Type &rSrc) |
| Assign configurationdata from other object. More...
|
|
bool | operator== (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
bool | operator!= (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
| AttributeVoid (void) |
| Constructor. More...
|
|
| AttributeVoid (const AttributeVoid &rSrcAttr) |
| Copy Constructor. More...
|
|
virtual | ~AttributeVoid (void) |
| Destructor. More...
|
|
virtual void | SetDefault (void) |
| Set to default value. More...
|
|
virtual void | Clear (void) |
| Synonym for SetDefault to match std interface. More...
|
|
Type & | operator= (const Type &rSrc) |
| Assign configurationdata from other object. More...
|
|
bool | operator== (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
bool | operator!= (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
| Type (void) |
| Constructor. More...
|
|
| Type (const Type &rType) |
| Copy constructor. More...
|
|
virtual | ~Type (void) |
| Destructor. More...
|
|
virtual Type * | New (void) const |
| Construct on heap. More...
|
|
virtual Type * | Copy (void) const |
| Construct on heap. More...
|
|
virtual const Type * | Cast (const Type *pOther) const |
| Cast other object to this type. More...
|
|
virtual Type & | Assign (const Type &rSrc) |
| Assign configuration data from other object. More...
|
|
Type & | operator= (const Type &rSrc) |
| Assign configurationdata from other object. More...
|
|
virtual bool | Equal (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
bool | operator== (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
bool | operator!= (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
virtual void | Name (const std::string &rName) |
| Set the objects's name. More...
|
|
virtual const std::string & | Name (void) const |
| Get objects's name. More...
|
|
virtual const std::string & | TypeName (void) const |
| Get objects's type name. More...
|
|
void | Write (const Type *pContext=0) const |
| Write configuration data to console. More...
|
|
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. More...
|
|
void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
| Write configuration data to a file. More...
|
|
void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to TokenWriter. More...
|
|
virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to an XML file. More...
|
|
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. More...
|
|
void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data in XML format to TokenWriter. More...
|
|
std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to a string. More...
|
|
std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data to a formated string. More...
|
|
void | DWrite (const Type *pContext=0) const |
| Write configuration data to console, debugging format. More...
|
|
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. More...
|
|
void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write configuration data in debug format to TokenWriter. More...
|
|
void | SWrite (TokenWriter &rTw) const |
| Write statistics comment to TokenWriter. More...
|
|
void | SWrite (void) const |
| Write statistics comment to console. More...
|
|
std::string | ToSText (void) const |
| Write statistics to a string. More...
|
|
void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from file with label specified. More...
|
|
void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from a string. More...
|
|
void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
| Read configuration data from TokenReader with label sepcified. More...
|
|
|
void | DoAssign (const HioStateFlags &rSrcAttr) |
| Assignment method. More...
|
|
virtual void | DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
| Reads attribute from TokenReader, see AttributeVoid for public wrappers. More...
|
|
virtual void | DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Writes attribute to TokenWriter, see AttributeVoid for public wrappers. More...
|
|
void | DoAssign (const AttributeFlags &rSrcAttr) |
| Assignment method. More...
|
|
bool | DoEqual (const AttributeFlags &rOther) const |
| Test equality of configuration data. More...
|
|
virtual void | DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Write to TokenWriter, see Type for public wrappers. More...
|
|
void | DoAssign (const AttributeVoid &rSrcAttr) |
| Assign attribute members. More...
|
|
bool | DoEqual (const AttributeVoid &rOther) const |
| Test equality of configuration data. More...
|
|
virtual void | DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| Actual write method to write the attribute to a TokenWriter. More...
|
|
void | DoAssign (const Type &rSrc) |
| Assign configuration data from other object. More...
|
|
bool | DoEqual (const Type &rOther) const |
| Test equality of configuration data. More...
|
|
virtual void | DoSWrite (TokenWriter &rTw) const |
| Write statistical data as a comment to TokenWriter. More...
|
|
virtual const TypeDefinition * | TypeDefinitionp (void) const |
| Get objects's type definition. More...
|
|
virtual Token | XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const |
|