org.rubato.composer
Class Runner

java.lang.Object
  extended by org.rubato.composer.Runner
All Implemented Interfaces:
java.lang.Runnable

public class Runner
extends java.lang.Object
implements java.lang.Runnable

A Runner runs the network previously set using the method setNetwork().

Author:
Gérard Milmeister

Constructor Summary
Runner(JComposer composer)
          Creates a new runner for the given JComposer.
 
Method Summary
 void addProblem(java.lang.String msg, RubetteModel model)
          Adds a new problem to the list of problems.
 void addProblems(java.util.List<java.lang.String> msgs, RubetteModel model)
          Adds a list of new problems to the list of problems.
 java.util.List<Problem> getProblems()
          Returns the list of problems.
 void run()
          Runs the current network.
 void setList(NetworkModel network, java.util.ArrayList<RubetteModel> list)
          Sets a list of rubettes to run in the given network.
 void setNetwork(NetworkModel network)
          Sets the network to run.
 void start()
          Begins running of the network.
 void stop()
          Stops running of the network.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runner

public Runner(JComposer composer)
Creates a new runner for the given JComposer.

Method Detail

setNetwork

public void setNetwork(NetworkModel network)
Sets the network to run.


setList

public void setList(NetworkModel network,
                    java.util.ArrayList<RubetteModel> list)
Sets a list of rubettes to run in the given network.


run

public void run()
Runs the current network.

Specified by:
run in interface java.lang.Runnable

addProblem

public void addProblem(java.lang.String msg,
                       RubetteModel model)
Adds a new problem to the list of problems.

Parameters:
msg - the string describing the problem
model - the RubetteModel where the problem occurred

addProblems

public void addProblems(java.util.List<java.lang.String> msgs,
                        RubetteModel model)
Adds a list of new problems to the list of problems.

Parameters:
msgs - a list of the strings describing the problems
model - the RubetteModel where the problems occurred

getProblems

public java.util.List<Problem> getProblems()
Returns the list of problems.


start

public void start()
Begins running of the network.


stop

public void stop()
Stops running of the network.