
Public Member Functions | |
| virtual int | compute_next_vertex () |
| virtual void | init (int argc, char **argv) |
| virtual void | onGoalComplete () |
| virtual void | processEvents () |
| virtual void | receive_results () |
| virtual void | send_results () |
Private Attributes | |
| bool | arrived |
| double * | avg_idleness |
| double * | cur_avg_idleness |
| long long int | decision_number |
| uint * | destination |
| uint | hist_dimension |
| double * | histogram |
| bool | intention |
| uint * | node_count |
| double | now |
| int | number_of_edges |
| int | NUMBER_OF_ROBOTS |
| double * | real_histogram |
| reinforcement_learning | RL |
| int | robot_arrived |
| int | robot_intention |
| uint * | source |
| int * | tab_intention |
| uint | vertex_arrived |
| uint | vertex_intention |
Definition at line 53 of file CBLS_Agent.cpp.
| int CBLS_Agent::compute_next_vertex | ( | ) | [virtual] |
Implements PatrolAgent.
Definition at line 251 of file CBLS_Agent.cpp.
| void CBLS_Agent::init | ( | int | argc, |
| char ** | argv | ||
| ) | [virtual] |
Reimplemented from PatrolAgent.
Definition at line 88 of file CBLS_Agent.cpp.
| void CBLS_Agent::onGoalComplete | ( | ) | [virtual] |
PUNISH & REWARD -- BEFORE
PUNISH & REWARD -- NOW
*************CALL LEARNING FUNCTION
David Portugal: 23 Dec. 2015 -- changed this behavior. The robot no longer stays in the same place if all neighbor vertices are occupied
Reimplemented from PatrolAgent.
Definition at line 146 of file CBLS_Agent.cpp.
| void CBLS_Agent::processEvents | ( | ) | [virtual] |
Reimplemented from PatrolAgent.
Definition at line 217 of file CBLS_Agent.cpp.
| void CBLS_Agent::receive_results | ( | ) | [virtual] |
Reimplemented from PatrolAgent.
Definition at line 271 of file CBLS_Agent.cpp.
| void CBLS_Agent::send_results | ( | ) | [virtual] |
Reimplemented from PatrolAgent.
Definition at line 258 of file CBLS_Agent.cpp.
bool CBLS_Agent::arrived [private] |
Definition at line 60 of file CBLS_Agent.cpp.
double* CBLS_Agent::avg_idleness [private] |
Definition at line 70 of file CBLS_Agent.cpp.
double* CBLS_Agent::cur_avg_idleness [private] |
Definition at line 71 of file CBLS_Agent.cpp.
long long int CBLS_Agent::decision_number [private] |
Definition at line 68 of file CBLS_Agent.cpp.
uint* CBLS_Agent::destination [private] |
Definition at line 75 of file CBLS_Agent.cpp.
uint CBLS_Agent::hist_dimension [private] |
Definition at line 76 of file CBLS_Agent.cpp.
double* CBLS_Agent::histogram [private] |
Definition at line 73 of file CBLS_Agent.cpp.
bool CBLS_Agent::intention [private] |
Definition at line 63 of file CBLS_Agent.cpp.
uint* CBLS_Agent::node_count [private] |
Definition at line 59 of file CBLS_Agent.cpp.
double CBLS_Agent::now [private] |
Definition at line 69 of file CBLS_Agent.cpp.
int CBLS_Agent::number_of_edges [private] |
Definition at line 66 of file CBLS_Agent.cpp.
int CBLS_Agent::NUMBER_OF_ROBOTS [private] |
Definition at line 57 of file CBLS_Agent.cpp.
double* CBLS_Agent::real_histogram [private] |
Definition at line 72 of file CBLS_Agent.cpp.
reinforcement_learning CBLS_Agent::RL [private] |
Definition at line 67 of file CBLS_Agent.cpp.
int CBLS_Agent::robot_arrived [private] |
Definition at line 62 of file CBLS_Agent.cpp.
int CBLS_Agent::robot_intention [private] |
Definition at line 65 of file CBLS_Agent.cpp.
uint* CBLS_Agent::source [private] |
Definition at line 74 of file CBLS_Agent.cpp.
int* CBLS_Agent::tab_intention [private] |
Definition at line 58 of file CBLS_Agent.cpp.
uint CBLS_Agent::vertex_arrived [private] |
Definition at line 61 of file CBLS_Agent.cpp.
uint CBLS_Agent::vertex_intention [private] |
Definition at line 64 of file CBLS_Agent.cpp.