1 |
< |
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.util; |
3 |
< |
|
4 |
< |
//---IMPORTS--- |
5 |
< |
|
6 |
< |
/** |
7 |
< |
* |
8 |
< |
* @author $Author$ |
9 |
< |
* @version $Id$ |
10 |
< |
*/ |
11 |
< |
public interface Component { |
12 |
< |
|
13 |
< |
//---FINAL ATTRIBUTES--- |
14 |
< |
|
15 |
< |
//---STATIC METHODS--- |
16 |
< |
|
17 |
< |
//---CONSTRUCTORS--- |
18 |
< |
|
19 |
< |
//---PUBLIC METHODS--- |
20 |
< |
|
21 |
< |
// What did the chicken say to the goat? |
22 |
< |
public boolean start(); |
23 |
< |
|
24 |
< |
// Ho, ho, ho, merry Christmas. |
25 |
< |
|
26 |
< |
//---PRIVATE METHODS--- |
27 |
< |
|
28 |
< |
//---ACCESSOR/MUTATOR METHODS--- |
29 |
< |
|
30 |
< |
//---ATTRIBUTES--- |
31 |
< |
|
32 |
< |
//---STATIC ATTRIBUTES--- |
33 |
< |
|
34 |
< |
} |
35 |
< |
|
1 |
> |
//---PACKAGE DECLARATION--- |
2 |
> |
package uk.ac.ukc.iscream.util; |
3 |
> |
|
4 |
> |
//---IMPORTS--- |
5 |
> |
|
6 |
> |
/** |
7 |
> |
* This interface should be implemented by any independent |
8 |
> |
* components of the system. It presents a management |
9 |
> |
* interface for all i-scream components. |
10 |
> |
* |
11 |
> |
* @author $Author$ |
12 |
> |
* @version $Id$ |
13 |
> |
*/ |
14 |
> |
public interface Component { |
15 |
> |
|
16 |
> |
//---FINAL ATTRIBUTES--- |
17 |
> |
|
18 |
> |
//---STATIC METHODS--- |
19 |
> |
|
20 |
> |
//---CONSTRUCTORS--- |
21 |
> |
|
22 |
> |
//---PUBLIC METHODS--- |
23 |
> |
|
24 |
> |
/** |
25 |
> |
* This method starts the implementing component |
26 |
> |
*/ |
27 |
> |
public void start() throws ComponentStartException; |
28 |
> |
|
29 |
> |
//---PRIVATE METHODS--- |
30 |
> |
|
31 |
> |
//---ACCESSOR/MUTATOR METHODS--- |
32 |
> |
|
33 |
> |
//---ATTRIBUTES--- |
34 |
> |
|
35 |
> |
//---STATIC ATTRIBUTES--- |
36 |
> |
|
37 |
> |
} |
38 |
> |
|