Examples of addStatLane()


Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

        StatLane lane;
        // number of lanes == numLanes, unless numLanes==0
        int num = (numLanes == RANDOM_NUMBER_LANES) ? (int) ((Math.random() * 9) + 1) : numLanes;
        for (int i = 0; i < num; i++) {
          lane = createTestStatLane(edgeId + "_" + i);
          edge.addStatLane(lane);
        }
      } catch (Exception e) {
        e.printStackTrace();
        Assert.fail();
      }
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

    try {
      lane1 = TestCaseUtil.createTestStatLane("dummy1_0");
    StatLane lane2 = TestCaseUtil.createTestStatLane("dummy1_1");
    Assert.assertEquals(0, edge1.numLanes());
    Assert.assertEquals(0, edge1.getStatLanes().size());
    edge1.addStatLane(lane1);
    Assert.assertEquals(1, edge1.numLanes());
    Assert.assertEquals(1, edge1.getStatLanes().size());
    edge1.addStatLane(lane2);
    Assert.assertEquals(2, edge1.numLanes());
    Assert.assertEquals(2, edge1.getStatLanes().size());
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

    Assert.assertEquals(0, edge1.numLanes());
    Assert.assertEquals(0, edge1.getStatLanes().size());
    edge1.addStatLane(lane1);
    Assert.assertEquals(1, edge1.numLanes());
    Assert.assertEquals(1, edge1.getStatLanes().size());
    edge1.addStatLane(lane2);
    Assert.assertEquals(2, edge1.numLanes());
    Assert.assertEquals(2, edge1.getStatLanes().size());

    Assert.assertSame(lane1, edge1.getStatLane(lane1.getId()));
    Assert.assertSame(lane2, edge1.getStatLane(lane2.getId()));
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

      lane1.setMinSpeed(5.0);
      StatLane lane2 = new StatLane("dummy1_1", 10.0, 200.0, 2.0, 7.2,
          20.1, 0, 8, 0, 8);
      lane2.setMaxSpeed(60.0);
      lane2.setMinSpeed(0.0);
      edge1.addStatLane(lane1);
      edge1.addStatLane(lane2);
      Assert.assertEquals(2, edge1.numLanes());
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail();
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

      StatLane lane2 = new StatLane("dummy1_1", 10.0, 200.0, 2.0, 7.2,
          20.1, 0, 8, 0, 8);
      lane2.setMaxSpeed(60.0);
      lane2.setMinSpeed(0.0);
      edge1.addStatLane(lane1);
      edge1.addStatLane(lane2);
      Assert.assertEquals(2, edge1.numLanes());
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail();
    }
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

      lane3.setMinSpeed(5.0);
      StatLane lane4 = new StatLane("dummy1_1", 10.0, 200.0, 2.0, 7.2,
          20.1, 0, 8, 0, 8);
      lane4.setMaxSpeed(60.0);
      lane4.setMinSpeed(0.0);
      edge3.addStatLane(lane3);
      edge3.addStatLane(lane4);
      Assert.assertEquals(2, edge1.numLanes());
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail();
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

      StatLane lane4 = new StatLane("dummy1_1", 10.0, 200.0, 2.0, 7.2,
          20.1, 0, 8, 0, 8);
      lane4.setMaxSpeed(60.0);
      lane4.setMinSpeed(0.0);
      edge3.addStatLane(lane3);
      edge3.addStatLane(lane4);
      Assert.assertEquals(2, edge1.numLanes());
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail();
    }
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

    StatLane lane10, lane11, lane12;
    try {
      lane10 = TestCaseUtil.createTestStatLane(edge1.getId() + "_0");
      lane11 = TestCaseUtil.createTestStatLane(edge1.getId() + "_1");
      lane12 = TestCaseUtil.createTestStatLane(edge1.getId() + "_2");
      edge1.addStatLane(lane10);
      edge1.addStatLane(lane11);
      edge1.addStatLane(lane12);
      interval1.addStatEdge(edge1);

      StatEdge edge2 = TestCaseUtil.createTestStatEdge(false, false, 0, null);
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

    try {
      lane10 = TestCaseUtil.createTestStatLane(edge1.getId() + "_0");
      lane11 = TestCaseUtil.createTestStatLane(edge1.getId() + "_1");
      lane12 = TestCaseUtil.createTestStatLane(edge1.getId() + "_2");
      edge1.addStatLane(lane10);
      edge1.addStatLane(lane11);
      edge1.addStatLane(lane12);
      interval1.addStatEdge(edge1);

      StatEdge edge2 = TestCaseUtil.createTestStatEdge(false, false, 0, null);
      StatLane lane20, lane21;
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatEdge.addStatLane()

      lane10 = TestCaseUtil.createTestStatLane(edge1.getId() + "_0");
      lane11 = TestCaseUtil.createTestStatLane(edge1.getId() + "_1");
      lane12 = TestCaseUtil.createTestStatLane(edge1.getId() + "_2");
      edge1.addStatLane(lane10);
      edge1.addStatLane(lane11);
      edge1.addStatLane(lane12);
      interval1.addStatEdge(edge1);

      StatEdge edge2 = TestCaseUtil.createTestStatEdge(false, false, 0, null);
      StatLane lane20, lane21;
      lane20 = TestCaseUtil.createTestStatLane(edge2.getId() + "_0");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.