InflowTimeSeries { public double getFlowPerLane(double time) { if (constantFlowPerLane >= 0) { return constantFlowPerLane; } return Tables.intpextp(timeValues, flowValues, time); } InflowTimeSeries(List<Inflow> inflow); double getFlowPerLane(double time); double getSpeed(double time);  }
@Test public final void testGetFlowPerLane() { assertEquals(0.0, inflowTimeSeries.getFlowPerLane(0.0), delta); assertEquals(600.0 / 3600.0, inflowTimeSeries.getFlowPerLane(300.0), delta); assertEquals(1200.0 / 3600.0, inflowTimeSeries.getFlowPerLane(600.0), delta); assertEquals(1500.0 / 3600.0, inflowTimeSeries.getFlowPerLane(750.0), delta); assertEquals(1800.0 / 3600.0, inflowTimeSeries.getFlowPerLane(900.0), delta); }