- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Mers::Reconfiguration::Discrete::Stub::MRStub Class Reference

`#include <MR_stub.h>`

Inheritance diagram for Mers::Reconfiguration::Discrete::Stub::MRStub:

[legend]
Collaboration diagram for Mers::Reconfiguration::Discrete::Stub::MRStub:

[legend]
List of all members.

## Public Member Functions
void | update_current_state (unsigned int state_index, unsigned int value_index) const
Mers::Utils::Containers::intList | generate_commands (Mers::Utils::Containers::intList &goals)

## Detailed Description

A stub for Discrete Mode Reconfiguration.

Author:
  Andreas F. Wehowsky

  Paul H. Elliott

Definition at line 30 of file MR_stub.h.

## Member Function Documentation

void MRStub::update_current_state | ( | unsigned int | state_index,
|  | unsigned int | value_index |
| ) |  |  | const`[virtual]`

dispatch message from SCL to update a state in the MR engine.

Implements Mers::Reconfiguration::Discrete::MR_connection.

Definition at line 37 of file MR_stub.cpp.

intList MRStub::generate_commands | ( | Mers::Utils::Containers::intList & | goals | ) | `[virtual]`

Send a list of goal (pairs of state variables and values) and returns a new control command from MR to SCL.

Implements Mers::Reconfiguration::Discrete::MR_connection.

Definition at line 43 of file MR_stub.cpp.

References Mers::Utils::Containers::intList::empty(), Mers::Utils::Containers::intList::front(), Mers::Utils::Containers::intList::pop_front(), Mers::Utils::Containers::intList::push_back(), and Mers::Utils::Containers::intList::size().

Here is the call graph for this function:

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

- /Users/fpy/titan-1-5-MBARI/Mers/Reconfiguration/Discrete/Stub/MR_stub.h
- /Users/fpy/titan-1-5-MBARI/Mers/Reconfiguration/Discrete/Stub/MR_stub.cpp