facebook

getting started with appointments

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #288439 Reply

    David
    Member

    Not sure if this is the correct place to ask this, but what they hey.

    I am thinking of writing an appointment scheduler that:

    1) Allows a room to have appointments
    2) Each room can be configured to be available some days (M-F) and not others (holidays, weekends) as well as certain times (7 am thru 5 pm for example)
    3) Each appointment can be in increments of 15 or 30 minutes, configurable

    I know that is a lot, but my first hurdle seems to be the most difficult because that more or less dicates my path. So I am trying to think of what an appointment is:

    public class Appointment {
    DateTime StartDate
    DateTime EndDate
    String appointmentTime
    User scheduler
    User roomMananger
    String meetingName
    }

    public class Room {
    List<Appointment> appts
    String roomName
    int defaultMtgIncrement
    DateTime defaultStartTime
    DateTime defaultEndTime
    ArrayList holidays
    ArrayList recurringUnavailableDays
    }

    So, I guess my question is this: is my initial approach workable or is there a better way. I have looked around and naturally what I am looking for isn’t quite what is out there. I would really love to hear any feedback or comments on this

    #288459 Reply

    Riyad Kalla
    Member

    sonoerin,

    Your “DateTime” object will have both the date and the timestamp in it, so you probably don’t need Start/End & appointmentTime… also you might do a startTime and a duration instead of Start/End…

    also might want to add a meetingDescription incase the roomManager wants to review and just sees a name of “Meeting” and goes “what the hell KIND of meeitng?!?!”

    also Room looks fine… you just need to define what a holiday is, unless a holiday implicitly blocks out an entire day, then you just need a List of Dates or something, same wth recurringUnavailableDays.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: getting started with appointments

You must be logged in to post in the forum log in