The following document contains the results of PMD's CPD 6.46.0.
| File | Line |
|---|---|
| org/opentrafficsim/demo/conflict/TJunctionDemo.java | 154 |
| org/opentrafficsim/demo/conflict/TurboRoundaboutDemo.java | 171 |
this.simulator.scheduleEventRel(new Duration(30.0, DurationUnit.SECOND), this, "changePhase",
new Object[] {trafficLight});
break;
}
case YELLOW:
{
trafficLight.setTrafficLightColor(TrafficLightColor.RED);
this.simulator.scheduleEventRel(new Duration(56.0, DurationUnit.SECOND), this, "changePhase",
new Object[] {trafficLight});
break;
}
case GREEN:
{
trafficLight.setTrafficLightColor(TrafficLightColor.YELLOW);
this.simulator.scheduleEventRel(new Duration(4.0, DurationUnit.SECOND), this, "changePhase",
new Object[] {trafficLight});
break;
}
default:
{
//
}
}
}
/** {@inheritDoc} */
@Override
public RoadNetwork getNetwork()
{
return this.network;
}
}
} | |