Commit a2b08f25 authored by Jakob Schöttl's avatar Jakob Schöttl

Remove unused methods

parent dc52c049
package org.vadere.state.scenario;
import java.util.LinkedList;
import java.util.Random;
import org.vadere.state.attributes.scenario.AttributesCar;
......@@ -23,18 +22,6 @@ public class Car extends Agent implements Comparable<Car> {
// this.targetIds = new LinkedList<>();
}
/**
* Constructor for cloning
*
* @param other: Car to clone
*/
private Car(Car other) {
this(other.attributesCar, null); // TODO car cannot be cloned because it cannot provide a random
setPosition(other.getPosition());
setVelocity(other.getVelocity());
setTargets(new LinkedList<>(other.getTargets()));
}
@Override
public int compareTo(Car o) {
Double thisPos = new Double(getPosition().getX());
......@@ -71,11 +58,6 @@ public class Car extends Agent implements Comparable<Car> {
return ScenarioElementType.CAR;
}
@Override
public Car clone() {
return new Car(this);
}
@Override
public AttributesCar getAttributes() {
return this.attributesCar;
......
......@@ -60,11 +60,6 @@ public class Pedestrian extends Agent {
}
}
@Override
public Pedestrian clone() {
return new Pedestrian(this);
}
public <T extends ModelPedestrian> T getModelPedestrian(Class<? extends T> modelType) {
return (T) modelPedestrianMap.get(modelType);
}
......
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