OpenASIP
2.0
|
#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 |
![]() | |
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 |
![]() | |
virtual | ~Serializable () |
Static Public Attributes | |
static const std::string | OSNAME_UNCONDITIONAL_GUARD = "unconditional" |
ObjectState name for UnconditionalGuard. More... | |
![]() | |
static const std::string | OSNAME_GUARD = "guard" |
ObjectState name for guard. More... | |
static const std::string | OSKEY_INVERTED = "inverted" |
ObjectState attribute key for inverted feature. More... | |
Additional Inherited Members | |
![]() | |
Guard (bool inverted, Bus *parentBus) | |
Guard (const ObjectState *state, Bus &parentBus) | |
![]() | |
SubComponent () | |
virtual | ~SubComponent () |
![]() | |
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().
Referenced by copyTo().
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(), TTAMachine::Guard::parentBus(), and UnconditionalGuard().
|
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 TTAMachine::Bus::loadState(), loadState(), and saveState().