#include <environment.h>
|
bool | checkDone () |
| CheckDone returns true if the termination condition is met at the end of the episode.
|
|
void | setDone () |
| SetDone sets the termination condition to true.
|
|
void | resetDone () |
|
std::string | getNextAgent () |
| GetNextAgent returns the name/ID of the next agent to interact with.
|
|
void | setNextAgent (std::string name) |
| SetNextAgent sets the name of the next agent to interact with.
|
|
virtual Observation & | step (Action action)=0 |
| Step function takes an action as input and returns the observation corresponding to the next state.
|
|
virtual Observation & | reset ()=0 |
| Reset function returns the initial observation.
|
|
Definition at line 56 of file environment.h.
◆ checkDone()
bool MLBridge::Environment::checkDone |
( |
| ) |
|
|
inline |
CheckDone returns true if the termination condition is met at the end of the episode.
Definition at line 66 of file environment.h.
◆ getNextAgent()
std::string MLBridge::Environment::getNextAgent |
( |
| ) |
|
|
inline |
GetNextAgent returns the name/ID of the next agent to interact with.
Definition at line 73 of file environment.h.
◆ reset()
Reset function returns the initial observation.
This method should be implemented by the user. This method can internally call setNextAgent() to set the next agent to interact with.
◆ resetDone()
void MLBridge::Environment::resetDone |
( |
| ) |
|
|
inline |
◆ setDone()
void MLBridge::Environment::setDone |
( |
| ) |
|
|
inline |
SetDone sets the termination condition to true.
Definition at line 69 of file environment.h.
◆ setNextAgent()
void MLBridge::Environment::setNextAgent |
( |
std::string | name | ) |
|
|
inline |
SetNextAgent sets the name of the next agent to interact with.
Definition at line 76 of file environment.h.
◆ step()
Step function takes an action as input and returns the observation corresponding to the next state.
This method should be implemented by the user. Typically this method should call setDone() if the termination condition is met. setNextAgent() can be called in this method to set the next agent to interact with.
◆ done
bool MLBridge::Environment::done = false |
|
private |
◆ nextAgent
std::string MLBridge::Environment::nextAgent = "" |
|
private |
◆ obsMap
std::map<std::string, Observation &> MLBridge::Environment::obsMap |
|
protected |
The documentation for this class was generated from the following file: