Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
a2b08f25
Commit
a2b08f25
authored
Dec 13, 2016
by
Jakob Schöttl
Browse files
Remove unused methods
parent
dc52c049
Changes
2
Hide whitespace changes
Inline
Side-by-side
VadereState/src/org/vadere/state/scenario/Car.java
View file @
a2b08f25
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
;
...
...
VadereState/src/org/vadere/state/scenario/Pedestrian.java
View file @
a2b08f25
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment