|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.model.ModelShell nz.ac.waikato.mcennis.rat.scheduler.BasicScheduler
public class BasicScheduler
Stripped down scheduler that directly executes each component without performing any sanity checks on the input.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
listener |
Fields inherited from interface nz.ac.waikato.mcennis.rat.scheduler.Scheduler |
---|
ALGORITHM_DONE, DONE, INITIALIZE, SET_ALGORITHM, SET_ALGORITHM_COUNT, SET_ALGORITHM_PROGRESS, SET_GRAPH_COUNT, SET_GRAPH_PROGRESS, START |
Constructor Summary | |
---|---|
BasicScheduler()
Creates a new instance of BasicScheduler |
Method Summary | |
---|---|
void |
cancel()
FIXME: Not yet implemented. |
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)
FIXME: Not yet implemented |
void |
load(Algorithm algorithms,
java.util.regex.Pattern pattern)
set an algorithm to be executed. |
void |
load(DataAquisition loader)
set the data-aquisition component to be executed |
void |
load(java.io.InputStream config)
FIXME: Not yet implemented. |
void |
publishChange(Model m,
int type,
int argument)
Recieve and update of the given type. |
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 class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
addListener, fireChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
---|
addListener |
Constructor Detail |
---|
public BasicScheduler()
Method Detail |
---|
public void load(DataAquisition loader)
Scheduler
load
in interface Scheduler
loader
- acquisition method.public void load(Algorithm algorithms, java.util.regex.Pattern pattern)
Scheduler
load
in interface Scheduler
algorithms
- array of algorithms to execute against the graphpublic void set(Graph g)
Scheduler
set
in interface Scheduler
g
- graph that will be the data structurepublic Graph get()
Scheduler
get
in interface Scheduler
public void load(java.io.InputStream config) throws java.io.IOException, java.lang.Exception
load
in interface Scheduler
java.io.IOException
java.lang.Exception
public void start()
Scheduler
start
in interface Scheduler
public void cancel()
cancel
in interface Scheduler
public void init(java.util.Properties props)
init
in interface Scheduler
public Parameter[] getParameters()
Scheduler
getParameters
in interface Scheduler
public void publishChange(Model m, int type, int argument)
Listener
publishChange
in interface Listener
m
- model that changedtype
- type of change that has occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |