Signals | Public Member Functions | Private Types | Private Member Functions | Private Attributes
mrta::Problem Class Reference

#include <problem.h>

List of all members.

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

AllocationaddAllocation (Task *task, const QVector< Robot * > &robots)
AllocationgetAllocation (const QString &id) const
QList< Allocation * > getAllocations () const
ArchitecturegetArchitecture () const
QString getName () const
TaskgetTask (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_
Architecturearchitecture_
QString name_
Systemsystem_
TaskMap tasks_

Detailed Description

Definition at line 28 of file problem.h.


Member Typedef Documentation

typedef QMap<QString, Allocation*> mrta::Problem::AllocationMap [private]

Definition at line 54 of file problem.h.

typedef QMap<QString, Task*> mrta::Problem::TaskMap [private]

Definition at line 53 of file problem.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Definition at line 64 of file problem.cpp.

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.

Definition at line 92 of file problem.cpp.

Definition at line 97 of file problem.cpp.

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.


Member Data Documentation

Definition at line 59 of file problem.h.

Definition at line 57 of file problem.h.

QString mrta::Problem::name_ [private]

Definition at line 55 of file problem.h.

Definition at line 56 of file problem.h.

Definition at line 58 of file problem.h.


The documentation for this class was generated from the following files:


rqt_mrta
Author(s): Adriano Henrique Rossette Leite
autogenerated on Thu Jun 6 2019 18:50:53