![]() |
MineLink
|
A base class for constraints indexed by time-period. More...
#include <constraint.h>
Public Member Functions | |
TimedConstraint (const string &name, const unsigned int &period) | |
Creates a new timed constraint. More... | |
virtual | ~TimedConstraint () |
destroys a timed constraint. | |
const unsigned int | GetPeriod () const |
Returns the time-period that the constraint applies at. More... | |
![]() | |
Constraint (const string &name) | |
Creates a constraint with given name. More... | |
virtual | ~Constraint () |
Destructor. More... | |
virtual bool | Check (const delphos::Schedule &sch) const |
Checks if the given schedule satisfies the constraint. More... | |
virtual bool | Check (const delphos::FractionalSchedule &fsch) const |
Checks if the given fractional schedule satisfies the constraint. More... | |
virtual string | ToXML (const unsigned int identation_level=0) const |
A XML string describing the constraint. More... | |
const char * | TypeName () const |
a char string used a identifier in the XML representation of the constraint. | |
A base class for constraints indexed by time-period.
This class defines elementary data for a constraint that applies only at a given time-period.
delphos::TimedConstraint::TimedConstraint | ( | const string & | name, |
const unsigned int & | period | ||
) |
Creates a new timed constraint.
name | A name for the constraint. |
period | Period at which the constraint applies. |
This is an abstract class that represents a constraints that applies only at a given time-period.
const unsigned int delphos::TimedConstraint::GetPeriod | ( | ) | const |
Returns the time-period that the constraint applies at.
The time period at which the constraint applies.