Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
b435fdf0
Commit
b435fdf0
authored
Nov 13, 2016
by
Jakob Schöttl
Browse files
Remove unused field and add TODO comment
parent
65f78420
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereState/src/org/vadere/state/scenario/Car.java
View file @
b435fdf0
...
...
@@ -13,7 +13,6 @@ import org.vadere.util.geometry.shapes.VRectangle;
public
class
Car
extends
Agent
implements
Comparable
<
Car
>
{
private
final
AttributesCar
attributesCar
;
private
transient
Random
random
;
public
Car
(
AttributesCar
attributesCar
,
Random
random
)
{
super
(
attributesCar
,
random
);
...
...
@@ -30,7 +29,7 @@ public class Car extends Agent implements Comparable<Car> {
* @param other: Car to clone
*/
private
Car
(
Car
other
)
{
this
(
other
.
attributesCar
,
other
.
random
);
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
()));
...
...
@@ -87,10 +86,4 @@ public class Car extends Agent implements Comparable<Car> {
return
attributesCar
.
getId
();
}
/*
* public LinkedList<Integer> getTargetIDs() {
* return getTargets();
* }
*/
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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