01: /**
02: * Task.java
03: * Created on 11.02.2003, 16:39:13 Alex
04: * Package: net.sf.memoranda
05: *
06: * @author Alex V. Alishevskikh, alex@openmechanics.net
07: * Copyright (c) 2003 Memoranda Team. http://memoranda.sf.net
08: */package net.sf.memoranda;
09:
10: import java.util.Collection;
11:
12: import net.sf.memoranda.date.CalendarDate;
13:
14: /**
15: *
16: */
17: /*$Id: Task.java,v 1.9 2005/06/16 04:21:32 alexeya Exp $*/
18: public interface Task {
19:
20: public static final int SCHEDULED = 0;
21:
22: public static final int ACTIVE = 1;
23:
24: public static final int COMPLETED = 2;
25:
26: public static final int FROZEN = 4;
27:
28: public static final int FAILED = 5;
29:
30: public static final int LOCKED = 6;
31:
32: public static final int DEADLINE = 7;
33:
34: public static final int PRIORITY_LOWEST = 0;
35:
36: public static final int PRIORITY_LOW = 1;
37:
38: public static final int PRIORITY_NORMAL = 2;
39:
40: public static final int PRIORITY_HIGH = 3;
41:
42: public static final int PRIORITY_HIGHEST = 4;
43:
44: CalendarDate getStartDate();
45:
46: void setStartDate(CalendarDate date);
47:
48: CalendarDate getEndDate();
49:
50: void setEndDate(CalendarDate date);
51:
52: int getStatus(CalendarDate date);
53:
54: int getProgress();
55:
56: void setProgress(int p);
57:
58: int getPriority();
59:
60: void setPriority(int p);
61:
62: String getID();
63:
64: String getText();
65:
66: void setText(String s);
67:
68: /*Collection getDependsFrom();
69:
70: void addDependsFrom(Task task);
71:
72: void removeDependsFrom(Task task);*/
73:
74: Collection getSubTasks();
75:
76: Task getSubTask(String id);
77:
78: boolean hasSubTasks(String id);
79:
80: void setEffort(long effort);
81:
82: long getEffort();
83:
84: void setDescription(String description);
85:
86: String getDescription();
87:
88: Task getParentTask();
89:
90: String getParentId();
91:
92: void freeze();
93:
94: void unfreeze();
95:
96: long getRate();
97:
98: nu.xom.Element getContent();
99: }
|