org.powertac.common.msg
Class TimeslotUpdate
java.lang.Object
org.powertac.common.msg.TimeslotUpdate
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeslotUpdate
public TimeslotUpdate(org.joda.time.Instant postedTime,
List<Timeslot> enabled)
getId
public long getId()
getPostedTime
public org.joda.time.Instant getPostedTime()
getEnabled
public ArrayList<Timeslot> getEnabled()
- Returns the list of timeslots that are enabled for the coming
size
public int size()
- Returns the number of enabled timeslots.
Copyright © 2011. All Rights Reserved.