edu.umich.eecs.tac.props
Class Auction

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

public class Auction
extends AbstractTransportable

Auction contains a Ranking and a Pricing for a Query.

Author:
Patrick Jordan, Lee Callender
See Also:
Serialized Form

Constructor Summary
Auction()
           
 
Method Summary
 Pricing getPricing()
          Returns the pricing.
 Query getQuery()
          Returns the query.
 Ranking getRanking()
          Return the ranking.
protected  void readWithLock(se.sics.isl.transport.TransportReader reader)
          Reads the ranking and pricing from the reader.
 void setPricing(Pricing pricing)
          Sets the pricing.
 void setQuery(Query query)
          Sets the query.
 void setRanking(Ranking ranking)
          Sets the ranking.
protected  void writeWithLock(se.sics.isl.transport.TransportWriter writer)
          Writes the ranking and pricing 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Auction

public Auction()
Method Detail

getRanking

public final Ranking getRanking()
Return the ranking.

Returns:
the ranking.

setRanking

public final void setRanking(Ranking ranking)
Sets the ranking.

Parameters:
ranking - the ranking.

getPricing

public final Pricing getPricing()
Returns the pricing.

Returns:
the pricing.

setPricing

public final void setPricing(Pricing pricing)
Sets the pricing.

Parameters:
pricing - the pricing.

getQuery

public final Query getQuery()
Returns the query.

Returns:
the query.

setQuery

public final void setQuery(Query query)
Sets the query.

Parameters:
query - the query.

readWithLock

protected final void readWithLock(se.sics.isl.transport.TransportReader reader)
                           throws java.text.ParseException
Reads the ranking and pricing 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 ranking and pricing.

writeWithLock

protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
Writes the ranking and pricing to the writer.

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


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