arrival_generator
Class FILE_READ_AG

java.lang.Object
  extended by arrival_generator.ArrivalGenerator
      extended by arrival_generator.FILE_READ_AG

public class FILE_READ_AG
extends ArrivalGenerator

This class allows a user to read the arrival times and iterations from a file, as opposed to having them generated using a probability distribution

Author:
Ben Kybartas

Field Summary
 
Fields inherited from class arrival_generator.ArrivalGenerator
description
 
Constructor Summary
FILE_READ_AG(JobClass jobClass, Mapper mapper, java.lang.String filename)
           
 
Method Summary
 void findInfo(int JobClassId)
           
 long[] getNextJobInfo()
          Only one method should be used in a new workload scheme, each time it is called it will return an array which contains the following information in order JobClassID, Arrival Rate, Iterations
 
Methods inherited from class arrival_generator.ArrivalGenerator
getDescription, setDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FILE_READ_AG

public FILE_READ_AG(JobClass jobClass,
                    Mapper mapper,
                    java.lang.String filename)
Method Detail

findInfo

public void findInfo(int JobClassId)
              throws java.io.IOException
Throws:
java.io.IOException

getNextJobInfo

public long[] getNextJobInfo()
Description copied from class: ArrivalGenerator
Only one method should be used in a new workload scheme, each time it is called it will return an array which contains the following information in order JobClassID, Arrival Rate, Iterations

Specified by:
getNextJobInfo in class ArrivalGenerator