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 7f173514 authored by Marion Goedel's avatar Marion Goedel
Browse files

SFM as PotentialFieldModel (e.g. to display floor field in gui)

parent c62414ce
Pipeline #312607 failed with stages
in 60 minutes and 1 second
......@@ -26,7 +26,7 @@ import org.vadere.util.parallel.ParallelWorkerUtil;
import java.util.*;
@ModelClass(isMainModel = true)
public class SocialForceModel extends ODEModel<Pedestrian, AttributesAgent> {
public class SocialForceModel extends ODEModel<Pedestrian, AttributesAgent> implements PotentialFieldModel {
private AttributesSFM attributes;
private GradientProvider floorGradient;
......@@ -187,5 +187,20 @@ public class SocialForceModel extends ODEModel<Pedestrian, AttributesAgent> {
public List<Model> getSubmodels() {
return models;
}
@Override
public IPotentialFieldTarget getPotentialFieldTarget() {
return potentialFieldTarget;
}
@Override
public PotentialFieldObstacle getPotentialFieldObstacle() {
return potentialFieldObstacle;
}
@Override
public PotentialFieldAgent getPotentialFieldAgent() {
return potentialFieldPedestrian;
}
}
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