massim.competition2009
Class GridSimulationWorldState
java.lang.Object
massim.gridsimulations.SimulationWorldState
massim.competition2009.GridSimulationWorldState
- All Implemented Interfaces:
- java.io.Serializable, WorldState
public class GridSimulationWorldState
- extends SimulationWorldState
This class describes the SimulationWorldState.
- See Also:
- Serialized Form
Fields inherited from class massim.gridsimulations.SimulationWorldState |
actionSuccessProbability, currentStep, informationDistortionProbability, maxNumberOfSteps, numberOfAgents, numberOfObstacles, numberOfSteps, simulationName, sizex, sizey, teamName, teamScore, tournamentName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
board
public GridSimulationCell[][] board
numberOfCows
public int numberOfCows
stable1X
public java.lang.Integer[] stable1X
stable1Y
public java.lang.Integer[] stable1Y
stable2X
public java.lang.Integer[] stable2X
stable2Y
public java.lang.Integer[] stable2Y
cowSpeed
public int cowSpeed
agentSpeed
public int agentSpeed
lineOfSight
public int lineOfSight
fogprobability
public int fogprobability
cowPrivateField
public int cowPrivateField
cowSight
public int cowSight
agentWeight
public int agentWeight
cowAttractedWeight
public int cowAttractedWeight
cowScareWeight
public int cowScareWeight
obstacleWeight
public int obstacleWeight
emptyWeight
public int emptyWeight
weight
public double weight
epsilon
public double epsilon
numberOfFences
public int numberOfFences
switchX
public int[] switchX
switchY
public int[] switchY
fenceLength
public int[] fenceLength
fenceDirection
public java.lang.String[] fenceDirection
cows_manager
public java.util.Vector<GridSimulationCowAgent> cows_manager
outputFolder
public java.lang.String outputFolder
GridSimulationWorldState
public GridSimulationWorldState(GridSimulationConfigurationHandCrafted config)
- This constructor is for hand crafted simulations.
- Parameters:
config
-
GridSimulationWorldState
public GridSimulationWorldState(GridSimulationConfiguration config)
- This constructor is for normal simulations.
- Parameters:
config
-
GridSimulationWorldState
public GridSimulationWorldState()
commit
public void commit(GridSimulationWorldState commitState)
- this function copies the board of the parameter state to the board of
this state. It basically just sets agents, cows and obstacle flags.
- Parameters:
commitState
- : state to be copied
Copyright © 2011. All Rights Reserved.