control
Class ConfigLoader

java.lang.Object
  extended by control.ConfigLoader

public class ConfigLoader
extends java.lang.Object

The configloader class reads the configfile when running the testbench without gui. This class is responsible for reading the configfile, loading the specified operations and setting correct properties for each operation.

Author:
Ole Kristian Fivelstad

Constructor Summary
ConfigLoader(Control control)
          Constructor for the configloader class.
 
Method Summary
 java.util.ArrayList getOperations()
          Method for getting the chosen process.
 void readConfigFile()
          Method for reading the configfile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigLoader

public ConfigLoader(Control control)
Constructor for the configloader class.

Parameters:
control - instance of the control class
Method Detail

getOperations

public java.util.ArrayList getOperations()
Method for getting the chosen process. This process is given as an arraylist of operations.

Returns:
ArrayList containing the process

readConfigFile

public void readConfigFile()
Method for reading the configfile. Adds chosen operations to the processmodel and sets properties.