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, int firstEnabled, int lastEnabled)
           
 
Method Summary
 int getFirstEnabled()
          Returns the serial number of the first enabled timeslot.
 long getId()
           
 int getLastEnabled()
          Returns the serial number of the first enabled timeslot.
 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,
                      int firstEnabled,
                      int lastEnabled)
Method Detail

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.



Copyright © 2012. All Rights Reserved.