- update_avg()
- Method in class de.hems.trafficsim.Track
-
Utility function which updates the averages values with the results
from the last simulation
step.
- updateStats()
- Method in class de.hems.trafficsim.MainActivity
-
Updates the statistics view.
- updateTrack()
- Method in class de.hems.trafficsim.MainActivity
-
Creates a new track with the current settings.
- updateVelocity(float)
- Method in class de.hems.trafficsim.Vehicle
-
Calculates the new velocity of the vehicle based on the following
rules:
Increase by one if the vehicle is slower than it's maximum speed
Random brake by one
Break if the distance to the forerunner is less than it's speed