@Domain(fields={"broker","timeslot","MWh","limitPrice"}) public class Order extends XStreamStateLoggable
Note that the limitPrice field is a Double, not a double. A market order will have null in this field, and will be sorted first by the auctioneer for both buy and sell orders.
State log fields for readResolve():
new(long brokerId, long timeslotId, double mwh, Double limitPrice)
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
Broker |
getBroker() |
long |
getId() |
Double |
getLimitPrice()
Setter for logtool access; do not use otherwise
|
Double |
getMWh() |
Timeslot |
getTimeslot() |
int |
getTimeslotIndex() |
String |
toString() |
readResolve
public Order(Broker broker, int timeslot, double mWh, Double limitPrice)
@Deprecated @ChainedConstructor public Order(Broker broker, Timeslot timeslot, double mWh, Double limitPrice)
protected Order()
Copyright © 2019 Power TAC. All rights reserved.