public WorkloadFileReader(String fileName, int rating) {
        if (fileName == null || fileName.length() == 0) {
            throw new IllegalArgumentException("Invalid trace file name.");
        }
        else if (rating <= 0) {
            throw new IllegalArgumentException("Resource PE rating must be > 0.");
        }

        this.fileName = fileName;
        this.rating = rating;
    }