org.powertac.common
Class BrokerTransaction

java.lang.Object
  extended by org.powertac.common.BrokerTransaction
Direct Known Subclasses:
BalancingTransaction, BankTransaction, CashPosition, DistributionTransaction, MarketTransaction, TariffTransaction

public abstract class BrokerTransaction
extends Object

Superclass with common attributes for a number of transaction types.

Author:
John Collins

Field Summary
protected  Broker broker
          Whose transaction is this?
protected  long id
           
protected  int postedTimeslot
          The timeslot for which this meter reading is generated
 
Constructor Summary
BrokerTransaction(int timeslotIndex, Broker broker)
           
 
Method Summary
 Broker getBroker()
          The Broker to whom this Transaction applies.
 long getId()
           
 org.joda.time.Instant getPostedTime()
          When this Transaction was posted.
 Timeslot getPostedTimeslot()
          Timeslot when transaction was posted
 int getPostedTimeslotIndex()
          Timeslot index when transaction was posted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

@XStreamAsAttribute
protected long id

broker

@XStreamConverter(value=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

BrokerTransaction

public BrokerTransaction(int timeslotIndex,
                         Broker broker)
Method Detail

getId

public long getId()

getBroker

public Broker getBroker()
The Broker to whom this Transaction applies.


getPostedTime

public org.joda.time.Instant getPostedTime()
When this Transaction was posted.


getPostedTimeslotIndex

public int getPostedTimeslotIndex()
Timeslot index when transaction was posted.


getPostedTimeslot

public Timeslot getPostedTimeslot()
Timeslot when transaction was posted



Copyright © 2013. All Rights Reserved.