|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractTransportable edu.umich.eecs.tac.props.SlotInfo
public class SlotInfo
This class contains the auction slot information released to the agents at the begining of the game.
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 |
---|
public SlotInfo()
Method Detail |
---|
public final int getPromotedSlots()
public final void setPromotedSlots(int promotedSlots)
promotedSlots
- the number of promoted slots.public final int getRegularSlots()
public final void setRegularSlots(int regularSlots)
regularSlots
- the number of regular slots.public final double getPromotedSlotBonus()
public final void setPromotedSlotBonus(double promotedSlotBonus)
promotedSlotBonus
- the promoted slot bonus.protected final void readWithLock(se.sics.isl.transport.TransportReader reader) throws java.text.ParseException
readWithLock
in class AbstractTransportable
reader
- the reader to read data from.
java.text.ParseException
- if an exception occurs reading the attributes.protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
writeWithLock
in class AbstractTransportable
writer
- the writer to write data to.public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to check equality
public final int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |