net.sourceforge.cilib.games.measurement
Class SingleAgentMeasure

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

public abstract class SingleAgentMeasure
extends AgentMeasure

This defines an AgentMeasure that only records information for a specified Agent As specified by the given GameToken

Author:
leo
See Also:
Serialized Form

Constructor Summary
SingleAgentMeasure()
           
SingleAgentMeasure(Enum itemToken)
           
SingleAgentMeasure(SingleAgentMeasure other)
           
 
Method Summary
abstract  SingleAgentMeasure getClone()
          Create a cloned copy of the current object and return it.
 Enum getItemToken()
           
 void setItemToken(Enum itemToken)
           
 
Methods inherited from class net.sourceforge.cilib.games.measurement.AgentMeasure
clearData, getMeasuredData, measure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleAgentMeasure

public SingleAgentMeasure()

SingleAgentMeasure

public SingleAgentMeasure(Enum itemToken)

SingleAgentMeasure

public SingleAgentMeasure(SingleAgentMeasure other)
Method Detail

getItemToken

public Enum getItemToken()

setItemToken

public void setItemToken(Enum itemToken)

getClone

public abstract SingleAgentMeasure 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()


Copyright © 2009 CIRG. All Rights Reserved.