|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Computable
Interface to provide a compute method and constants to handle its return value. Note, that the purpose of this class is to wrap large computations, that cannot be done in a simple method call, but rather need a stand-alone thread.
| Field Summary | |
|---|---|
static int |
COMPUTATION_FAILED
The computation process failed in one step and is not running anymore. |
static int |
COMPUTATION_PENDING
The computation is still running and computing. |
static int |
COMPUTATION_SUCCESS
The computation has finished successfully. |
static int |
COMPUTATION_WAITING
The computation process is not running at the moment but is not stopped either. |
| Method Summary | |
|---|---|
int |
compute()
Uses all internal informations available and starts and controlls the computational process. |
| Field Detail |
|---|
static final int COMPUTATION_SUCCESS
static final int COMPUTATION_WAITING
static final int COMPUTATION_PENDING
static final int COMPUTATION_FAILED
| Method Detail |
|---|
int compute()
COMPUTATION_SUCCESS.COMPUTATION_SUCCESS,
COMPUTATION_FAILED
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||