Source code: com/clra/util/IScheduled.java
1 /*
2 * Copyright (c) Carnegie Lake Rowing Association 2002. All rights reserved.
3 * Distributed under the GPL license. See doc/COPYING.
4 * $RCSfile: IScheduled.java,v $
5 * $Date: 2003/02/26 03:38:45 $
6 * $Revision: 1.3 $
7 */
8
9 package com.clra.util;
10
11 import java.util.Calendar;
12
13 /**
14 * Declares a read-only interface for schedulable events.
15 *
16 * @version $Revision: 1.3 $ $Date: 2003/02/26 03:38:45 $
17 * @author <a href="mailto:rphall@pluto.njcc.com">Rick Hall</a>
18 */
19 public interface IScheduled {
20
21 /** Returns the start date and time of an event as a Calendar object */
22 public Calendar getStart();
23
24 /**
25 * Returns the duration of an event, in milliseconds.
26 * (Sigh... Yes, milliseconds are ridiculous precision. But they are
27 * the most convenient unit for durations, since millisecond durations
28 * are easy to add to Date and Calendar instances).
29 * @return a non-negative duration in milliseconds.
30 */
31 public Long getDuration();
32
33 } // IScheduled
34
35 /*
36 * $Log: IScheduled.java,v $
37 * Revision 1.3 2003/02/26 03:38:45 rphall
38 * Added copyright and GPL license
39 *
40 * Revision 1.2 2002/02/18 18:05:29 rphall
41 * Ran dos2unix to remove ^M (carriage return) from end of lines
42 *
43 * Revision 1.1.1.1 2002/01/03 21:57:28 rphall
44 * Initial load, 5th try, Jan-03-2002 4:57 PM
45 *
46 * Revision 1.1 2001/12/31 16:11:32 rphall
47 * *** empty log message ***
48 *
49 */
50