|
|
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.
#include <hio_attributes.h>
|
| | HioStateFlags (void) |
| |
| | HioStateFlags (const HioStateFlags &rSrc) |
| |
| virtual | ~HioStateFlags (void) |
| |
| virtual std::string | ToString (void) const |
| |
| void | SetQY (void) |
| |
| void | ClrQY (void) |
| |
| bool | IsQY (void) const |
| |
| void | SetQU (void) |
| |
| void | ClrQU (void) |
| |
| bool | IsQU (void) const |
| |
| void | SetQC (void) |
| |
| void | ClrQC (void) |
| |
| bool | IsQC (void) const |
| |
| void | SetQP (void) |
| |
| void | ClrQP (void) |
| |
| bool | IsQP (void) const |
| |
| void | SetQE (void) |
| |
| void | ClrQE (void) |
| |
| bool | IsQE (void) const |
| |
| void | SetQL (void) |
| |
| void | ClrQL (void) |
| |
| bool | IsQL (void) const |
| |
| void | SetQYcUp (void) |
| |
| void | ClrQYcUp (void) |
| |
| bool | IsQYcUp (void) const |
| |
| void | SetQYlUe (void) |
| |
| void | ClrQYlUe (void) |
| |
| bool | IsQYlUe (void) const |
| |
| void | SetErr (void) |
| |
| void | ClrErr (void) |
| |
| bool | IsErr (void) const |
| |
| bool | IsDefault (void) const |
| |
| | AttributeFlags (void) |
| |
| | AttributeFlags (const AttributeFlags &rOther) |
| |
| virtual | ~AttributeFlags (void) |
| |
| bool | Test (fType mask) const |
| |
| bool | TestAll (fType mask) const |
| |
| bool | TestSome (fType mask) const |
| |
| bool | TestNone (fType mask) const |
| |
| void | Set (fType mask) |
| |
| void | Clr (fType mask) |
| |
| | AttrType (void) |
| |
| | AttrType (const AttrType &rSrc) |
| |
| virtual | ~AttrType (void) |
| |
| Type & | operator= (const Type &rSrc) |
| |
| Type & | operator= (Type &&rSrc) |
| |
| bool | operator== (const Type &rOther) const |
| |
| bool | operator!= (const Type &rOther) const |
| |
| | Type (void) |
| |
| | Type (const Type &rType) |
| |
| virtual | ~Type (void) |
| |
| virtual Type * | New (void) const |
| |
| virtual Type * | NewCpy (void) const |
| |
| virtual const Type * | Cast (const Type *pOther) const |
| |
| virtual void | Clear (void) |
| |
| virtual Type & | Copy (const Type &rSrc) |
| |
| virtual Type & | Move (Type &rSrc) |
| |
| Type & | operator= (const Type &rSrc) |
| |
| Type & | operator= (Type &&rSrc) |
| |
| virtual bool | Equal (const Type &rOther) const |
| |
| bool | operator== (const Type &rOther) const |
| |
| bool | operator!= (const Type &rOther) const |
| |
| virtual void | Name (const std::string &rName) |
| |
| virtual const std::string & | Name (void) const |
| |
| virtual const std::string & | TypeName (void) const |
| |
| void | Write (const Type *pContext=0) const |
| |
| 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 |
| |
| void | Write (const std::string &pFileName, std::ios::openmode openmode) const |
| |
| void | Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| |
| virtual void | XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const |
| |
| void | XWrite (const Type *pContext=0) const |
| |
| void | XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| |
| std::string | ToString (const std::string &rLabel="", const Type *pContext=0) const |
| |
| std::string | ToText (const std::string &rLabel="", const Type *pContext=0) const |
| |
| void | DWrite (const Type *pContext=0) const |
| |
| 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 |
| |
| void | DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const |
| |
| void | SWrite (TokenWriter &rTw) const |
| |
| void | SWrite (void) const |
| |
| std::string | ToSText (void) const |
| |
| void | Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) |
| |
| void | FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0) |
| |
| void | Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) |
| |
◆ HioStateFlags() [1/2]
| faudes::HioStateFlags::HioStateFlags |
( |
void |
| ) |
|
|
inline |
◆ HioStateFlags() [2/2]
| faudes::HioStateFlags::HioStateFlags |
( |
const HioStateFlags & |
rSrc | ) |
|
|
inline |
◆ ~HioStateFlags()
| virtual faudes::HioStateFlags::~HioStateFlags |
( |
void |
| ) |
|
|
inlinevirtual |
◆ ClrErr()
| void faudes::HioStateFlags::ClrErr |
( |
void |
| ) |
|
|
inline |
◆ ClrQC()
| void faudes::HioStateFlags::ClrQC |
( |
void |
| ) |
|
|
inline |
◆ ClrQE()
| void faudes::HioStateFlags::ClrQE |
( |
void |
| ) |
|
|
inline |
◆ ClrQL()
| void faudes::HioStateFlags::ClrQL |
( |
void |
| ) |
|
|
inline |
◆ ClrQP()
| void faudes::HioStateFlags::ClrQP |
( |
void |
| ) |
|
|
inline |
◆ ClrQU()
| void faudes::HioStateFlags::ClrQU |
( |
void |
| ) |
|
|
inline |
◆ ClrQY()
| void faudes::HioStateFlags::ClrQY |
( |
void |
| ) |
|
|
inline |
◆ ClrQYcUp()
| void faudes::HioStateFlags::ClrQYcUp |
( |
void |
| ) |
|
|
inline |
◆ ClrQYlUe()
| void faudes::HioStateFlags::ClrQYlUe |
( |
void |
| ) |
|
|
inline |
◆ DoCopy()
| void faudes::HioStateFlags::DoCopy |
( |
const HioStateFlags & |
rSrcAttr | ) |
|
|
protected |
Copyment method.
- Parameters
-
| rSrcAttr | Source to assign from |
Definition at line 122 of file hio_attributes.cpp.
◆ DoRead()
| void faudes::HioStateFlags::DoRead |
( |
TokenReader & |
rTr, |
|
|
const std::string & |
rLabel = "", |
|
|
const Type * |
pContext = 0 |
|
) |
| |
|
protectedvirtual |
Reads attribute from TokenReader, see AttributeVoid for public wrappers. Reads a single token if it can be interpreted as HioStateFlag, that is, if it is a respective option string or hex number. Label and Context argument are ignored. No token mismatch exceptions are thrown on error.
- Parameters
-
| rTr | TokenReader to read from |
| rLabel | Section to read |
| pContext | Read context to provide contextual information |
- Exceptions
-
Reimplemented from faudes::AttributeFlags.
Definition at line 172 of file hio_attributes.cpp.
◆ DoWrite()
| void faudes::HioStateFlags::DoWrite |
( |
TokenWriter & |
rTw, |
|
|
const std::string & |
rLabel = "", |
|
|
const Type * |
pContext = 0 |
|
) |
| const |
|
protectedvirtual |
Writes attribute to TokenWriter, see AttributeVoid for public wrappers. Label and Context argument are ignored.
- Parameters
-
| rTw | TokenWriter to write to |
| rLabel | Section to write |
| pContext | Write context to provide contextual information |
- Exceptions
-
Reimplemented from faudes::AttributeFlags.
Definition at line 128 of file hio_attributes.cpp.
◆ IsDefault()
| bool faudes::HioStateFlags::IsDefault |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ IsErr()
| bool faudes::HioStateFlags::IsErr |
( |
void |
| ) |
const |
|
inline |
◆ IsQC()
| bool faudes::HioStateFlags::IsQC |
( |
void |
| ) |
const |
|
inline |
◆ IsQE()
| bool faudes::HioStateFlags::IsQE |
( |
void |
| ) |
const |
|
inline |
◆ IsQL()
| bool faudes::HioStateFlags::IsQL |
( |
void |
| ) |
const |
|
inline |
◆ IsQP()
| bool faudes::HioStateFlags::IsQP |
( |
void |
| ) |
const |
|
inline |
◆ IsQU()
| bool faudes::HioStateFlags::IsQU |
( |
void |
| ) |
const |
|
inline |
◆ IsQY()
| bool faudes::HioStateFlags::IsQY |
( |
void |
| ) |
const |
|
inline |
◆ IsQYcUp()
| bool faudes::HioStateFlags::IsQYcUp |
( |
void |
| ) |
const |
|
inline |
◆ IsQYlUe()
| bool faudes::HioStateFlags::IsQYlUe |
( |
void |
| ) |
const |
|
inline |
◆ SetErr()
| void faudes::HioStateFlags::SetErr |
( |
void |
| ) |
|
|
inline |
◆ SetQC()
| void faudes::HioStateFlags::SetQC |
( |
void |
| ) |
|
|
inline |
◆ SetQE()
| void faudes::HioStateFlags::SetQE |
( |
void |
| ) |
|
|
inline |
◆ SetQL()
| void faudes::HioStateFlags::SetQL |
( |
void |
| ) |
|
|
inline |
◆ SetQP()
| void faudes::HioStateFlags::SetQP |
( |
void |
| ) |
|
|
inline |
◆ SetQU()
| void faudes::HioStateFlags::SetQU |
( |
void |
| ) |
|
|
inline |
◆ SetQY()
| void faudes::HioStateFlags::SetQY |
( |
void |
| ) |
|
|
inline |
◆ SetQYcUp()
| void faudes::HioStateFlags::SetQYcUp |
( |
void |
| ) |
|
|
inline |
◆ SetQYlUe()
| void faudes::HioStateFlags::SetQYlUe |
( |
void |
| ) |
|
|
inline |
◆ ToString()
| std::string faudes::HioStateFlags::ToString |
( |
void |
| ) |
const |
|
virtual |
Write attribute to string
- Returns
- string representation of attributes
Definition at line 167 of file hio_attributes.cpp.
◆ mAllHioStateFlags
| const fType faudes::HioStateFlags::mAllHioStateFlags =0x1FF |
|
staticprivate |
◆ mDefHioStateFlags
| const fType faudes::HioStateFlags::mDefHioStateFlags =0x000 |
|
staticprivate |
◆ mErrFlag
| const fType faudes::HioStateFlags::mErrFlag =0x100 |
|
static |
◆ mQCFlag
| const fType faudes::HioStateFlags::mQCFlag =0x04 |
|
static |
◆ mQEFlag
| const fType faudes::HioStateFlags::mQEFlag =0x10 |
|
static |
◆ mQLFlag
| const fType faudes::HioStateFlags::mQLFlag =0x20 |
|
static |
◆ mQPFlag
| const fType faudes::HioStateFlags::mQPFlag =0x08 |
|
static |
◆ mQUFlag
| const fType faudes::HioStateFlags::mQUFlag =0x02 |
|
static |
◆ mQYcUpFlag
| const fType faudes::HioStateFlags::mQYcUpFlag =0x40 |
|
static |
◆ mQYFlag
| const fType faudes::HioStateFlags::mQYFlag =0x01 |
|
static |
◆ mQYlUeFlag
| const fType faudes::HioStateFlags::mQYlUeFlag =0x80 |
|
static |
The documentation for this class was generated from the following files:
libFAUDES 2.34e
--- 2026.03.16
--- c++ api documentaion by doxygen
|