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

A base class for constraints indexed by time-period. More...

#include <constraint.h>

Inheritance diagram for delphos::TimedConstraint:
Inheritance graph
Collaboration diagram for delphos::TimedConstraint:
Collaboration graph

Public Member Functions

 TimedConstraint (const string &name, const unsigned int &period)
 Creates a new timed constraint. More...
 
virtual ~TimedConstraint ()
 destroys a timed constraint.
 
const unsigned int GetPeriod () const
 Returns the time-period that the constraint applies at. More...
 
- 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 indexed by time-period.

This class defines elementary data for a constraint that applies only at a given time-period.

Constructor & Destructor Documentation

delphos::TimedConstraint::TimedConstraint ( const string &  name,
const unsigned int &  period 
)

Creates a new timed constraint.

Parameters
nameA name for the constraint.
periodPeriod at which the constraint applies.

This is an abstract class that represents a constraints that applies only at a given time-period.

Member Function Documentation

const unsigned int delphos::TimedConstraint::GetPeriod ( ) const

Returns the time-period that the constraint applies at.

The time period at which the constraint applies.


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