#include <system.h>
Signals | |
void | added (const QString &id) |
void | allocationStateChanged (const QString &id, int state) |
void | changed () |
void | robotStateChanged (const QString &id, int state) |
void | taskStateChanged (const QString &id, int state) |
Public Member Functions | |
Allocation * | getAllocation (const QString &id) |
QList< Allocation * > | getAllocations () const |
Robot * | getRobot (const QString &id) |
QList< Robot * > | getRobots () const |
Task * | getTask (const QString &id) |
QList< Task * > | getTasks () const |
void | setRegistry (utilities::MessageSubscriberRegistry *registry) |
System (QObject *parent, ApplicationConfig *application_config, ArchitectureConfig *architecture_config, utilities::MessageSubscriberRegistry *registry) | |
virtual | ~System () |
Private Types | |
typedef QMap< QString, Robot * > | RobotMap |
Private Slots | |
void | robotStateChanged (int state) |
Private Member Functions | |
Robot * | addRobot (RobotConfig *config) |
Private Attributes | |
ApplicationConfig * | application_config_ |
ArchitectureConfig * | architecture_config_ |
QVector< Monitor * > | monitors_ |
Problem * | problem_ |
RobotMap | robots_ |
typedef QMap<QString, Robot*> mrta::System::RobotMap [private] |
mrta::System::System | ( | QObject * | parent, |
ApplicationConfig * | application_config, | ||
ArchitectureConfig * | architecture_config, | ||
utilities::MessageSubscriberRegistry * | registry | ||
) |
Definition at line 14 of file system.cpp.
mrta::System::~System | ( | ) | [virtual] |
Definition at line 57 of file system.cpp.
void mrta::System::added | ( | const QString & | id | ) | [signal] |
Robot * mrta::System::addRobot | ( | RobotConfig * | config | ) | [private] |
Definition at line 117 of file system.cpp.
void mrta::System::allocationStateChanged | ( | const QString & | id, |
int | state | ||
) | [signal] |
void mrta::System::changed | ( | ) | [signal] |
Allocation * mrta::System::getAllocation | ( | const QString & | id | ) |
Definition at line 95 of file system.cpp.
QList< Allocation * > mrta::System::getAllocations | ( | ) | const |
Definition at line 104 of file system.cpp.
Robot * mrta::System::getRobot | ( | const QString & | id | ) |
Definition at line 88 of file system.cpp.
QList< Robot * > mrta::System::getRobots | ( | ) | const |
Definition at line 100 of file system.cpp.
Task * mrta::System::getTask | ( | const QString & | id | ) |
Definition at line 93 of file system.cpp.
QList< Task * > mrta::System::getTasks | ( | ) | const |
Definition at line 102 of file system.cpp.
void mrta::System::robotStateChanged | ( | const QString & | id, |
int | state | ||
) | [signal] |
void mrta::System::robotStateChanged | ( | int | state | ) | [private, slot] |
Definition at line 129 of file system.cpp.
void mrta::System::setRegistry | ( | utilities::MessageSubscriberRegistry * | registry | ) |
Definition at line 109 of file system.cpp.
void mrta::System::taskStateChanged | ( | const QString & | id, |
int | state | ||
) | [signal] |
QVector<Monitor*> mrta::System::monitors_ [private] |
Problem* mrta::System::problem_ [private] |
RobotMap mrta::System::robots_ [private] |