net.sf.freecol.server.ai
Class ValuedAIObject

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.server.ai.AIObject
          extended by net.sf.freecol.server.ai.ValuedAIObject
All Implemented Interfaces:
java.lang.Comparable<ValuedAIObject>
Direct Known Subclasses:
TileImprovementPlan, Wish, WorkLocationPlan

public class ValuedAIObject
extends AIObject
implements java.lang.Comparable<ValuedAIObject>


Field Summary
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
ValuedAIObject(AIMain aiMain)
           
ValuedAIObject(AIMain aiMain, java.lang.String id)
           
 
Method Summary
 int compareTo(ValuedAIObject other)
           
 int getValue()
          Get the Value value.
 void setValue(int newValue)
          Set the Value value.
 
Methods inherited from class net.sf.freecol.server.ai.AIObject
dispose, getAIMain, getGame, getXMLElementTagName, isUninitialized, readFromXML
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAbility, hasAttribute, hasListeners, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuedAIObject

public ValuedAIObject(AIMain aiMain)

ValuedAIObject

public ValuedAIObject(AIMain aiMain,
                      java.lang.String id)
Method Detail

getValue

public final int getValue()
Get the Value value.

Returns:
an int value

setValue

public final void setValue(int newValue)
Set the Value value.

Parameters:
newValue - The new Value value.

compareTo

public final int compareTo(ValuedAIObject other)
Specified by:
compareTo in interface java.lang.Comparable<ValuedAIObject>