de.uni_paderborn.robots.robotArenaInterface
Class VirtualRobot

java.lang.Object
  |
  +--de.uni_paderborn.robots.robotArenaInterface.ItemData
        |
        +--de.uni_paderborn.robots.robotArenaInterface.VirtualRobot

public final class VirtualRobot
extends ItemData


This class represents robot.
Every robot has a unique number which robots can use to identify each other.
The "robot" field of RobotData always has the current robot's VirtualRobot on it!


Field Summary
private  int robotID
          
the unique number of the robot
( value not 0 )
 
Constructor Summary
VirtualRobot(int robotID)
          
constructs a VirtualRobot

 
Method Summary
 int getRobotID()
          
returns the robotID

 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

robotID

private int robotID

the unique number of the robot
( value not 0 )
Constructor Detail

VirtualRobot

public VirtualRobot(int robotID)

constructs a VirtualRobot

Parameters:
robotID - unique ID of the robot allocated by the arena
Method Detail

getRobotID

public int getRobotID()

returns the robotID

Returns:
ID of the robot