![]() |
MineLink
|
A base class for constraints that apply to subsets of blocks. More...
#include <constraint.h>


Public Member Functions | |
| 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. | |
Public Member Functions inherited from delphos::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. | |
A base class for constraints that apply to subsets of blocks.
This class defines elementary data for constraints that apply only to a subset of the blocks in a blockmodel.
| delphos::BlockConstraint::BlockConstraint | ( | const string & | name, |
| delphos::BlockModel & | bm | ||
| ) |
Creates a new block selection constraint.
| name | A name for the constraint. |
| bm | The block model to be constrained. |
If this constructor is used, no block is constrained.
| delphos::BlockConstraint::BlockConstraint | ( | const string & | name, |
| delphos::BlockSelection * | bs | ||
| ) |
Creates a new block selection constraint.
| name | of the constraint. |
| bs | The selection of blocks to be constrained. |