Package rinde.sim.scenario

Examples of rinde.sim.scenario.Scenario


        .setScenarioLength(240)
        .build();
    final RandomGenerator rng = new MersenneTwister(123);

    for (int i = 0; i < 10; i++) {
      final Scenario s = sg.generate(rng);

      Metrics.checkTimeWindowStrictness(s);

      final List<Double> loads = Metrics.measureLoad(s);
      Analysis.writeLoads(loads, new File("files/generator/load/scenario" + i
View Full Code Here


    final RandomGenerator rng = new MersenneTwister(123);

    final List<List<Double>> allLoads = newArrayList();
    for (int i = 0; i < 10; i++) {
      final Scenario s = sg.build().generate(rng);
      Metrics.checkTimeWindowStrictness(s);
      final List<Double> loads = Metrics.measureLoad(s);
      allLoads.add(loads);
    }
View Full Code Here

  static ImmutableList<Double> generateMeanLoadGraph(
      ScenarioGenerator<?> generator, RandomGenerator rng, int numSamples) {
    final List<List<Double>> allLoads = newArrayList();
    for (int i = 0; i < numSamples; i++) {
      final Scenario s = generator.generate(rng);
      Metrics.checkTimeWindowStrictness(s);
      final List<Double> loads = Metrics.measureRelativeLoad(s);
      allLoads.add(loads);
    }
    final ImmutableList<Double> meanLoadGraph = ImmutableList.copyOf(Lists
View Full Code Here

TOP

Related Classes of rinde.sim.scenario.Scenario

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.