Class RPGBuilder::RPGDuration

Nested Relationships

This class is a nested type of Class RPGBuilder.

Class Documentation

class RPGDuration

A class containing all the duration constraints imposed on an action.

Public Functions

inline RPGDuration(list<DurationExpr*> &eq, list<DurationExpr*> &low, list<DurationExpr*> &high)
inline const list<DurationExpr*> &operator[](const int &i) const

Return one of the lists of durations contained in the object.

Parameters:

i – Which list of durations to return:

  • 0 returns the fixed duration expressions;

  • 1 returns the min duration expressions;

  • 2 returns the max duration expressions.

Returns:

The requested list of duration expressions.

Public Members

list<DurationExpr*> fixed

The fixed durations of the action, those of the form (= ?duration ...)

list<DurationExpr*> min

The minimum durations of the action, those of the form (>= ?duration ...) or (> ?duration ...)

list<DurationExpr*> max

The maximum durations of the action, those of the form (<= ?duration ...) or (< ?duration ...)