Represents a requirement for a UserType. More...
#include <tasktype.h>
Public Member Functions | |
bool | isFulfilled (const domain::Task *task) const |
bool | canBeSuccessful (const domain::Task *task) const |
Private Member Functions | |
UserRequirement (UserType *userType) | |
Friends | |
class | TaskTypePrivate |
Represents a requirement for a UserType.
Definition at line 141 of file tasktype.h.
bool domain::UserRequirement::canBeSuccessful | ( | const domain::Task * | task | ) | const [virtual] |
Indicates whether this requirements does not prevent the given task from being in a successful state. The difference with isFulfilled is that this method returns true even if the timing constraints of this requirements are in the past but could have been fulfilled at some time.
Implements domain::Requirement.
Definition at line 253 of file tasktype.cpp.
bool domain::UserRequirement::isFulfilled | ( | const domain::Task * | task | ) | const [virtual] |
Indicates whether this requirement is fulfilled for the given task.
Implements domain::Requirement.
Definition at line 237 of file tasktype.cpp.