#include <allocation.h>
Public Types | |
| enum | State { OnHold, Assigned, Done } |
| typedef Taxonomy::AllocationType | Type |
Signals | |
| void | changed () |
| void | stateChanged (int state) |
Public Member Functions | |
| Allocation (Problem *problem, Task *task, const QVector< Robot * > &robots=QVector< Robot * >()) | |
| QString | getId () const |
| QVector< Robot * > | getRobots () const |
| Task * | getTask () const |
| void | setRobots (const QVector< Robot * > &robots) |
| void | setState (State state) |
| virtual | ~Allocation () |
Private Slots | |
| void | robotStateChanged (int state) |
| void | taskStateChanged (int state) |
Private Attributes | |
| QString | id_ |
| QVector< Robot * > | robots_ |
| State | state_ |
| Task * | task_ |
| Type | type_ |
Definition at line 13 of file allocation.h.
Definition at line 23 of file allocation.h.
Definition at line 17 of file allocation.h.
| mrta::Allocation::Allocation | ( | Problem * | problem, |
| Task * | task, | ||
| const QVector< Robot * > & | robots = QVector<Robot*>() |
||
| ) |
Definition at line 9 of file allocation.cpp.
| mrta::Allocation::~Allocation | ( | ) | [virtual] |
Definition at line 19 of file allocation.cpp.
| void mrta::Allocation::changed | ( | ) | [signal] |
| QString mrta::Allocation::getId | ( | ) | const |
Definition at line 27 of file allocation.cpp.
| QVector< Robot * > mrta::Allocation::getRobots | ( | ) | const |
Definition at line 31 of file allocation.cpp.
| Task * mrta::Allocation::getTask | ( | ) | const |
Definition at line 29 of file allocation.cpp.
| void mrta::Allocation::robotStateChanged | ( | int | state | ) | [private, slot] |
Definition at line 68 of file allocation.cpp.
| void mrta::Allocation::setRobots | ( | const QVector< Robot * > & | robots | ) |
Definition at line 33 of file allocation.cpp.
| void mrta::Allocation::setState | ( | Allocation::State | state | ) |
Definition at line 58 of file allocation.cpp.
| void mrta::Allocation::stateChanged | ( | int | state | ) | [signal] |
| void mrta::Allocation::taskStateChanged | ( | int | state | ) | [private, slot] |
Definition at line 73 of file allocation.cpp.
QString mrta::Allocation::id_ [private] |
Definition at line 38 of file allocation.h.
QVector<Robot*> mrta::Allocation::robots_ [private] |
Definition at line 42 of file allocation.h.
State mrta::Allocation::state_ [private] |
Definition at line 40 of file allocation.h.
Task* mrta::Allocation::task_ [private] |
Definition at line 41 of file allocation.h.
Type mrta::Allocation::type_ [private] |
Definition at line 39 of file allocation.h.