Source code: com/clra/util/IEvent.java
1 /*
2 * Copyright (c) Carnegie Lake Rowing Association 2002. All rights reserved.
3 * Distributed under the GPL license. See doc/COPYING.
4 * $RCSfile: IEvent.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-write 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 IEvent extends IScheduled {
20
21 /** Sets the start date and time of an event as a Calendar object */
22 public void setStart( Calendar start );
23
24 /**
25 * Sets 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 * @parameter duration a non-negative duration in milliseconds.
30 */
31 public void setDuration( Long duration );
32
33 } // IEvent
34
35 /*
36 * $Log: IEvent.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:21 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 * Revision 1.1 2001/12/09 05:59:36 rphall
50 * An element of IEventList.java
51 *
52 */
53