net.sourceforge.cilib.games.game.tetris
Class AveTetrisFeaturesMeasure

java.lang.Object
  extended by net.sourceforge.cilib.games.measurement.AgentMeasure
      extended by net.sourceforge.cilib.games.game.tetris.AveTetrisFeaturesMeasure
All Implemented Interfaces:
Serializable, Cloneable

public class AveTetrisFeaturesMeasure
extends AgentMeasure

Author:
leo This is an AgentMeasure that records certain Tetris features after every piece has been placed.
See Also:
Serialized Form

Constructor Summary
AveTetrisFeaturesMeasure()
           
AveTetrisFeaturesMeasure(AveTetrisFeaturesMeasure other)
          Copy constructor
 
Method Summary
 void clearData()
          Clear all measured data.
 AgentMeasure getClone()
          Create a cloned copy of the current object and return it.
 Type getMeasuredData()
          return the measured data
 void measure(Game<GameState> game)
          Measure game specific information and store it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AveTetrisFeaturesMeasure

public AveTetrisFeaturesMeasure()

AveTetrisFeaturesMeasure

public AveTetrisFeaturesMeasure(AveTetrisFeaturesMeasure other)
Copy constructor

Parameters:
other -
Method Detail

clearData

public void clearData()
Clear all measured data.

Specified by:
clearData in class AgentMeasure

getClone

public AgentMeasure getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Specified by:
getClone in class AgentMeasure
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getMeasuredData

public Type getMeasuredData()
return the measured data

Specified by:
getMeasuredData in class AgentMeasure
Returns:

measure

public void measure(Game<GameState> game)
Measure game specific information and store it

Specified by:
measure in class AgentMeasure
Parameters:
game - the game to measure information from


Copyright © 2009 CIRG. All Rights Reserved.