javaclient2.structures
Class PlayerDevAddr

java.lang.Object
  extended by javaclient2.structures.PlayerDevAddr

public class PlayerDevAddr
extends java.lang.Object

Devices are identified by 12-byte addresses of this form. Some of the fields are transport-dependent in their intepretation. (see the player_devaddr structure from player.h)

Version:
Author:
Radu Bogdan Rusu

Field Summary
static int PLAYER_DEVADDR_SIZE
           
static int PLAYERXDR_DEVADDR_SIZE
           
 
Constructor Summary
PlayerDevAddr()
           
 
Method Summary
 int getHost()
           
 short getIndex()
           
 short getInterf()
           
 int getRobot()
           
 void setHost(int newhost)
           
 void setIndex(int newindex)
           
 void setInterf(int newinterf)
           
 void setRobot(int newrobot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYERXDR_DEVADDR_SIZE

public static final int PLAYERXDR_DEVADDR_SIZE
See Also:
Constant Field Values

PLAYER_DEVADDR_SIZE

public static final int PLAYER_DEVADDR_SIZE
See Also:
Constant Field Values
Constructor Detail

PlayerDevAddr

public PlayerDevAddr()
Method Detail

getHost

public int getHost()
Returns:
The "host" on which the device resides

setHost

public void setHost(int newhost)
Parameters:
newhost - The "host" on which the device resides

getRobot

public int getRobot()
Returns:
The "robot" or device collection in which the device resides

setRobot

public void setRobot(int newrobot)
Parameters:
newrobot - The "robot" or device collection in which the device resides

getInterf

public short getInterf()
Returns:
The interface provided by the device; must be one of PLAYER_*_CODE

setInterf

public void setInterf(int newinterf)
Parameters:
newinterf - The interface provided by the device; must be one of PLAYER_*_CODE

getIndex

public short getIndex()
Returns:
Which device of that interface

setIndex

public void setIndex(int newindex)
Parameters:
newindex - Which device of that interface