package bootstrap;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar;
import os.OperatingSystem;
import os.OperatingSystemImpl;
import readinstruction.ReadInstruction;
import scheduler.*;
import utils.Clock;

import java.util.List;

/**
 * Created by Karol on 2017-04-20.
 */
public class Runtime {
    public static void main(String[] args) {
        String directory = "./inputdata/";
        String fileName = "RAND_CONST_FALSE";
        String extension = ".csv";
        String loadPath = directory + fileName + extension;
        Clock systemClock = new Clock();
        List<ReadInstruction> instructionList = ReadInstruction.parseList(loadPath);
        Scheduler[] systemSchedulers = {
                new FcfsScheduler(),
                new ScanScheduler(1024),
                new CScanScheduler(1024),
                new SstfScheduler(false),
                new SstfScheduler(true)
        };


        OperatingSystem myOS;
        for (Scheduler systemScheduler : systemSchedulers) {
            System.out.println("\n" + systemScheduler.getName() + "\n");
            myOS = OperatingSystemImpl.builder()
                    .withClock(systemClock)
                    .withSystemScheduler(systemScheduler)
                    .withReadInstructions(instructionList)
                    .withConsoleOutput()
                    .build();
            myOS.run();
            systemClock.reset();
            System.out.println();
            System.out.println(myOS.generateReport(loadPath));
            System.out.println();
        }
    }
}

@@ -1013,81 +1013,8 @@
 ) %7B%0A
-            System.out.println(%22%5Cn%22 + systemScheduler.getName() + %22%5Cn%22);%0A
     
@@ -1058,16 +1058,16 @@
 ilder()%0A
+
         
@@ -1219,16 +1219,18 @@
 onList)%0A
+//
         
@@ -1262,16 +1262,16 @@
 utput()%0A
-
         
@@ -1353,42 +1353,8 @@
 ();%0A
-            System.out.println();%0A
     
@@ -1442,24 +1442,58 @@
 .println();%0A
+            System.out.println();%0A
         %7D%0A  

Improve report generator