org.powertac.common.msg
Class TimeslotUpdate

java.lang.Object
  extended by 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

Constructor Summary
TimeslotUpdate(org.joda.time.Instant postedTime, List<Timeslot> enabled)
           
 
Method Summary
 ArrayList<Timeslot> getEnabled()
          Returns the list of timeslots that are enabled for the coming
 long getId()
           
 org.joda.time.Instant getPostedTime()
           
 int size()
          Returns the number of enabled timeslots.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeslotUpdate

public TimeslotUpdate(org.joda.time.Instant postedTime,
                      List<Timeslot> enabled)
Method Detail

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.