massim.competition2010
Class GridSimulationCowAgent
java.lang.Object
massim.competition2010.GridSimulationCowAgent
- All Implemented Interfaces:
- java.io.Serializable
public class GridSimulationCowAgent
- extends java.lang.Object
- implements java.io.Serializable
This class is used to simulate cows moving at the same time. It contains the cow Movement Algorithm and some
information about the specific cow.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
posx
public int posx
posy
public int posy
oldPosX
public int oldPosX
oldPosY
public int oldPosY
direction
public java.lang.String direction
old_direction
public java.lang.String old_direction
actionDone
public boolean actionDone
ID
public java.lang.String ID
cowTurn
public int cowTurn
GridSimulationCowAgent
public GridSimulationCowAgent()
computerCowMove2
public void computerCowMove2(GridSimulationWorldState state)
calcVec
public double[] calcVec(int x,
int y,
GridSimulationCell cell,
double[] vec,
GridSimulationWorldState state)
weight
public double weight(int max,
GridSimulationCell cell,
GridSimulationWorldState state)
Copyright © 2011. All Rights Reserved.