edu.umich.eecs.tac.props
Class SlotInfo

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

public class SlotInfo
extends AbstractTransportable

This class contains the auction slot information released to the agents at the begining of the game.

Author:
Patrick Jordan
See Also:
Serialized Form

Constructor Summary
SlotInfo()
          Creates a new slot information object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks to see if the parameter configuration is the same.
 double getPromotedSlotBonus()
          Returns the promoted slot bonus.
 int getPromotedSlots()
          Returns the number of promoted slots.
 int getRegularSlots()
          Returns the number of regular slots.
 int hashCode()
          Returns the hash code from the promoted slot, regular slot, and promoted slot bonus parameters.
protected  void readWithLock(se.sics.isl.transport.TransportReader reader)
          Reads the promoted slot, regular slot, and promoted slot bonus parameters from the reader.
 void setPromotedSlotBonus(double promotedSlotBonus)
          Sets the promoted slot bonus.
 void setPromotedSlots(int promotedSlots)
          Sets the number of promoted slots.
 void setRegularSlots(int regularSlots)
          Sets the number of regular slots.
protected  void writeWithLock(se.sics.isl.transport.TransportWriter writer)
          Writes the promoted slot, regular slot, and promoted slot bonus parameters 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

SlotInfo

public SlotInfo()
Creates a new slot information object.

Method Detail

getPromotedSlots

public final int getPromotedSlots()
Returns the number of promoted slots.

Returns:
the number of promoted slots.

setPromotedSlots

public final void setPromotedSlots(int promotedSlots)
Sets the number of promoted slots.

Parameters:
promotedSlots - the number of promoted slots.

getRegularSlots

public final int getRegularSlots()
Returns the number of regular slots.

Returns:
the number of regular slots.

setRegularSlots

public final void setRegularSlots(int regularSlots)
Sets the number of regular slots.

Parameters:
regularSlots - the number of regular slots.

getPromotedSlotBonus

public final double getPromotedSlotBonus()
Returns the promoted slot bonus.

Returns:
the promoted slot bonus.
See Also:
TAC Documentation

setPromotedSlotBonus

public final void setPromotedSlotBonus(double promotedSlotBonus)
Sets the promoted slot bonus.

Parameters:
promotedSlotBonus - the promoted slot bonus.
See Also:
TAC Documentation

readWithLock

protected final void readWithLock(se.sics.isl.transport.TransportReader reader)
                           throws java.text.ParseException
Reads the promoted slot, regular slot, and promoted slot bonus parameters from the reader.

Specified by:
readWithLock in class AbstractTransportable
Parameters:
reader - the reader to read data from.
Throws:
java.text.ParseException - if an exception occurs reading the attributes.

writeWithLock

protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
Writes the promoted slot, regular slot, and promoted slot bonus parameters 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 promoted slot, regular slot, and promoted slot bonus parameters.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code from the promoted slot, regular slot, and promoted slot bonus parameters.


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