org.pilotix.common
Class Command

java.lang.Object
  extended by org.pilotix.common.Command
All Implemented Interfaces:
Transferable

public class Command
extends java.lang.Object
implements Transferable


Field Summary
 
Fields inherited from interface org.pilotix.common.Transferable
AREA, BALL, COMMAND, INFO, SHIP
 
Constructor Summary
Command()
           
 
Method Summary
 int getAcceleration()
           
 int getBallId()
           
 Angle getDirection()
           
 int getToolId()
           
 void read(MessageHandler mh)
          Met à jour l'objet à partir d'une chaîne d'octets recupéré via un messageHandler
 void set(Command aCommand)
           
 void setAcceleration(int anAcceleration)
           
 void setBallId(int anProjectileId)
           
 void setDirection(Angle aDirection)
           
 void setToolId(int aToolId)
           
 void write(MessageHandler mh)
          envoie des octets représentant l'objet par le bié d'un messageHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

set

public void set(Command aCommand)

setDirection

public void setDirection(Angle aDirection)

setAcceleration

public void setAcceleration(int anAcceleration)

setToolId

public void setToolId(int aToolId)

setBallId

public void setBallId(int anProjectileId)

getDirection

public Angle getDirection()

getAcceleration

public int getAcceleration()

getToolId

public int getToolId()

getBallId

public int getBallId()

read

public void read(MessageHandler mh)
Description copied from interface: Transferable
Met à jour l'objet à partir d'une chaîne d'octets recupéré via un messageHandler

Specified by:
read in interface Transferable

write

public void write(MessageHandler mh)
           throws java.lang.Exception
Description copied from interface: Transferable
envoie des octets représentant l'objet par le bié d'un messageHandler

Specified by:
write in interface Transferable
Throws:
java.lang.Exception


artefarita.com/pilotix Pilotix 2003-2013 - Stilisto : G.C.