Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rovsoft::main::Rovsoft Class Reference

#include <Rovsoft.hh>

Inheritance diagram for rovsoft::main::Rovsoft:

Inheritance graph
[legend]
Collaboration diagram for rovsoft::main::Rovsoft:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Rovsoft (const char *robotInt, const char *picInt, const char *server_address, unsigned short port)
 The constructor for creating a rovsoft object.
virtual void newNConfirmedCommandSender (messages::NConfirmedCommandMessageSenderInterface &sender)
 Should be invoked when a new NConfirmedCommandSender device was created.
virtual void newTsUByteTypeSender (messages::TsUByteTypeMessageSenderInterface &sender)
 Sets the TsUByteTypeReceiverContainer as message receiver.
virtual void newTsFloatTypeSender (messages::TsFloatTypeMessageSenderInterface &sender)
 Should be invoked when a new TsFloatTypeSender device was created.
void run ()
 This method sends init messages through the interfaces in a periodic intervall.

Protected Member Functions

io::SegmentIOStreamergetRobotStream ()
io::SegmentIOStreamergetPICStream ()
io::IOStreamergetServerStream ()
io::SegmentIOStreamergetRS232Stream (std::string &filename, unsigned long baudrate, ost::Serial::Flow control, ost::Serial::Parity parity, int data_bits, int stop_bits, const char *prefix_preamble, unsigned char len_pos, bool is_PIC=false)
 Returns a SegmentIOStreamer initialized with a BinaryLenSegmentIOStreamer using a Serial stream.
io::IOStreamergetTCPClientStream (std::string &address, unsigned short port)
 Get a new IOStreamer connected to a TCPStream, (defined in common c++).

Protected Attributes

CommandTranslator cTranslator
SensorWatcher sWatcher
CriticalEventFilter ceFilter
io::NConfirmedCommandSenderContainer nccsContainer
io::MotionCommandReceiverContainer mcrContainer
io::BoolCommandReceiverContainer bcrContainer
io::TsUByteTypeSenderContainer tsubtsContainer
io::TsUByteTypeReceiverContainer tsubtrContainer
io::TsFloatTypeSenderContainer tsftsContainer
io::PeripheralReceiverContainer prContainer
io::PowerDownEventReceiverContainer pderContainer
io::DeviceManager manager
 The device manager.
std::string robotDeviceFile
 The interface for the communication with the robot board.
io::FlowController robotBoardInterface
io::TCPServer controlInterface
std::string picDeviceFile
io::FlowController picInterface
 The interface for the communication with the energy management PIC.
std::string serverAddress
unsigned short serverPort
io::SimpleMessageStreamer serverInterface
 The interface for the communication with the server.

Constructor & Destructor Documentation

rovsoft::main::Rovsoft::Rovsoft const char *  robotInt,
const char *  picInt,
const char *  server_address,
unsigned short  port
 

The constructor for creating a rovsoft object.

Parameters:
robotInt The device file on which the robot board is connected to.
picInt The device file on which the pic is connected to.
server_address The ip address of the server.
port The port on which the server listens for incoming connections.

Here is the call graph for this function:


Member Function Documentation

io::SegmentIOStreamer* rovsoft::main::Rovsoft::getPICStream  )  [inline, protected]
 

Here is the call graph for this function:

io::SegmentIOStreamer* rovsoft::main::Rovsoft::getRobotStream  )  [inline, protected]
 

Here is the call graph for this function:

io::SegmentIOStreamer * rovsoft::main::Rovsoft::getRS232Stream std::string &  filename,
unsigned long  baudrate,
ost::Serial::Flow  control,
ost::Serial::Parity  parity,
int  data_bits,
int  stop_bits,
const char *  prefix_preamble,
unsigned char  len_pos,
bool  is_PIC = false
[protected]
 

Returns a SegmentIOStreamer initialized with a BinaryLenSegmentIOStreamer using a Serial stream.

The parameters are the settings for the stream and the streamer.

Todo:
make all the parameters of setting the interfaces, also the file itself configureable via a config file.

io::IOStreamer* rovsoft::main::Rovsoft::getServerStream  )  [inline, protected]
 

Here is the call graph for this function:

io::IOStreamer * rovsoft::main::Rovsoft::getTCPClientStream std::string &  address,
unsigned short  port
[protected]
 

Get a new IOStreamer connected to a TCPStream, (defined in common c++).

Parameters:
address The address, or the dns name of the server.
port The port on the server to which connect.
buff_size The size of the io buffer.

void rovsoft::main::Rovsoft::newNConfirmedCommandSender messages::NConfirmedCommandMessageSenderInterface sender  )  [virtual]
 

Should be invoked when a new NConfirmedCommandSender device was created.

Parameters:
sender the new NConfirmedCommandMessageSender that has been created.

Implements rovsoft::messages::NewNConfirmedCommandSenderListener.

Here is the call graph for this function:

void rovsoft::main::Rovsoft::newTsFloatTypeSender messages::TsFloatTypeMessageSenderInterface sender  )  [virtual]
 

Should be invoked when a new TsFloatTypeSender device was created.

Parameters:
sender the new Float Type sender device that has been created.

Implements rovsoft::messages::NewTsFloatTypeSenderListener.

Here is the call graph for this function:

void rovsoft::main::Rovsoft::newTsUByteTypeSender messages::TsUByteTypeMessageSenderInterface sender  )  [virtual]
 

Sets the TsUByteTypeReceiverContainer as message receiver.

Todo:
Implement this method not being a pfush.

Implements rovsoft::messages::NewTsUByteTypeSenderListener.

Here is the call graph for this function:

void rovsoft::main::Rovsoft::run  ) 
 

This method sends init messages through the interfaces in a periodic intervall.

Here is the call graph for this function:


Member Data Documentation

io::BoolCommandReceiverContainer rovsoft::main::Rovsoft::bcrContainer [protected]
 

CriticalEventFilter rovsoft::main::Rovsoft::ceFilter [protected]
 

io::TCPServer rovsoft::main::Rovsoft::controlInterface [protected]
 

CommandTranslator rovsoft::main::Rovsoft::cTranslator [protected]
 

io::DeviceManager rovsoft::main::Rovsoft::manager [protected]
 

The device manager.

io::MotionCommandReceiverContainer rovsoft::main::Rovsoft::mcrContainer [protected]
 

io::NConfirmedCommandSenderContainer rovsoft::main::Rovsoft::nccsContainer [protected]
 

io::PowerDownEventReceiverContainer rovsoft::main::Rovsoft::pderContainer [protected]
 

std::string rovsoft::main::Rovsoft::picDeviceFile [protected]
 

io::FlowController rovsoft::main::Rovsoft::picInterface [protected]
 

The interface for the communication with the energy management PIC.

io::PeripheralReceiverContainer rovsoft::main::Rovsoft::prContainer [protected]
 

io::FlowController rovsoft::main::Rovsoft::robotBoardInterface [protected]
 

std::string rovsoft::main::Rovsoft::robotDeviceFile [protected]
 

The interface for the communication with the robot board.

std::string rovsoft::main::Rovsoft::serverAddress [protected]
 

io::SimpleMessageStreamer rovsoft::main::Rovsoft::serverInterface [protected]
 

The interface for the communication with the server.

unsigned short rovsoft::main::Rovsoft::serverPort [protected]
 

SensorWatcher rovsoft::main::Rovsoft::sWatcher [protected]
 

io::TsFloatTypeSenderContainer rovsoft::main::Rovsoft::tsftsContainer [protected]
 

io::TsUByteTypeReceiverContainer rovsoft::main::Rovsoft::tsubtrContainer [protected]
 

io::TsUByteTypeSenderContainer rovsoft::main::Rovsoft::tsubtsContainer [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue May 31 14:19:57 2005 for Rovsoft by  doxygen 1.4.3