Homepage Demos Overview Downloads Tutorials Reference
Credits

EStopControllerBehavior Class Reference

#include <EStopControllerBehavior.h>

Inheritance diagram for EStopControllerBehavior:

Inheritance graph
[legend]
List of all members.

Detailed Description

Listens to control commands coming in from the command port for remotely controlling the head.

Definition at line 14 of file EStopControllerBehavior.h.

Public Member Functions

 EStopControllerBehavior (MotionManager::MC_ID estop)
 constructor

virtual ~EStopControllerBehavior ()
 destructor

virtual void DoStart ()
 By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.

virtual void DoStop ()
 By default, subtracts from the reference counter (RemoveReference()), and thus may deletex if zero; Don't forget to still call this when you override this; Warning: call this at the end of your DoStop(), not beginning (it might delete this ).

virtual void processEvent (const EventBase &)
 By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

virtual std::string getName () const
 Identifies the behavior in menus and such.

virtual void runCommand (const std::string &s)
 processes a string received from wireless


Static Public Member Functions

int callback (char *buf, int bytes)
 called by wireless when there's new data

std::string getClassDescription ()
 Gives a short description of what this class of behaviors does... you should override this (but don't have to).


Static Public Attributes

EStopControllerBehaviortheOne = NULL

Protected Attributes

Socketcmdsock
 The input command stream socket.

MotionManager::MC_ID estop_id
 The estop to control.


Private Member Functions

 EStopControllerBehavior (const EStopControllerBehavior &)
 don't call

EStopControllerBehavior operator= (const EStopControllerBehavior &)
 don't call


Constructor & Destructor Documentation

EStopControllerBehavior::EStopControllerBehavior MotionManager::MC_ID  estop  )  [inline]
 

constructor

Definition at line 25 of file EStopControllerBehavior.h.

virtual EStopControllerBehavior::~EStopControllerBehavior  )  [inline, virtual]
 

destructor

Definition at line 33 of file EStopControllerBehavior.h.

EStopControllerBehavior::EStopControllerBehavior const EStopControllerBehavior  )  [private]
 

don't call


Member Function Documentation

int EStopControllerBehavior::callback char *  buf,
int  bytes
[static]
 

called by wireless when there's new data

Definition at line 56 of file EStopControllerBehavior.cc.

Referenced by DoStart().

void EStopControllerBehavior::DoStart  )  [virtual]
 

By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.

Reimplemented from BehaviorBase.

Definition at line 7 of file EStopControllerBehavior.cc.

void EStopControllerBehavior::DoStop  )  [virtual]
 

By default, subtracts from the reference counter (RemoveReference()), and thus may deletex if zero; Don't forget to still call this when you override this; Warning: call this at the end of your DoStop(), not beginning (it might delete this ).

Reimplemented from BehaviorBase.

Definition at line 19 of file EStopControllerBehavior.cc.

std::string EStopControllerBehavior::getClassDescription  )  [inline, static]
 

Gives a short description of what this class of behaviors does... you should override this (but don't have to).

Reimplemented from BehaviorBase.

Definition at line 44 of file EStopControllerBehavior.h.

virtual std::string EStopControllerBehavior::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 43 of file EStopControllerBehavior.h.

EStopControllerBehavior EStopControllerBehavior::operator= const EStopControllerBehavior  )  [private]
 

don't call

void EStopControllerBehavior::processEvent const EventBase e  )  [virtual]
 

By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Reimplemented from BehaviorBase.

Definition at line 47 of file EStopControllerBehavior.cc.

void EStopControllerBehavior::runCommand const std::string &  s  )  [virtual]
 

processes a string received from wireless

Definition at line 29 of file EStopControllerBehavior.cc.

Referenced by callback().


Member Data Documentation

Socket* EStopControllerBehavior::cmdsock [protected]
 

The input command stream socket.

Definition at line 54 of file EStopControllerBehavior.h.

Referenced by DoStart(), DoStop(), EStopControllerBehavior(), processEvent(), and runCommand().

MotionManager::MC_ID EStopControllerBehavior::estop_id [protected]
 

The estop to control.

Definition at line 57 of file EStopControllerBehavior.h.

Referenced by EStopControllerBehavior(), and runCommand().

EStopControllerBehavior * EStopControllerBehavior::theOne = NULL [static]
 

Points to the one EStopControllerBehavior object that the input command stream is talking to. A kludge. Dunno how you're gonna make sure you're not using this uninitialized.

Definition at line 5 of file EStopControllerBehavior.cc.

Referenced by callback(), EStopControllerBehavior(), and ~EStopControllerBehavior().


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

Tekkotsu v2.1
Generated Tue Mar 16 23:22:06 2004 by Doxygen 1.3.5