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

A constraint that prevents certain blocks to be sent to given processes. More...

#include <filtering.h>

Inheritance diagram for delphos::DoNotSendToConstraint:
Inheritance graph
Collaboration diagram for delphos::DoNotSendToConstraint:
Collaboration graph

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...
 
- Public Member Functions inherited from delphos::BlockConstraint
 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 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 constraint that prevents certain blocks to be sent to given processes.

Constructor & Destructor Documentation

delphos::DoNotSendToConstraint::DoNotSendToConstraint ( const string &  name,
const vector< int > &  affdestinations,
delphos::BlockSelection bs 
)

A constraints that prevents blocks to be sent to given processes.

Parameters
nameThe name of the constraint.
affdestinationsThe list of index of destinations to be avoided.
bsThe 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.

Member Function Documentation

bool delphos::DoNotSendToConstraint::Check ( const delphos::Schedule sch) const
virtual

checks if the constraint is satisfied by the schedule.

Parameters
schThe schedule to be checked.

Checks if the constraint is satisfied by the schedule.

Reimplemented from delphos::Constraint.

bool delphos::DoNotSendToConstraint::Check ( const delphos::FractionalSchedule sch) const
virtual

checks if the given fractional schedule satisfies the constraint.

Parameters
fschThe 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.


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