org.agent
Class WorldData

java.lang.Object
  extended by org.agent.WorldData

public class WorldData
extends java.lang.Object


Constructor Summary
WorldData()
           
 
Method Summary
 int agentID()
           
 Vector ball()
           
 int blueScore()
           
 Vector bottomCenter()
           
 Vector bottomLeftCorner()
           
 Vector bottomLeftGoal()
           
 Vector bottomLeftPole()
           
 Vector bottomLeftSmallArea()
           
 Vector bottomRightCorner()
           
 Vector bottomRightGoal()
           
 Vector bottomRightPole()
           
 Vector bottomRightSmallArea()
           
static AgentState getAgentState(org.util.xml.element.TagElement tag)
           
static AgentState getAgentStateByID(org.util.xml.element.TagElement[] tags, java.lang.String id)
           
static double getDouble(org.util.xml.element.TagElement tag, java.lang.String key)
           
static int getInt(org.util.xml.element.TagElement tag, java.lang.String key)
           
static Vector getVector(org.util.xml.element.TagElement tag)
           
static Vector getVectorByID(org.util.xml.element.TagElement[] tags, java.lang.String id)
           
 int maxAgent()
           
 Vector me()
           
 Vector middleCenter()
           
 java.lang.String nickname()
           
 AgentState opponent(int id)
          1,2,3...max
 AgentState[] opponents()
           
 java.lang.String playMode()
           
static double roundDeg(double deg)
           
 java.lang.String status()
           
 AgentState teamMate(int id)
          1,2,3...max except me.
 AgentState[] teamMates()
           
 double time()
           
 Vector topCenter()
           
 Vector topLeftCorner()
           
 Vector topLeftGoal()
           
 Vector topLeftPole()
           
 Vector topLeftSmallArea()
           
 Vector topRightCorner()
           
 Vector topRightGoal()
           
 Vector topRightPole()
           
 Vector topRightSmallArea()
           
 void update(org.util.xml.element.TagElement world_data)
           
 int yellowScore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldData

public WorldData()
Method Detail

time

public double time()

agentID

public int agentID()

nickname

public java.lang.String nickname()

status

public java.lang.String status()

maxAgent

public int maxAgent()

playMode

public java.lang.String playMode()

yellowScore

public int yellowScore()

blueScore

public int blueScore()

ball

public Vector ball()

teamMates

public AgentState[] teamMates()

opponents

public AgentState[] opponents()

teamMate

public AgentState teamMate(int id)
1,2,3...max except me.


opponent

public AgentState opponent(int id)
1,2,3...max


topLeftPole

public Vector topLeftPole()

bottomLeftPole

public Vector bottomLeftPole()

topRightPole

public Vector topRightPole()

bottomRightPole

public Vector bottomRightPole()

topLeftCorner

public Vector topLeftCorner()

bottomLeftCorner

public Vector bottomLeftCorner()

topRightCorner

public Vector topRightCorner()

bottomRightCorner

public Vector bottomRightCorner()

topLeftGoal

public Vector topLeftGoal()

bottomLeftGoal

public Vector bottomLeftGoal()

topRightGoal

public Vector topRightGoal()

bottomRightGoal

public Vector bottomRightGoal()

topLeftSmallArea

public Vector topLeftSmallArea()

bottomLeftSmallArea

public Vector bottomLeftSmallArea()

topRightSmallArea

public Vector topRightSmallArea()

bottomRightSmallArea

public Vector bottomRightSmallArea()

middleCenter

public Vector middleCenter()

topCenter

public Vector topCenter()

bottomCenter

public Vector bottomCenter()

me

public Vector me()

update

public void update(org.util.xml.element.TagElement world_data)
            throws java.lang.Exception
Throws:
java.lang.Exception

getInt

public static int getInt(org.util.xml.element.TagElement tag,
                         java.lang.String key)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getDouble

public static double getDouble(org.util.xml.element.TagElement tag,
                               java.lang.String key)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getVectorByID

public static Vector getVectorByID(org.util.xml.element.TagElement[] tags,
                                   java.lang.String id)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getVector

public static Vector getVector(org.util.xml.element.TagElement tag)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getAgentStateByID

public static AgentState getAgentStateByID(org.util.xml.element.TagElement[] tags,
                                           java.lang.String id)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getAgentState

public static AgentState getAgentState(org.util.xml.element.TagElement tag)
                                throws java.lang.Exception
Throws:
java.lang.Exception

roundDeg

public static double roundDeg(double deg)