Represents a requirement for a ResourceType. More...
#include <tasktype.h>
Public Member Functions | |
bool | isFulfilled (const domain::Task *task) const |
bool | canBeSuccessful (const domain::Task *task) const |
Private Member Functions | |
ResourceRequirement (ResourceType *reType) | |
Friends | |
class | TaskTypePrivate |
Represents a requirement for a ResourceType.
Definition at line 161 of file tasktype.h.
bool domain::ResourceRequirement::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 283 of file tasktype.cpp.
bool domain::ResourceRequirement::isFulfilled | ( | const domain::Task * | task | ) | const [virtual] |
Indicates whether this requirement is fulfilled for the given task.
Implements domain::Requirement.
Definition at line 267 of file tasktype.cpp.