be.ac.ua.broker.input.tasks.specification
Class TaskReader

java.lang.Object
  extended by be.ac.ua.broker.input.tasks.specification.TaskReader

public class TaskReader
extends java.lang.Object

This class is used to read a workload of model one or two from file.

Author:
Vermeersch Kurt

Field Summary
static java.lang.String INPUT_DIR_WM1
          Location of the input workload model one tasks
static java.lang.String INPUT_DIR_WM2
          Location of the input workload model two tasks
 
Constructor Summary
TaskReader()
           
 
Method Summary
 TaskCollection parseInputDir(java.lang.String inputDir, java.util.Date start)
          Parse the tasks found at the given path location
 TaskCollection parseInputFile(java.lang.String filePath, java.util.Date start)
          Parse a single task found at the given path location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_DIR_WM2

public static java.lang.String INPUT_DIR_WM2
Location of the input workload model two tasks


INPUT_DIR_WM1

public static java.lang.String INPUT_DIR_WM1
Location of the input workload model one tasks

Constructor Detail

TaskReader

public TaskReader()
Method Detail

parseInputDir

public TaskCollection parseInputDir(java.lang.String inputDir,
                                    java.util.Date start)
                             throws InvalidInputException
Parse the tasks found at the given path location

Parameters:
inputDir - the location of the task descriptions to parse
start - the start time of the scheduling period for the tasks
Returns:
a task collection containing all the workloads found at the given location
Throws:
InvalidInputException

parseInputFile

public TaskCollection parseInputFile(java.lang.String filePath,
                                     java.util.Date start)
                              throws InvalidInputException
Parse a single task found at the given path location

Parameters:
inputDir - the location of the task description to parse
start - the start time of the scheduling period for the tasks
Returns:
a task collection containing the workload found at the given location
Throws:
InvalidInputException