Public Member Functions | |
| TimeWindow () | |
| The default time window begins now and lasts for one minute. | |
| TimeWindow (const Time &b, const Time &e) | |
| Define a segment by its end points. | |
| TimeWindow (const Time &bound, const TimeInterval &length) | |
| Define a segment by a bound and length. | |
| virtual | ~TimeWindow () |
| Reproduce responsibly. | |
| bool | contains (const Time &) const |
| Return true iff passed-in Time lies within TimeWindow (both extremes included). | |
| bool | contains (const Time &, const TimeInterval &) const |
| Return true iff passed-in Time lies within this TimeInterval of this window. | |
| void | setDuration (const TimeInterval &) |
| Set the duration of the time window. | |
| TimeInterval | getDuration () const |
| Get the duration of the time window. | |
| void | setBeginning (const Time &) |
| Set the beginning of the time window. | |
| const Time & | getBeginning () const |
| Get the beginning of the time window. | |
| void | setEnd (const Time &) |
| Set the end of the time window. | |
| const Time & | getEnd () const |
| Get the end of the time window. | |
| code::TimeWindow::TimeWindow | ( | ) |
The default time window begins now and lasts for one minute.
Define a segment by its end points.
| code::TimeWindow::TimeWindow | ( | const Time & | bound, | |
| const TimeInterval & | length | |||
| ) |
Define a segment by a bound and length.
A positive length implies that the bound is a lower bound. A negative length implies that the bound is an upper bound.
| virtual code::TimeWindow::~TimeWindow | ( | ) | [inline, virtual] |
Reproduce responsibly.
| bool code::TimeWindow::contains | ( | const Time & | , | |
| const TimeInterval & | ||||
| ) | const |
Return true iff passed-in Time lies within this TimeInterval of this window.
A positive time interval has the effect of expanding this window, while a negative time interval has the effect of narrrowing it.
| bool code::TimeWindow::contains | ( | const Time & | ) | const |
Return true iff passed-in Time lies within TimeWindow (both extremes included).
| const Time& code::TimeWindow::getBeginning | ( | ) | const [inline] |
Get the beginning of the time window.
| TimeInterval code::TimeWindow::getDuration | ( | ) | const |
Get the duration of the time window.
| const Time& code::TimeWindow::getEnd | ( | ) | const [inline] |
Get the end of the time window.
| void code::TimeWindow::setBeginning | ( | const Time & | ) |
Set the beginning of the time window.
| void code::TimeWindow::setDuration | ( | const TimeInterval & | ) |
Set the duration of the time window.
A positive duration repositions the upper bound, and a negative duration repositions the lower bound.
| void code::TimeWindow::setEnd | ( | const Time & | ) |
Set the end of the time window.
1.4.7