#include <problem.h>
Signals | |
| void | allocationAdded (const QString &id) |
| void | allocationStateChanged (const QString &id, int state) |
| void | changed () |
| void | taskStateChanged (const QString &task, int state) |
Public Member Functions | |
| Allocation * | addAllocation (Task *task, const QVector< Robot * > &robots) |
| Allocation * | getAllocation (const QString &id) const |
| QList< Allocation * > | getAllocations () const |
| Architecture * | getArchitecture () const |
| QString | getName () const |
| Task * | getTask (const QString &id) const |
| QList< Task * > | getTasks () const |
| bool | isValid (Taxonomy::AllocationType type) const |
| bool | isValid (Taxonomy::RobotType type) const |
| bool | isValid (Taxonomy::TaskType type) const |
| Problem (System *system, const QString &name, ArchitectureConfig *architecture_config) | |
| void | setArchitecture (Architecture *architecture) |
| virtual | ~Problem () |
Private Types | |
| typedef QMap< QString, Allocation * > | AllocationMap |
| typedef QMap< QString, Task * > | TaskMap |
Private Member Functions | |
| void | allocationStateChanged (int state) |
| void | taskStateChanged (int state) |
Private Attributes | |
| AllocationMap | allocations_ |
| Architecture * | architecture_ |
| QString | name_ |
| System * | system_ |
| TaskMap | tasks_ |
typedef QMap<QString, Allocation*> mrta::Problem::AllocationMap [private] |
typedef QMap<QString, Task*> mrta::Problem::TaskMap [private] |
| mrta::Problem::Problem | ( | System * | system, |
| const QString & | name, | ||
| ArchitectureConfig * | architecture_config | ||
| ) |
Definition at line 10 of file problem.cpp.
| mrta::Problem::~Problem | ( | ) | [virtual] |
Definition at line 17 of file problem.cpp.
| Allocation * mrta::Problem::addAllocation | ( | Task * | task, |
| const QVector< Robot * > & | robots | ||
| ) |
Definition at line 82 of file problem.cpp.
| void mrta::Problem::allocationAdded | ( | const QString & | id | ) | [signal] |
| void mrta::Problem::allocationStateChanged | ( | const QString & | id, |
| int | state | ||
| ) | [signal] |
| void mrta::Problem::allocationStateChanged | ( | int | state | ) | [private] |
Definition at line 117 of file problem.cpp.
| void mrta::Problem::changed | ( | ) | [signal] |
| Allocation * mrta::Problem::getAllocation | ( | const QString & | id | ) | const |
Definition at line 57 of file problem.cpp.
| QList< Allocation * > mrta::Problem::getAllocations | ( | ) | const |
Definition at line 64 of file problem.cpp.
| Architecture * mrta::Problem::getArchitecture | ( | ) | const |
Definition at line 50 of file problem.cpp.
| QString mrta::Problem::getName | ( | ) | const |
Definition at line 48 of file problem.cpp.
| Task * mrta::Problem::getTask | ( | const QString & | id | ) | const |
Definition at line 52 of file problem.cpp.
| QList< Task * > mrta::Problem::getTasks | ( | ) | const |
Definition at line 62 of file problem.cpp.
| bool mrta::Problem::isValid | ( | Taxonomy::AllocationType | type | ) | const |
Definition at line 92 of file problem.cpp.
| bool mrta::Problem::isValid | ( | Taxonomy::RobotType | type | ) | const |
Definition at line 97 of file problem.cpp.
| bool mrta::Problem::isValid | ( | Taxonomy::TaskType | type | ) | const |
Definition at line 102 of file problem.cpp.
| void mrta::Problem::setArchitecture | ( | Architecture * | architecture | ) |
Definition at line 69 of file problem.cpp.
| void mrta::Problem::taskStateChanged | ( | const QString & | task, |
| int | state | ||
| ) | [signal] |
| void mrta::Problem::taskStateChanged | ( | int | state | ) | [private] |
Definition at line 107 of file problem.cpp.
AllocationMap mrta::Problem::allocations_ [private] |
Architecture* mrta::Problem::architecture_ [private] |
QString mrta::Problem::name_ [private] |
System* mrta::Problem::system_ [private] |
TaskMap mrta::Problem::tasks_ [private] |