Public Member Functions | Private Attributes
CBLS_Agent Class Reference
Inheritance diagram for CBLS_Agent:
Inheritance graph
[legend]

List of all members.

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
uintdestination
uint hist_dimension
double * histogram
bool intention
uintnode_count
double now
int number_of_edges
int NUMBER_OF_ROBOTS
double * real_histogram
reinforcement_learning RL
int robot_arrived
int robot_intention
uintsource
int * tab_intention
uint vertex_arrived
uint vertex_intention

Detailed Description

Definition at line 53 of file CBLS_Agent.cpp.


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 75 of file CBLS_Agent.cpp.

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.

Definition at line 59 of file CBLS_Agent.cpp.

double CBLS_Agent::now [private]

Definition at line 69 of file CBLS_Agent.cpp.

Definition at line 66 of file CBLS_Agent.cpp.

Definition at line 57 of file CBLS_Agent.cpp.

double* CBLS_Agent::real_histogram [private]

Definition at line 72 of file CBLS_Agent.cpp.

Definition at line 67 of file CBLS_Agent.cpp.

Definition at line 62 of file CBLS_Agent.cpp.

Definition at line 65 of file CBLS_Agent.cpp.

Definition at line 74 of file CBLS_Agent.cpp.

int* CBLS_Agent::tab_intention [private]

Definition at line 58 of file CBLS_Agent.cpp.

Definition at line 61 of file CBLS_Agent.cpp.

Definition at line 64 of file CBLS_Agent.cpp.


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


patrolling_sim
Author(s):
autogenerated on Mon Oct 2 2017 03:13:50