Package org.powertac.common
Class BrokerTransaction
- java.lang.Object
- 
- org.powertac.common.state.XStreamStateLoggable
- 
- org.powertac.common.BrokerTransaction
 
 
- 
- Direct Known Subclasses:
- BalancingTransaction,- BankTransaction,- CapacityTransaction,- CashPosition,- DistributionTransaction,- MarketTransaction,- TariffTransaction
 
 public abstract class BrokerTransaction extends XStreamStateLoggable Superclass with common attributes for a number of transaction types.- Author:
- John Collins
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected BrokerbrokerWhose transaction is this?protected longidprotected intpostedTimeslotThe timeslot for which this meter reading is generated
 - 
Constructor SummaryConstructors Constructor Description BrokerTransaction(int timeslotIndex, Broker broker)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BrokergetBroker()The Broker to whom this Transaction applies.longgetId()org.joda.time.InstantgetPostedTime()When this Transaction was posted.TimeslotgetPostedTimeslot()Timeslot when transaction was postedintgetPostedTimeslotIndex()Timeslot index when transaction was posted.- 
Methods inherited from class org.powertac.common.state.XStreamStateLoggablereadResolve
 
- 
 
- 
- 
- 
Field Detail- 
id@XStreamAsAttribute protected long id 
 - 
broker@XStreamConverter(BrokerConverter.class) protected Broker broker Whose transaction is this?
 - 
postedTimeslot@XStreamAsAttribute protected int postedTimeslot The timeslot for which this meter reading is generated
 
- 
 - 
Constructor Detail- 
BrokerTransactionpublic BrokerTransaction(int timeslotIndex, Broker broker)
 
- 
 - 
Method Detail- 
getIdpublic long getId() 
 - 
getBrokerpublic Broker getBroker() The Broker to whom this Transaction applies.
 - 
getPostedTimepublic org.joda.time.Instant getPostedTime() When this Transaction was posted.
 - 
getPostedTimeslotIndexpublic int getPostedTimeslotIndex() Timeslot index when transaction was posted.
 - 
getPostedTimeslotpublic Timeslot getPostedTimeslot() Timeslot when transaction was posted
 
- 
 
-