javaclient.structures
Class PlayerDeviceIdT

java.lang.Object
  extended by javaclient.structures.PlayerDeviceIdT

public class PlayerDeviceIdT
extends java.lang.Object

Devices are differentiated internally in Player by these identifiers, and some messages contain them.
(see the player_device_id structure from player.h)

Version:
Author:
Maxim A. Batalin & Radu Bogdan Rusu

Constructor Summary
PlayerDeviceIdT()
           
 
Method Summary
 short getCode()
           
 short getIndex()
           
 short getPort()
           
 void setCode(short newcode)
           
 void setIndex(short newindex)
           
 void setPort(short newport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerDeviceIdT

public PlayerDeviceIdT()
Method Detail

getCode

public short getCode()
Returns:
the interface provided by the device

setCode

public void setCode(short newcode)
Parameters:
newcode - interface provided by the device

getIndex

public short getIndex()
Returns:
the index of the device

setIndex

public void setIndex(short newindex)
Parameters:
newindex - index of the device

getPort

public short getPort()
Returns:
the TCP port of the device

setPort

public void setPort(short newport)
Parameters:
newport - TCP port of the device