![]() |
MineLink
|
A constraint that prevents certain blocks to be sent to given processes. More...
#include <filtering.h>
Public Member Functions | |
DoNotSendToConstraint (const string &name, const vector< int > &affdestinations, delphos::BlockSelection *bs) | |
A constraints that prevents blocks to be sent to given processes. More... | |
const unsigned int | NumAffectedDestinations () const |
Return the number of destinations affected by the constraint. More... | |
const unsigned int | GetNumAffectedDestinations () const |
Return the number of destinations affected by the constraint. More... | |
const unsigned int | GetAffectedDestination (const unsigned int i) const |
Return the index of the i-th destinations affected by the constraint. More... | |
virtual bool | Check (const delphos::Schedule &sch) const |
checks if the constraint is satisfied by the schedule. More... | |
virtual bool | Check (const delphos::FractionalSchedule &sch) const |
checks if the given fractional schedule satisfies the constraint. 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 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 constraint that prevents certain blocks to be sent to given processes.
delphos::DoNotSendToConstraint::DoNotSendToConstraint | ( | const string & | name, |
const vector< int > & | affdestinations, | ||
delphos::BlockSelection * | bs | ||
) |
A constraints that prevents blocks to be sent to given processes.
name | The name of the constraint. |
affdestinations | The list of index of destinations to be avoided. |
bs | The selection of blocks to be constrained. |
This constraint establishes that the block will not be send to the affected destinatons. The index of destinations are from 0 to the number of destination -1 of the scheduling instance.
|
virtual |
checks if the constraint is satisfied by the schedule.
sch | The schedule to be checked. |
Checks if the constraint is satisfied by the schedule.
Reimplemented from delphos::Constraint.
|
virtual |
checks if the given fractional schedule satisfies the constraint.
fsch | The fractional schedule to be checked. |
This method checks if the given schedule satisfies the constraint (returning true) or not (return false).
Reimplemented from delphos::Constraint.
const unsigned int delphos::DoNotSendToConstraint::GetAffectedDestination | ( | const unsigned int | i | ) | const |
Return the index of the i-th destinations affected by the constraint.
Return the index of the i-th destinations affected by the constraint.
const unsigned int delphos::DoNotSendToConstraint::GetNumAffectedDestinations | ( | ) | const |
Return the number of destinations affected by the constraint.
Return the number of destinations affected by the constraint.
const unsigned int delphos::DoNotSendToConstraint::NumAffectedDestinations | ( | ) | const |
Return the number of destinations affected by the constraint.
Return the number of destinations affected by the constraint. Deprecated.