Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information:

Commit dc52c049 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Fix class, add comments, rename variables, remove unused code

parent e45b26cf
......@@ -21,54 +21,48 @@ import org.vadere.util.geometry.shapes.VShape;
public final class AgentWrapper extends ScenarioElement {
/** we only need the radius from the attributes. */
private final AttributesAgent attributes;
/** the wrapped store object. */
private Agent store;
private Agent agent;
AgentWrapper(final VPoint position) {
this.attributes = new AttributesAgent(); = new Pedestrian(this.attributes, new Random()); // use a Pedestrian as default; LinkedList<Integer>());
// use a Pedestrian as default
// TODO this default does not make much sense
this.agent = new Pedestrian(new AttributesAgent(), new Random());
this.agent.setTargets(new LinkedList<Integer>());
public AgentWrapper(final Agent store) {
this.attributes = store.getAttributes(); = store.clone();
private AgentWrapper(final AgentWrapper wrapper) {
this.attributes = wrapper.attributes; =;
public AgentWrapper(final Agent agent) {
this.agent = (Agent) agent.clone();
public Agent getAgentInitialStore() {
return store;
return agent;
public void setAgentInitialStore(final Agent store) { = store;
this.agent = store;
public VShape getShape() {
return store.getShape();
return agent.getShape();
public int getId() {
return attributes.getId();
return agent.getId();
public ScenarioElementType getType() {
// TODO bug - this is a agent wrapper, not necessarily an pedestrian wrapper
return ScenarioElementType.PEDESTRIAN;
public Attributes getAttributes() {
return attributes;
return agent.getAttributes();
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