massim.competition2009
Class GridSimulationCowAgent

java.lang.Object
  extended by massim.competition2009.GridSimulationCowAgent
All Implemented Interfaces:
java.io.Serializable

public class GridSimulationCowAgent
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 boolean actionDone
           
 int cowTurn
           
 java.lang.String direction
           
 java.lang.String ID
           
 java.lang.String old_direction
           
 int oldPosX
           
 int oldPosY
           
 int posx
           
 int posy
           
 
Constructor Summary
GridSimulationCowAgent()
           
 
Method Summary
 double[] calcVec(int x, int y, GridSimulationCell cell, double[] vec, GridSimulationWorldState state)
           
 void computeCowMove(GridSimulationWorldState state)
           
 void computerCowMove2(GridSimulationWorldState state)
           
 java.lang.String makeStep(int x, int y, double[] vec, GridSimulationWorldState state)
           
 double weight(int max, GridSimulationCell cell, GridSimulationWorldState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GridSimulationCowAgent

public GridSimulationCowAgent()
Method Detail

computeCowMove

public void computeCowMove(GridSimulationWorldState state)

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)

makeStep

public java.lang.String makeStep(int x,
                                 int y,
                                 double[] vec,
                                 GridSimulationWorldState state)


Copyright © 2012. All Rights Reserved.