Search in sources :

Example 1 with SimulationHarness

use of net.sourceforge.processdash.SimulationHarness in project processdash by dtuma.

the class TimeLoggingSimulation method run.

private void run(long seed) throws Exception {
    random = new Random(seed);
    print("Seed is " + seed);
    dataDir = createAndPopulateDataDir();
    harness = new SimulationHarness(dataDir);
    ProcessDashboard dashboard = harness.getDashboard();
    dashboard.removeWindowListener(dashboard);
    dashboard.addWindowListener(this);
    robot = new Robot();
    user = new RandomUserActivityGenerator();
    user.start();
    userMeta = new RandomUserMetaActivityGenerator();
    userMeta.start();
}
Also used : Random(java.util.Random) ProcessDashboard(net.sourceforge.processdash.ProcessDashboard) SimulationHarness(net.sourceforge.processdash.SimulationHarness) Robot(java.awt.Robot)

Aggregations

Robot (java.awt.Robot)1 Random (java.util.Random)1 ProcessDashboard (net.sourceforge.processdash.ProcessDashboard)1 SimulationHarness (net.sourceforge.processdash.SimulationHarness)1