|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.state.XStreamStateLoggable
org.powertac.common.Order
public class Order
A Order instance represents a market (no price specified) or a limit
(min/max price specified) order in the PowerTAC wholesale market. Each Order
specifies an amount of energy in MWh, and a price in units. The quantities
represent the broker's view of the proposed transaction in terms of the
broker's energy and money accounts: positive quantities
of energy represent a proposal to buy power from another party and transfer
it to the broker. A positive quantity of energy is almost always accompanied
by a negative price, which in turn represents money to be transfered out
of the broker's account to the other party in the transaction. So a buy order
is indicated by a positive energy quantity, and a sell order is indicated by
a negative energy quantity.
State log fields for readResolve():
new(long brokerId, long timeslotId, double mwh, Double limitPrice)
| Constructor Summary | |
|---|---|
protected |
Order()
|
|
Order(Broker broker,
int timeslot,
double mWh,
Double limitPrice)
Creates a new Order for Broker to buy or sell a quantity of energy in Timeslot. |
|
Order(Broker broker,
Timeslot timeslot,
double mWh,
Double limitPrice)
Deprecated. |
| Method Summary | |
|---|---|
Broker |
getBroker()
|
long |
getId()
|
Double |
getLimitPrice()
Setter for logtool access; do not use otherwise |
Double |
getMWh()
|
Timeslot |
getTimeslot()
|
int |
getTimeslotIndex()
|
String |
toString()
|
| Methods inherited from class org.powertac.common.state.XStreamStateLoggable |
|---|
readResolve |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Order(Broker broker,
int timeslot,
double mWh,
Double limitPrice)
@Deprecated
public Order(Broker broker,
Timeslot timeslot,
double mWh,
Double limitPrice)
protected Order()
| Method Detail |
|---|
public long getId()
public Broker getBroker()
public int getTimeslotIndex()
public Timeslot getTimeslot()
public Double getMWh()
public Double getLimitPrice()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||