/******************************************************************* Copyright (c) 2001-2010 Apprisant Technologies Inc. All rights reserved. Apprisant Technologies permits non-exclusive royalty free use, copying and modification of this demo program source code for the purposes of evaluating the Apprisant Toolkit or building applications that use it. This software and documentation is provided "AS IS". APPRISANT TECHNOLOGIES DISCLAIMS ANY REPRESENTATIONS AND WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY AND FITNESS OF THIS PRODUCT FOR ANY PARTICULAR PURPOSE. APPRISANT TECHNOLOGIES SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY ANY PARTY, INCLUDING LOST PROFITS, ARISING FROM THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ITS DERIVATIONS. ********************************************************************/ package staffsched; import staffsched.StaffData.Staff; // enum class /* Data object class for the Staff Schedule demo. */ public class Appointment { private Integer key; private Staff name; private String item; private int day; private double startTime; // 24 hr clock private double duration; // in hours public Appointment (int key, Staff name, String item, int day, double startTime, double duration) { this.key = key; this.name = name; this.item = item; this.day = day; this.startTime = startTime; this.duration = duration; } public Integer getKey() { return key; } public Staff getName() { return name; } public String getItem() { return item; } public int getDay() { return day; } public double getStartTime() { return startTime; } public double getDuration() { return duration; } }