10.12., 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

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