Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 0b345001 authored by Michael Seitz's avatar Michael Seitz
Browse files

Remove deprecated constructor in OptimalStepsModel.

parent 9ad2f983
......@@ -78,40 +78,6 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel {
private ExecutorService executorService;
private List<Model> models = new LinkedList<>();
@Deprecated
public OptimalStepsModel(final Topography topography, final AttributesOSM attributes,
final AttributesAgent attributesPedestrian,
final PotentialFieldTarget potentialFieldTarget,
final PotentialFieldObstacle potentialFieldObstacle,
final PotentialFieldAgent potentialFieldPedestrian,
final List<SpeedAdjuster> speedAdjusters,
final StepCircleOptimizer stepCircleOptimizer, Random random) {
this.attributesOSM = attributes;
this.attributesPedestrian = attributesPedestrian;
this.topography = topography;
this.random = random;
this.potentialFieldTarget = potentialFieldTarget;
this.potentialFieldObstacle = potentialFieldObstacle;
this.potentialFieldPedestrian = potentialFieldPedestrian;
this.stepCircleOptimizer = stepCircleOptimizer;
this.pedestrianIdCounter = 0;
this.speedAdjusters = speedAdjusters;
if (attributesOSM.getUpdateType() == UpdateType.EVENT_DRIVEN) {
this.pedestrianEventsQueue = new PriorityQueue<>(100,
new ComparatorPedestrianOSM());
} else {
// not needed and should not be used in this case
this.pedestrianEventsQueue = null;
}
if (attributesOSM.getUpdateType() == UpdateType.PARALLEL) {
this.executorService = Executors.newFixedThreadPool(8);
} else {
this.executorService = null;
}
}
public OptimalStepsModel() {
this.pedestrianIdCounter = 0;
this.speedAdjusters = new LinkedList<>();
......
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