Enki::AsebaFeedableEPuck Class Reference

Inheritance diagram for Enki::AsebaFeedableEPuck:
Inheritance graph
[legend]

List of all members.

Classes

struct  Variables

Public Member Functions

 AsebaFeedableEPuck (int id)
 AsebaFeedableEPuck (int id)
void connectionClosed (Dashel::Stream *stream, bool abnormal)
void connectionCreated (Dashel::Stream *stream)
void controlStep (double dt)
void controlStep (double dt)
void incomingData (Dashel::Stream *stream)
double toDoubleClamp (sint16 val, double mul, double min, double max)
double toDoubleClamp (sint16 val, double mul, double min, double max)
virtual ~AsebaFeedableEPuck ()
virtual ~AsebaFeedableEPuck ()

Public Attributes

std::valarray< unsigned short > bytecode
int joystick
std::valarray< uint8lastMessageData
uint16 lastMessageSource
int port
std::valarray< signed short > stack
Dashel::Streamstream
struct
Enki::AsebaFeedableEPuck::Variables 
variables
AsebaVMState vm

Detailed Description

Definition at line 155 of file challenge.cpp.


Constructor & Destructor Documentation

Enki::AsebaFeedableEPuck::AsebaFeedableEPuck ( int  id  )  [inline]

Definition at line 196 of file challenge.cpp.

virtual Enki::AsebaFeedableEPuck::~AsebaFeedableEPuck (  )  [inline, virtual]

Definition at line 230 of file challenge.cpp.

Enki::AsebaFeedableEPuck::AsebaFeedableEPuck ( int  id  )  [inline]

Definition at line 221 of file playground.cpp.

virtual Enki::AsebaFeedableEPuck::~AsebaFeedableEPuck (  )  [inline, virtual]

Definition at line 242 of file playground.cpp.


Member Function Documentation

void Enki::AsebaFeedableEPuck::connectionClosed ( Dashel::Stream ,
bool   
) [inline, virtual]

Called when target closes connection. The only valid method to call on the stream is getTargetName(), input/output operations are forbidden. You must not call closeStream(stream) from within this method for the same stream as the one passed as parameter. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target.
abnormal whether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true)

Reimplemented from Dashel::Hub.

Definition at line 265 of file challenge.cpp.

void Enki::AsebaFeedableEPuck::connectionCreated ( Dashel::Stream  )  [inline, virtual]

Called when any data connection is created. It is not called when a listening connection (eg tcpin:) is created. If the stream is closed during this method, an exception occurs: the caller is responsible to handle it. The stream is already inserted in the stream list when this function is called. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 236 of file challenge.cpp.

void Enki::AsebaFeedableEPuck::controlStep ( double  dt  )  [inline, virtual]

Reimplemented from Enki::FeedableEPuck.

Definition at line 258 of file playground.cpp.

void Enki::AsebaFeedableEPuck::controlStep ( double  dt  )  [inline, virtual]

Reimplemented from Enki::FeedableEPuck.

Definition at line 289 of file challenge.cpp.

void Enki::AsebaFeedableEPuck::incomingData ( Dashel::Stream  )  [inline, virtual]

Called when data is available for reading on the stream. If the stream is closed during this method, an exception occurs: Hub stops the execution of this method and calls connectionClosed(); objects dynamically allocated must thus be handled with auto_ptr. If step() is used, subclass must implement this method and call read at least once. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 251 of file challenge.cpp.

double Enki::AsebaFeedableEPuck::toDoubleClamp ( sint16  val,
double  mul,
double  min,
double  max 
) [inline]

Definition at line 248 of file playground.cpp.

double Enki::AsebaFeedableEPuck::toDoubleClamp ( sint16  val,
double  mul,
double  min,
double  max 
) [inline]

Definition at line 279 of file challenge.cpp.


Member Data Documentation

std::valarray< unsigned short > Enki::AsebaFeedableEPuck::bytecode

Definition at line 160 of file challenge.cpp.

Definition at line 198 of file playground.cpp.

Definition at line 193 of file challenge.cpp.

Definition at line 192 of file challenge.cpp.

Definition at line 190 of file challenge.cpp.

std::valarray< signed short > Enki::AsebaFeedableEPuck::stack

Definition at line 161 of file challenge.cpp.

Definition at line 158 of file challenge.cpp.

Definition at line 159 of file challenge.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:17 2011