net.sourceforge.cilib.games.measurement
Class AgentMeasure

java.lang.Object
  extended by net.sourceforge.cilib.games.measurement.AgentMeasure
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AverageItemDistanceMeasure, AveTetrisFeaturesMeasure, SingleAgentMeasure

public abstract class AgentMeasure
extends Object
implements Cloneable

Author:
leo This class measures any game specific features observed by agents during play. This information can be used to describe the game player and/or calculate fitness based on certain game specific requirements.
See Also:
Serialized Form

Constructor Summary
AgentMeasure()
           
AgentMeasure(AgentMeasure other)
           
 
Method Summary
abstract  void clearData()
          Clear all measured data.
abstract  AgentMeasure getClone()
          Create a cloned copy of the current object and return it.
abstract  Type getMeasuredData()
          return the measured data
abstract  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

AgentMeasure

public AgentMeasure()

AgentMeasure

public AgentMeasure(AgentMeasure other)
Method Detail

measure

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

Parameters:
game - the game to measure information from

getMeasuredData

public abstract Type getMeasuredData()
return the measured data

Returns:

clearData

public abstract void clearData()
Clear all measured data.


getClone

public abstract 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
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()


Copyright © 2009 CIRG. All Rights Reserved.