Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CommandPkg Class Reference

Implementa il messaggio di comando.
Permette di spedire ad un Aibo un comando di movimento, movimento sia per le zampe sia per la testa.
Struttura: oltre all'header standard e' composto da:
commandType [1byte]= tipo di comando: 1 se per le zampe, 0 se per la testa.
command [8byte]=stringa contenente il comando.
when [4byte]=quando eseguire il comando, in tempo assoluto.
. More...

#include <CommandPkg.h>

Inheritance diagram for CommandPkg:

TelepatiPkg List of all members.

Public Member Functions

 CommandPkg (int a, const char command[8], const SystemTime &when, typeOfCommand cmdType, bool ack)
 Costruttore ordinario.
 CommandPkg (byte *ptr)
 Costruisce l'oggetto a partire dall'array restituito da getMsg().
virtual ~CommandPkg ()
 Distruttore di Default.
virtual TelepatiPkgclone ()
 Clonatore.
byte * getMsg ()
 Ritorna un array che rappresenta l'oggetto.
typeOfCommand getTypeOfCommand ()
 Tipo di comando.
const char * getCommand ()
 Comando da eseguire.
SystemTime whenExecuteCommand ()
 Quando eseguire il comando.

Protected Attributes

typeOfCommand _cmdType
 Tipo di comando.
char _command [8]
 Comando da spedire.
longword seconds
 Quando eseguire il comando.
longword useconds
 Quando eseguire il comando.

Detailed Description

Implementa il messaggio di comando.
Permette di spedire ad un Aibo un comando di movimento, movimento sia per le zampe sia per la testa.
Struttura: oltre all'header standard e' composto da:
commandType [1byte]= tipo di comando: 1 se per le zampe, 0 se per la testa.
command [8byte]=stringa contenente il comando.
when [4byte]=quando eseguire il comando, in tempo assoluto.
.


Constructor & Destructor Documentation

CommandPkg::CommandPkg int  a,
const char  command[8],
const SystemTime &  when,
typeOfCommand  cmdType,
bool  ack
 

Costruttore ordinario.

Parameters:
a aibo di destinazione.
command comando da spedire.
when quando eseguire il comando.
cmdType tipo di comando (zampe o testa)
See also:
typeOfCommand.
Parameters:
ack se richiede o meno l'ack

CommandPkg::CommandPkg byte *  ptr  ) 
 

Costruisce l'oggetto a partire dall'array restituito da getMsg().

Parameters:
ptr puntatore all'array di byte.
See also:
getMsg()


Member Function Documentation

TelepatiPkg * CommandPkg::clone  )  [virtual]
 

Clonatore.

Restituisce un clone dell'oggetto su cui e' chiamato.

Implements TelepatiPkg.

const char* CommandPkg::getCommand  )  [inline]
 

Comando da eseguire.

Returns:
una stringa rappresentante il comando da eseguire e da mandare a.

stringa raprresentante il comando da eseguire.

byte * CommandPkg::getMsg  )  [virtual]
 

Ritorna un array che rappresenta l'oggetto.

Costruisce un array che rappresenta l'oggetto, l'array corrisponde ai dati spediti via rete.

Returns:
array di byte.
See also:
CommandPkg(byte* ptr)

Implements TelepatiPkg.

typeOfCommand CommandPkg::getTypeOfCommand  )  [inline]
 

Tipo di comando.

Da informazioni sul tipo di comando spedito, se il comando è per le zampe o per la testa.

Returns:
tipo di comando.
See also:
typeOfCommand

SystemTime CommandPkg::whenExecuteCommand  )  [inline]
 

Quando eseguire il comando.

Da informazioni su quando eseguire il comando.

Returns:
tempo assoluto in cui eseguire il comando.


Member Data Documentation

typeOfCommand CommandPkg::_cmdType [protected]
 

Tipo di comando.

LEGS se per le zampe, HEAD se per la testa

longword CommandPkg::seconds [protected]
 

Quando eseguire il comando.

I Secondi in Tempo assoluto

longword CommandPkg::useconds [protected]
 

Quando eseguire il comando.

I microsecondi in Tempo assoluto


The documentation for this class was generated from the following files:
Generated on Thu Jun 23 16:51:17 2005 for Packages_Library by  doxygen 1.3.9.1