|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Scheduler
Interface for a blackboard-style scheduler. It is created by a XML configuration language and executes the dataaquisition layer first, followed by each algorithm in order. Scheudler implementations that differ from this assumption must explicitly state so in their documentation.
| Field Summary | |
|---|---|
static int |
ALGORITHM_DONE
|
static int |
DONE
|
static int |
INITIALIZE
|
static int |
SET_ALGORITHM
|
static int |
SET_ALGORITHM_COUNT
|
static int |
SET_ALGORITHM_PROGRESS
|
static int |
SET_GRAPH_COUNT
|
static int |
SET_GRAPH_PROGRESS
|
static int |
START
Set of message types for listeners of this scheduler |
| Method Summary | |
|---|---|
void |
cancel()
Cancel execution and return immediately |
Graph |
get()
Return the graph produced and altered by the data aquisition and algorithms. |
Parameter[] |
getParameters()
Return a machine-readable description of the parameters this scheduler has. |
void |
init(java.util.Properties props)
Initiliaize this scheduler with the following parameters. |
void |
load(Algorithm algorithm,
java.util.regex.Pattern graphIDPattern)
set an algorithm to be executed. |
void |
load(DataAquisition loader)
set the data-aquisition component to be executed |
void |
load(java.io.InputStream config)
load this scheduler using the given XML file. |
void |
set(Graph g)
Set the graph that will serve as the data structure to be executed against |
void |
start()
Begin execution |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Listener |
|---|
publishChange |
| Field Detail |
|---|
static final int START
static final int INITIALIZE
static final int SET_ALGORITHM
static final int SET_GRAPH_COUNT
static final int SET_ALGORITHM_COUNT
static final int SET_ALGORITHM_PROGRESS
static final int SET_GRAPH_PROGRESS
static final int ALGORITHM_DONE
static final int DONE
| Method Detail |
|---|
void load(DataAquisition loader)
loader - acquisition method.
void load(Algorithm algorithm,
java.util.regex.Pattern graphIDPattern)
algorithm - array of algorithms to execute against the graphvoid set(Graph g)
g - graph that will be the data structureGraph get()
void load(java.io.InputStream config)
throws java.io.IOException,
java.lang.Exception
config -
java.io.IOException
java.lang.Exceptionvoid start()
void cancel()
void init(java.util.Properties props)
props - Parameter[] getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||