Class 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 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.