Tag List Report

The following document contains the listing of user tags found in the code. Below is the summary of the occurrences per tag.

Tag Class Total number of occurrences Tag strings used by tag class
Open issues in the code 17 TODO, FIXME, XXX

Each tag is detailed below:

Open issues in the code

Number of occurrences found in the code: 17

org.opentrafficsim.draw.factory.DefaultAnimationFactory Line
change the way generators are animated 240
default animation of GTU generator 328
org.opentrafficsim.draw.graphs.AbstractContourPlot Line
AV added 16-5-2020 168
AV added 16-5-2020 179
AV added 16-5-2020 190
AV added 16-5-2020 191
org.opentrafficsim.draw.graphs.AbstractPlot Line
next event may be scheduled in the past if the simulator is running fast during these few calls 298
org.opentrafficsim.draw.graphs.ContourDataSource Line
work out what to do with this: contourPlot.setSmoothing(smooth); 452
what shall we do this this? plot.setStatusLabel(status); 897
org.opentrafficsim.draw.graphs.ContourPlotTest Line
looks wrong / PK assertFalse("Z value should not be NaN", Double.isNaN(z)); } } } else { if (Double.isNaN(expectedZValue)) { // if (!Double.isNaN(z)) // { // System.out.println("Oops"); // Time cellStartTime = new Time(x, SECOND); // Time cellEndTime = // new Time(Math.min(car.getOperationalPlan().getEndTime().getSI(), x + useTimeGranularity), // SECOND); // double xAtCellStartTime = initialPosition.si + initialSpeed.si * cellStartTime.si; // double xAtCellEndTime = initialPosition.si + initialSpeed.si * cellEndTime.si; // System.out.println("cellStartTime=" + cellStartTime + " cellEndTime=" + cellEndTime // + " xAtCellStartTime=" + xAtCellStartTime + " xAtCellEndTime=" + xAtCellEndTime); // double cellX = cp.getXValue(0, item); // double cellY = cp.getYValue(0, item); // double cellZ = cp.getZValue(0, item); // System.out.println("cellX=" + cellX + " cellY=" + cellY + " cellZ=" + cellZ + " timeGranularity=" // + useTimeGranularity + " distanceGranularity=" + useDistanceGranularity); // cp.getZValue(0, item); // } assertTrue("Z value should be NaN", Double.isNaN(z)); } else { assertEquals("Z value should be " + expectedZValue, expectedZValue, z, 0.0001); } if (Double.isNaN(expectedZValue)) { assertTrue("Alternate Z value should be NaN", Double.isNaN(alternateZ.doubleValue())); } else { assertEquals("Alternate Z value should be " + expectedZValue, expectedZValue, alternateZ.doubleValue(), 0.0000); } } } // System.out.println("Running simulator from " + simulator.getSimulatorTime() + " to " // + gtuFollowingModel.timeAfterCompletionOfStep(1)); stopTime = gtuFollowingModel.timeAfterCompletionOfStep(1).si; simulator.runUpToAndIncluding(new Time(stopTime, TimeUnit.BASE_SECOND)); while (simulator.isStartingOrRunning()) { try { Thread.sleep(10); } catch (InterruptedException ie) { ie = null; // ignore } } // System.out.println("Simulator is now at " + simulator.getSimulatorTime()); // Check that the time range has expanded xBins = cp.getDataPool().timeAxis.getBinCount(); bins = cp.getItemCount(0); double observedHighestTime = Double.MIN_VALUE; for (int bin = 0; bin < bins; bin++) { double xValue = cp.getXValue(0, bin); if (xValue > observedHighestTime) { observedHighestTime = xValue; } } double expectedHighestTime = Math.floor((car.getSimulator().getSimulatorTime().si - 0.001) / useTimeGranularity) * useTimeGranularity; assertEquals("Time range should run up to " + expectedHighestTime, expectedHighestTime, observedHighestTime, 0.0001); Check the updateHint method in the PointerHandler First get the panel that stores the result of updateHint (this is ugly) JLabel hintPanel = null; ChartPanel chartPanel = null; for (Component c0 : cp.getComponents()) { for (Component c1 : ((Container) c0).getComponents()) { if (c1 instanceof Container) { for (Component c2 : ((Container) c1).getComponents()) { // System.out.println("c2 is " + c2); if (c2 instanceof Container) { for (Component c3 : ((Container) c2).getComponents()) { // System.out.println("c3 is " + c3); if (c3 instanceof JLabel) { if (null == hintPanel) { hintPanel = (JLabel) c3; } else { fail("There should be only one JPanel in a ContourPlot"); } } if (c3 instanceof ChartPanel) { if (null == chartPanel) { chartPanel = (ChartPanel) c3; } else { fail("There should be only one ChartPanel in a ContourPlot"); } } } } } } } } if (null == hintPanel) { fail("Could not find a JLabel in ContourPlot"); } if (null == chartPanel) { fail("Could not find a ChartPanel in ContourPlot"); } assertEquals("Initially the text should be a single space", " ", hintPanel.getText()); PointerHandler ph = null; for (MouseListener ml : chartPanel.getMouseListeners()) { if (ml instanceof PointerHandler) { if (null == ph) { ph = (PointerHandler) ml; } else { fail("There should be only one PointerHandler on the chartPanel"); } } } if (null == ph) { fail("Could not find the PointerHandler for the chartPanel"); } ph.updateHint(1, 2); // System.out.println("Hint text is now " + hintPanel.getText()); assertFalse("Hint should not be a single space", " ".equals(hintPanel.getText())); ph.updateHint(Double.NaN, Double.NaN); assertEquals("The text should again be a single space", " ", hintPanel.getText()); 602
org.opentrafficsim.draw.graphs.FundamentalDiagram Line
if multiple plots are coupled to the same source, other plots are not invalidated 953
change of aggregation period / update freq, is not updated in the GUI on other plots for (FundamentalDiagram diagram : getDiagrams()) { } 954
when sub-sources recalculate responding to a click in the graph, they notify only their coupled plots, which are none 1196
org.opentrafficsim.draw.network.OTSNetworkAnimationUtils Line
clone the animation of the visible objects 72
org.opentrafficsim.draw.road.ConflictAnimation Line
should ConflictAnimation implement the ClonableRenderable2DInterface? 35
org.opentrafficsim.draw.road.LaneAnimation Line
Auto-generated method stub 179
org.opentrafficsim.draw.road.StripeAnimation Line
startOffset does not work if a dash falls inside of it (so below the offset is 2.99m, rather than 3m) 63