|  | MineLink
    | 
A block selection precedence constraint. More...
#include <constraint.h>


| Public Member Functions | |
| BlockSelectionPrecedenceConstraint (const string &name, const BlockSelection &bs_first, const BlockSelection &bs_second) | |
| Creates a block selection precedence constraint.  More... | |
| virtual | ~BlockSelectionPrecedenceConstraint () | 
| Destroy the block selection precedence constraint. | |
| virtual const delphos::BlockSelection & | GetFirstBlockSelection () const | 
| Returns the first block selection to be extracted. | |
| virtual const delphos::BlockSelection & | GetSecondBlockSelection () const | 
| Returns the second block selection to be extracted. | |
| virtual bool | Check (const delphos::Schedule &sch) const | 
| Checks if the constraint is satisfied.  More... | |
| virtual bool | Check (const delphos::FractionalSchedule &sch) const | 
| Checks if the given fractional schedule satisfies the constraint.  More... | |
|  Public Member Functions inherited from delphos::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 block selection precedence constraint.
The block selection precedence constraint force blocks of first block selection to be scheduled before blocks of second block selection.
| delphos::BlockSelectionPrecedenceConstraint::BlockSelectionPrecedenceConstraint | ( | const string & | name, | 
| const BlockSelection & | bs_first, | ||
| const BlockSelection & | bs_second | ||
| ) | 
Creates a block selection precedence constraint.
| bs_first | The block selection to be scheduled before the second one. | 
| bs_second | The block selection to be scheduled after the first one. | 
| 
 | virtual | 
Checks if the constraint is satisfied.
| sch | The schedule to be checked. | 
Return true only if the constraint is satisfied.
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.