MineLink
 All Data Structures Functions Variables Pages
delphos::BlockConstraint Class Reference

A base class for constraints that apply to subsets of blocks. More...

#include <constraint.h>

Inheritance diagram for delphos::BlockConstraint:
Inheritance graph
Collaboration diagram for delphos::BlockConstraint:
Collaboration graph

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::BlockSelectionGetBlockSelection () 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

delphos::BlockConstraint::BlockConstraint ( const string &  name,
delphos::BlockModel bm 
)

Creates a new block selection constraint.

Parameters
nameA name for the constraint.
bmThe 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.

Parameters
nameof the constraint.
bsThe selection of blocks to be constrained.

The documentation for this class was generated from the following files: