Qualia  0.2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OscAgent Class Referenceabstract

#include <OscAgent.h>

Inheritance diagram for OscAgent:
Inheritance graph
[legend]
Collaboration diagram for OscAgent:
Collaboration graph
[legend]

Public Member Functions

 OscAgent (int id, int observationDim, int actionDim, int observationBufferDim)
 
virtual ~OscAgent ()
 
char * getPath (const char *path)
 
virtual void init ()
 Initializes the agent. More...
 
virtual Actionstart (const Observation *observation)
 Chooses the first action in the episode. More...
 
virtual Actionstep (const Observation *observation)
 Performs an episode step. More...
 
virtual ActionreadAction (action_dim_t *buffer)=0
 
- Public Member Functions inherited from Agent
virtual ~Agent ()
 
virtual void end (const Observation *observation)
 Performs the last episode step. More...
 
virtual void save (XFile *file)
 Saves the agent. More...
 
virtual void load (XFile *file)
 Loads an agent. More...
 

Static Public Member Functions

static int handlerInit (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
 
static int handlerStartStep (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
 

Public Attributes

int id
 
int observationDim
 
int actionDim
 
int observationBufferDim
 
action_dim_tactionBuffer
 
volatile bool locked
 
char actionTypes [100]
 

Constructor & Destructor Documentation

OscAgent::OscAgent ( int  id,
int  observationDim,
int  actionDim,
int  observationBufferDim 
)
OscAgent::~OscAgent ( )
virtual

Member Function Documentation

char * OscAgent::getPath ( const char *  path)
int OscAgent::handlerInit ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)
static
int OscAgent::handlerStartStep ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)
static
void OscAgent::init ( )
virtual

Initializes the agent.

Reimplemented from Agent.

virtual Action* OscAgent::readAction ( action_dim_t buffer)
pure virtual

Implemented in OscBasicAgent.

Action * OscAgent::start ( const Observation observation)
virtual

Chooses the first action in the episode.

Implements Agent.

Action * OscAgent::step ( const Observation observation)
virtual

Performs an episode step.

Implements Agent.

Member Data Documentation

action_dim_t* OscAgent::actionBuffer
int OscAgent::actionDim
char OscAgent::actionTypes[100]
int OscAgent::id
volatile bool OscAgent::locked
int OscAgent::observationBufferDim
int OscAgent::observationDim

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