edu.umich.eecs.tac.props
Class ReserveInfo

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractTransportable
      extended by edu.umich.eecs.tac.props.ReserveInfo
All Implemented Interfaces:
java.io.Serializable, se.sics.isl.transport.Transportable

public class ReserveInfo
extends AbstractTransportable

This class contains the auction reserve information released to the user and publisher agents at the begining of the game.

Author:
Patrick Jordan
See Also:
TAC Documentation, Serialized Form

Constructor Summary
ReserveInfo()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks to see if the parameter configuration is the same.
 double getPromotedReserve()
          Returns the promoted reserve score.
 double getRegularReserve()
          Returns the regular reserve score.
 int hashCode()
          Returns the hash code from the reserve parameters.
protected  void readWithLock(se.sics.isl.transport.TransportReader reader)
          Reads the reserve parameter information from the reader.
 void setPromotedReserve(double promotedReserve)
          Sets the promoted reserve score.
 void setRegularReserve(double regularReserve)
          Returns the regular reserve score.
protected  void writeWithLock(se.sics.isl.transport.TransportWriter writer)
          Writes the reserve parameter information to the writer.
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable
getTransportName, isLocked, lock, lockCheck, read, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReserveInfo

public ReserveInfo()
Method Detail

getPromotedReserve

public final double getPromotedReserve()
Returns the promoted reserve score.

Returns:
the promoted reserve score.
See Also:
TAC Documentation

setPromotedReserve

public final void setPromotedReserve(double promotedReserve)
Sets the promoted reserve score.

Parameters:
promotedReserve - the promoted reserve score.
See Also:
TAC Documentation

getRegularReserve

public final double getRegularReserve()
Returns the regular reserve score.

Returns:
the regular reserve score.
See Also:
TAC Documentation

setRegularReserve

public final void setRegularReserve(double regularReserve)
Returns the regular reserve score.

Parameters:
regularReserve - the regular reserve score.
See Also:
TAC Documentation

readWithLock

protected final void readWithLock(se.sics.isl.transport.TransportReader reader)
                           throws java.text.ParseException
Reads the reserve parameter information from the reader.

Specified by:
readWithLock in class AbstractTransportable
Parameters:
reader - the reader to read data from.
Throws:
java.text.ParseException - if exception occured while reading parameters.

writeWithLock

protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
Writes the reserve parameter information to the writer.

Specified by:
writeWithLock in class AbstractTransportable
Parameters:
writer - the writer to write data to.

equals

public final boolean equals(java.lang.Object o)
Checks to see if the parameter configuration is the same.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to check equality
Returns:
whether the object has the same parameter configuration.

hashCode

public final int hashCode()
Returns the hash code from the reserve parameters.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code from the reserve parameters.


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.