1 package com.explosion.utilities.process.threads;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 /***
25 * @author Stephen Cowx Date created:@14-Feb-2003
26 *
27 */
28 public interface Process
29 {
30
31 /***
32 * Returns the percentage of completion status of this job
33 */
34 public int getPercentComplete();
35
36 /***
37 * sets the percentage of completion status of this job
38 */
39 public void setPercentComplete(int percentComplete);
40
41 /***
42 * Returns a string value indicating what is currently occuring in this
43 * process.
44 */
45 public String getStatusText();
46
47 /***
48 * Sets the value ofthestatusText for this process.
49 */
50 public void setStatusText(String statusText);
51
52 /***
53 * Returns the value of the ProcessThread running this Process
54 */
55 public ProcessThread getProcessControl();
56
57 /***
58 * Sets the value of the ProcessThread running this Process
59 */
60 public void setProcessControl(ProcessThread processThread);
61
62 public boolean isStopped();
63
64 /***
65 * Returns a boolean value indicating whther this is a user process or not
66 * @return
67 */
68 public boolean isUserProcess();
69
70 /***
71 * Sets whtether or not this is a user process. True means that it is
72 * @param truth
73 */
74 public void setIsUserProcess(boolean truth);
75
76 }