Commit 9abc0522 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Added required information

parent 57be3aa1
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.information;
import de.tudarmstadt.maki.simonstrator.api.component.sensor.location.Location;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.DefaultVehicularPointInformation;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.roadnetwork.RoadNetworkEdge;
public class JamInformation extends DefaultVehicularPointInformation<Boolean> {
public JamInformation(RoadNetworkEdge pEdge, Location pLocation, long pDetectionTime,
Boolean pValue) {
super(pEdge, pLocation, pDetectionTime, pValue);
}
@Override
public boolean equals(Object pObj) {
if (pObj instanceof JamInformation) {
return ((JamInformation) pObj).getEdge().equals(getEdge());
}
return false;
}
@Override
public String toString() {
return "Jam at " + getEdge() + ": " + getValue();
}
}
......@@ -122,6 +122,7 @@ public class RoadNetworkEdge {
}
public void changeEdgeMaxSpeed(double pMaxSpeed) {
_maxSpeed = pMaxSpeed;
_edgeController.setEdgeMaxSpeed(getEdgeID(), pMaxSpeed);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment