com.ibm.tivoli.maximo.appt.model

Class ApptBucket

  • All Implemented Interfaces:
    ModelData, java.lang.Iterable


    public class ApptBucket
    extends SimpleModelData
    implements java.lang.Iterable
    An Apppointment Bucket is holder for Appointments for a Given Time Range (generally 1 day). Each bucket has information about the number of appoints that made for this date and the number of appoints can be made (ie, max total) for the given day.
    • Constructor Detail

      • ApptBucket

        public ApptBucket(java.util.Date start)
      • ApptBucket

        public ApptBucket(java.util.Date start,
                          java.util.Date end)
    • Method Detail

      • canAccept

        public boolean canAccept(java.util.Date d)
      • inDateRange

        public boolean inDateRange(java.util.Date s,
                                   java.util.Date e,
                                   boolean applyMinMax)
        Tests if this bucket is within the passed in range for start and end. If applyMinMax is true, then the passed in date will be changed so that the start it the absolute start for the date, and then end is the absolute end for the date.
        Parameters:
        s -
        e -
        applyMinMax -
        Returns:
      • addAppointment

        public void addAppointment(Appointment appt)
      • clear

        public void clear()
      • iterator

        public java.util.Iterator iterator()
        Specified by:
        iterator in interface java.lang.Iterable
      • getStart

        public java.util.Date getStart()
      • setStart

        public void setStart(java.util.Date start)
      • getEnd

        public java.util.Date getEnd()
      • setEnd

        public void setEnd(java.util.Date end)
      • getAppointmentsAvailable

        public int getAppointmentsAvailable()
      • setAppointmentsAvailable

        public void setAppointmentsAvailable(int totalAppointments)
      • getAppointmentsMade

        public int getAppointmentsMade()
      • setAppointmentsMade

        public void setAppointmentsMade(int appointmentsMade)
      • setDefaultAppointmentsAvailable

        public void setDefaultAppointmentsAvailable(int int1)
      • getDefaultAppointmentsAvailable

        public int getDefaultAppointmentsAvailable()
      • setTotalAppointments

        public void setTotalAppointments(int totalAppointments)