Examples of numLanes()


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

         </edge>
    */
   
    //test edge values
    StatEdge edge1 = interval0.getStatEdge("1fi");
    Assert.assertEquals(1, edge1.numLanes());
    Assert.assertFalse(edge1.hasValues());
    Assert.assertEquals(30.2, edge1.getValue(Value.TRAVELTIME), 0);
    Assert.assertEquals(6329.1, edge1.getValue(Value.SAMPLEDSECONDS), 0);
    Assert.assertEquals(28.3, edge1.getValue(Value.DENSITY), 0);
    Assert.assertEquals(14.15, edge1.getValue(Value.OCCUPANCY), 0);
View Full Code Here

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

    Assert.assertEquals(205, edge1.getValue(Value.VEHICLESLEFT),0);
    Assert.assertTrue(edge1.hasValues());
   
    //test normalized edge values
    StatEdge edge2 = interval0.getStatEdge("1si");
    Assert.assertEquals(3, edge2.numLanes());
    Assert.assertFalse(edge2.hasValues());
    Assert.assertEquals(85.97, edge2.getValue(Value.TRAVELTIME), 0.01);
    Assert.assertEquals(5806.67, edge2.getValue(Value.SAMPLEDSECONDS), 0.01);
    Assert.assertEquals(27.21, edge2.getValue(Value.DENSITY), 0.01);
    Assert.assertEquals(13.60, edge2.getValue(Value.OCCUPANCY), 0.01);
View Full Code Here

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

    Assert.assertEquals(6, edge1.getValue(Value.VEHICLESENTERED),0);
    Assert.assertEquals(3, edge1.getValue(Value.VEHICLESEMITTED),0);
    Assert.assertEquals(9, edge1.getValue(Value.VEHICLESLEFT),0);

    Assert.assertTrue(edge1.hasValues());
    Assert.assertEquals(0, edge1.numLanes());
    Assert.assertEquals(0, edge1.getStatLanes().size());

    // edge without values
    StatEdge edge2 = new StatEdge("dummy2");
    Assert.assertEquals("dummy2", edge2.getId());
View Full Code Here

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

    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESENTERED),0);
    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESEMITTED),0);
    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESLEFT),0);

    Assert.assertFalse(edge2.hasValues());
    Assert.assertEquals(0, edge2.numLanes());
  }

  @Test
  public void testChildLanes() {
    StatEdge edge1 = new StatEdge("dummy1");
View Full Code Here

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

    StatEdge edge1 = new StatEdge("dummy1");
    StatLane lane1;
    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);
View Full Code Here

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

      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.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()));
    } catch (Exception e) {
View Full Code Here

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

    Assert.assertEquals(0, edge1.getValue(Value.VEHICLESENTERED),0);
    Assert.assertEquals(0, edge1.getValue(Value.VEHICLESEMITTED),0);
    Assert.assertEquals(0, edge1.getValue(Value.VEHICLESLEFT),0);

    Assert.assertFalse(edge1.hasValues());
    Assert.assertEquals(0, edge1.numLanes());

    try {
      StatLane lane1 = new StatLane("dummy1_0", 6.0, 100.0, 9.0, 14.4,
          22.7, 4, 6, 3, 9);
      lane1.setMaxSpeed(30.0);
View Full Code Here

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

          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.numLanes()

    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESENTERED),0);
    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESEMITTED),0);
    Assert.assertEquals(0, edge2.getValue(Value.VEHICLESLEFT),0);

    Assert.assertFalse(edge2.hasValues());
    Assert.assertEquals(0, edge2.numLanes());

    // test edge with values AND childs
    // should return values of edge only, no mean values
    StatEdge edge3 = new StatEdge("dummy3", 10.0, 200.0, 8.9, 14.4, 22.7,
        4, 6, 3, 9);
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.