uk.ac.ed.inf.sdp2012.group7.strategy.planning
Class AllStaticObjects

java.lang.Object
  extended by uk.ac.ed.inf.sdp2012.group7.strategy.planning.AllStaticObjects

public class AllStaticObjects
extends java.lang.Object

Author:
s0955088 This class holds all static elements required for planning including the grid setup, the grid is used in A* planning It also contains the commands for running the Planning thread

Field Summary
static org.apache.log4j.Logger logger
           
 WorldState worldState
           
 
Constructor Summary
AllStaticObjects()
           
 
Method Summary
 double convertDoubleToNode(double d)
           
 Node convertToNode(java.awt.Point p)
           
 java.util.ArrayList<Node> convertToNodes(java.util.ArrayList<java.awt.Point> l)
           
 double getAngleConstant()
           
 double getBoundary()
           
 Node getCentreOfOurGoal()
           
 Node getCentreOfTheirGoal()
           
 double getCentreToEndOfKicker()
           
 double getDeceleration()
           
 double getDt()
           
 int getHeight()
           
 Node getInFrontOfOurGoal()
           
 Node getInFrontOfTheirGoal()
           
 double getLineConstant()
           
 double getNodeHeightInPixels()
           
 double getNodeWidthInPixels()
           
 int getPitchBottomBuffer()
           
 int getPitchHeight()
           
 int getPitchLeftBuffer()
           
 int getPitchRightBuffer()
           
 int getPitchTopBuffer()
           
 int getPitchWidth()
           
 int getPlanType()
           
 double getRobotWidthInNodes()
           
 boolean getRunFlag()
           
 Node getTheirBottomGoalPost()
           
 java.util.ArrayList<Node> getTheirGoalNodes()
           
 Node getTheirTopGoalPost()
           
 int getWidth()
           
 void setPlanType(int pT)
           
 void startRun()
           
 void stopRun()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

worldState

public WorldState worldState
Constructor Detail

AllStaticObjects

public AllStaticObjects()
Method Detail

convertDoubleToNode

public double convertDoubleToNode(double d)

convertToNode

public Node convertToNode(java.awt.Point p)

convertToNodes

public java.util.ArrayList<Node> convertToNodes(java.util.ArrayList<java.awt.Point> l)

getNodeWidthInPixels

public double getNodeWidthInPixels()

getNodeHeightInPixels

public double getNodeHeightInPixels()

getPitchTopBuffer

public int getPitchTopBuffer()

getPitchLeftBuffer

public int getPitchLeftBuffer()

getHeight

public int getHeight()

getWidth

public int getWidth()

getRobotWidthInNodes

public double getRobotWidthInNodes()

getBoundary

public double getBoundary()

getTheirTopGoalPost

public Node getTheirTopGoalPost()

getTheirBottomGoalPost

public Node getTheirBottomGoalPost()

getInFrontOfOurGoal

public Node getInFrontOfOurGoal()

getInFrontOfTheirGoal

public Node getInFrontOfTheirGoal()

getCentreOfTheirGoal

public Node getCentreOfTheirGoal()

getCentreOfOurGoal

public Node getCentreOfOurGoal()

getPlanType

public int getPlanType()

setPlanType

public void setPlanType(int pT)

stopRun

public void stopRun()

startRun

public void startRun()

getRunFlag

public boolean getRunFlag()

getPitchHeight

public int getPitchHeight()

getPitchWidth

public int getPitchWidth()

getDeceleration

public double getDeceleration()

getDt

public double getDt()

getPitchBottomBuffer

public int getPitchBottomBuffer()

getPitchRightBuffer

public int getPitchRightBuffer()

getCentreToEndOfKicker

public double getCentreToEndOfKicker()

getTheirGoalNodes

public java.util.ArrayList<Node> getTheirGoalNodes()

getAngleConstant

public double getAngleConstant()

getLineConstant

public double getLineConstant()