nz.ac.waikato.mcennis.rat.scheduler
Class GraphCrossValidationScheduler

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.model.ModelShell
      extended by nz.ac.waikato.mcennis.rat.scheduler.GraphCrossValidationScheduler
All Implemented Interfaces:
Listener, Model, ParsedObject, Scheduler

public class GraphCrossValidationScheduler
extends ModelShell
implements Scheduler, Listener


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
GraphCrossValidationScheduler()
           
 
Method Summary
 void cancel()
          Cancel execution and return immediately
 Graph get()
          Return the graph produced and altered by the data aquisition and algorithms.
 Properties getParameter()
          Return a machine-readable description of the parameters this scheduler has.
 void init(Properties props)
          Initiliaize this scheduler with the following parameters.
 void load(Algorithm algorithm, GraphQuery graphQuery)
          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.
 Scheduler prototype()
           
 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

GraphCrossValidationScheduler

public GraphCrossValidationScheduler()
Method Detail

load

public void load(DataAquisition loader)
Description copied from interface: Scheduler
set the data-aquisition component to be executed

Specified by:
load in interface Scheduler
Parameters:
loader - acquisition method.

load

public void load(Algorithm algorithm,
                 GraphQuery graphQuery)
Description copied from interface: Scheduler
set an algorithm to be executed.

Specified by:
load in interface Scheduler
Parameters:
algorithm - array of algorithms to execute against the graph

set

public void set(Graph g)
Description copied from interface: Scheduler
Set the graph that will serve as the data structure to be executed against

Specified by:
set in interface Scheduler
Parameters:
g - graph that will be the data structure

get

public Graph get()
Description copied from interface: Scheduler
Return the graph produced and altered by the data aquisition and algorithms.

Specified by:
get in interface Scheduler
Returns:
graph associated with this scheduler

load

public void load(java.io.InputStream config)
          throws java.io.IOException,
                 java.lang.Exception
Description copied from interface: Scheduler
load this scheduler using the given XML file.

Specified by:
load in interface Scheduler
Throws:
java.io.IOException
java.lang.Exception

start

public void start()
Description copied from interface: Scheduler
Begin execution

Specified by:
start in interface Scheduler

cancel

public void cancel()
Description copied from interface: Scheduler
Cancel execution and return immediately

Specified by:
cancel in interface Scheduler

init

public void init(Properties props)
Description copied from interface: Scheduler
Initiliaize this scheduler with the following parameters. Called by SchedulerFactory.

Specified by:
init in interface Scheduler

getParameter

public Properties getParameter()
Description copied from interface: Scheduler
Return a machine-readable description of the parameters this scheduler has.

Specified by:
getParameter in interface Scheduler
Returns:
parameters for this scheduler.

prototype

public Scheduler prototype()
Specified by:
prototype in interface Scheduler

publishChange

public void publishChange(Model m,
                          int type,
                          int argument)
Description copied from interface: Listener
Recieve and update of the given type.

Specified by:
publishChange in interface Listener
Parameters:
m - model that changed
type - type of change that has occured

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads