massim.competition2009
Class GridSimulationWorldState

java.lang.Object
  extended by massim.gridsimulations.SimulationWorldState
      extended by massim.competition2009.GridSimulationWorldState
All Implemented Interfaces:
java.io.Serializable, WorldState

public class GridSimulationWorldState
extends SimulationWorldState

This class describes the SimulationWorldState.

See Also:
Serialized Form

Field Summary
 int agentSpeed
           
 int agentWeight
           
 GridSimulationCell[][] board
           
 int cowAttractedWeight
           
 int cowPrivateField
           
 java.util.Vector<GridSimulationCowAgent> cows_manager
           
 int cowScareWeight
           
 int cowSight
           
 int cowSpeed
           
 int emptyWeight
           
 double epsilon
           
 java.lang.String[] fenceDirection
           
 int[] fenceLength
           
 int fogprobability
           
 int lineOfSight
           
 int numberOfCows
           
 int numberOfFences
           
 int obstacleWeight
           
 java.lang.String outputFolder
           
 java.lang.Integer[] stable1X
           
 java.lang.Integer[] stable1Y
           
 java.lang.Integer[] stable2X
           
 java.lang.Integer[] stable2Y
           
 int[] switchX
           
 int[] switchY
           
 double weight
           
 
Fields inherited from class massim.gridsimulations.SimulationWorldState
actionSuccessProbability, currentStep, informationDistortionProbability, maxNumberOfSteps, numberOfAgents, numberOfObstacles, numberOfSteps, simulationName, sizex, sizey, teamName, teamScore, tournamentName
 
Constructor Summary
GridSimulationWorldState()
           
GridSimulationWorldState(GridSimulationConfiguration config)
          This constructor is for normal simulations.
GridSimulationWorldState(GridSimulationConfigurationHandCrafted config)
          This constructor is for hand crafted simulations.
 
Method Summary
 void commit(GridSimulationWorldState commitState)
          this function copies the board of the parameter state to the board of this state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

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()
Method Detail

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 © 2012. All Rights Reserved.