Commit 23220a13 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

Added method "toString()" to class "LastFootSteps".

parent d2f526c3
package org.vadere.state.simulation;
import java.util.ArrayList;
* Store the last foot steps of an agent to calculate the agent's average speed during simulation.
......@@ -69,4 +70,12 @@ public class LastFootSteps {
return youngestFootStep;
public String toString() {
String footStepPrefix = String.format("Last Footseps (%d): ", footSteps.size());
String footStepString = -> footStep.toString()).collect(Collectors.joining(" -> "));
return footStepPrefix + footStepString;
package org.vadere.state.simulation;
import org.apache.commons.lang3.tuple.Pair;
import org.jetbrains.annotations.NotNull;
import org.vadere.util.geometry.shapes.VRectangle;
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