|
OpenASIP 2.2
|
#include <Guard.hh>


Public Member Functions | |
| UnconditionalGuard (bool inverted, Bus &parentBus) | |
| UnconditionalGuard (const ObjectState *state, Bus &parentBus) | |
| virtual | ~UnconditionalGuard () |
| bool | isOpposite (const Guard &) const |
| bool | isEqual (const Guard &guard) const |
| ObjectState * | saveState () const |
| void | loadState (const ObjectState *state) |
| virtual void | copyTo (Bus &parentBus) const |
Public Member Functions inherited from TTAMachine::Guard | |
| virtual | ~Guard () |
| virtual Bus * | parentBus () const |
| virtual void | setParentBus (Bus *parentBus) |
| virtual bool | isInverted () const |
| virtual bool | isMoreRestrictive (const Guard &guard) const |
| virtual bool | isLessRestrictive (const Guard &guard) const |
| virtual bool | isDisjoint (const Guard &guard) const |
Public Member Functions inherited from Serializable | |
| virtual | ~Serializable () |
Static Public Attributes | |
| static const std::string | OSNAME_UNCONDITIONAL_GUARD = "unconditional" |
| ObjectState name for UnconditionalGuard. | |
Static Public Attributes inherited from TTAMachine::Guard | |
| static const std::string | OSNAME_GUARD = "guard" |
| ObjectState name for guard. | |
| static const std::string | OSKEY_INVERTED = "inverted" |
| ObjectState attribute key for inverted feature. | |
Additional Inherited Members | |
Protected Member Functions inherited from TTAMachine::Guard | |
| Guard (bool inverted, Bus *parentBus) | |
| Guard (const ObjectState *state, Bus &parentBus) | |
Protected Member Functions inherited from TTAMachine::SubComponent | |
| SubComponent () | |
| virtual | ~SubComponent () |
Protected Member Functions inherited from TTAMachine::MachinePart | |
| MachinePart () | |
| virtual | ~MachinePart () |
| TTAMachine::UnconditionalGuard::UnconditionalGuard | ( | bool | inverted, |
| Bus & | parentBus | ||
| ) |
Constructor.
| inverted | If true, the guard condition is always false and vice versa. |
| parentBus | Parent bus component of the guard. |
| ComponentAlreadyExists | If the parent bus already has an equal guard. |
Definition at line 615 of file Guard.cc.
References TTAMachine::Bus::addGuard(), and TTAMachine::Guard::parentBus().

| TTAMachine::UnconditionalGuard::UnconditionalGuard | ( | const ObjectState * | state, |
| Bus & | parentBus | ||
| ) |
Constructor.
Loads its state from the given ObjectState instance.
| state | The ObjectState instance. |
| parentBus | The parent bus of the guard. |
| ObjectStateLoadingException | If the given ObjectState instance is invalid. |
Definition at line 630 of file Guard.cc.
References TTAMachine::Bus::addGuard(), loadState(), TTAMachine::Component::name(), TTAMachine::Guard::parentBus(), Texts::TextGenerator::text(), and MOMTextGenerator::TXT_EQUAL_UNCONDITIONAL_GUARDS.

|
virtual |
|
inlinevirtual |
Implements TTAMachine::Guard.
Definition at line 190 of file Guard.hh.
References TTAMachine::Guard::isInverted(), and TTAMachine::Guard::parentBus().

|
virtual |
Returns true if the guard is equal with the given guard.
| guard | The other guard. |
Implements TTAMachine::Guard.
Definition at line 660 of file Guard.cc.
References TTAMachine::Guard::isInverted().

|
inlinevirtual |
|
virtual |
Loads its state from the given ObjectState instance.
| state | The ObjectState instance. |
| ObjectStateLoadingException | If the given ObjectState instance is invalid. |
Reimplemented from TTAMachine::Guard.
Definition at line 696 of file Guard.cc.
References TTAMachine::Guard::loadState(), ObjectState::name(), and OSNAME_UNCONDITIONAL_GUARD.
Referenced by UnconditionalGuard().

|
virtual |
Saves the contents to an ObjectState object.
Reimplemented from TTAMachine::Guard.
Definition at line 681 of file Guard.cc.
References OSNAME_UNCONDITIONAL_GUARD, TTAMachine::Guard::saveState(), and ObjectState::setName().

|
static |
ObjectState name for UnconditionalGuard.
Definition at line 195 of file Guard.hh.
Referenced by ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), TTAMachine::Bus::loadState(), loadState(), and saveState().