![]() |
MineLink
|
Defines a constraint that limits processing periods or destinations for blocks. More...
#include <constraint.h>
Public Member Functions | |
BlockTimingConstraint (const string &name, const unsigned int &period, delphos::BlockModel &bm) | |
Creates a constraint limiting the period . More... | |
BlockTimingConstraint (const string &name, const unsigned int &period, delphos::BlockSelection *bs) | |
Creates a constraint limiting the period . More... | |
![]() | |
BlockConstraint (const string &name, delphos::BlockModel &bm) | |
Creates a new block selection constraint. More... | |
BlockConstraint (const string &name, delphos::BlockSelection *bs) | |
Creates a new block selection constraint. More... | |
delphos::BlockSelection * | GetBlockSelection () const |
Returns the selection of blocks being constrained. | |
virtual | ~BlockConstraint () |
Destroys a block constraint. | |
![]() | |
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. | |
![]() | |
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... | |
Defines a constraint that limits processing periods or destinations for blocks.
delphos::BlockTimingConstraint::BlockTimingConstraint | ( | const string & | name, |
const unsigned int & | period, | ||
delphos::BlockModel & | bm | ||
) |
Creates a constraint limiting the period .
name | The name of the constraint. |
period | Period by which the block should be already processed. |
bm | The given block model to be constrained. If this constructor is used, no block is constrained. |
delphos::BlockTimingConstraint::BlockTimingConstraint | ( | const string & | name, |
const unsigned int & | period, | ||
delphos::BlockSelection * | bs | ||
) |
Creates a constraint limiting the period .
name | The name of the constraint. |
period | Period by which the block should be already processed. |
bs | The selection of blocks to be constrained. |
Blocks are constrained.