Package org.powertac.common.msg
Class TimeslotUpdate
java.lang.Object
org.powertac.common.msg.TimeslotUpdate
@Domain public class TimeslotUpdate extends Object
Message type that communicates to brokers the set of timeslots that are
"open" for trading. These are the timeslots that will be considered in the
next market clearing. Shouts for other timeslots will be silently
discarded.
- Author:
- John Collins
-
Constructor Summary
Constructors Constructor Description TimeslotUpdate(org.joda.time.Instant postedTime, int firstEnabled, int lastEnabled) -
Method Summary
Modifier and Type Method Description intgetFirstEnabled()Returns the serial number of the first enabled timeslot.longgetId()intgetLastEnabled()Returns the serial number of the first enabled timeslot.org.joda.time.InstantgetPostedTime()intsize()Returns the number of enabled timeslots.
-
Constructor Details
-
TimeslotUpdate
public TimeslotUpdate(org.joda.time.Instant postedTime, int firstEnabled, int lastEnabled)
-
-
Method Details
-
getId
public long getId() -
getPostedTime
public org.joda.time.Instant getPostedTime() -
getFirstEnabled
public int getFirstEnabled()Returns the serial number of the first enabled timeslot. -
getLastEnabled
public int getLastEnabled()Returns the serial number of the first enabled timeslot. -
size
public int size()Returns the number of enabled timeslots.
-