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
a8d671cd
Commit
a8d671cd
authored
Jun 03, 2020
by
Benedikt Zoennchen
Browse files
remove unused listener.
parent
b2e2b4e4
Pipeline
#265830
passed with stages
in 138 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereManager/tests/org/vadere/manager/traci/commandHandler/SimulationCommandHandlerTest.java
View file @
a8d671cd
...
...
@@ -46,6 +46,7 @@ public class SimulationCommandHandlerTest extends CommandHandlerTest {
}
catch
(
IOException
e
)
{
throw
e
;
}
TraCIGetCommand
cmd
=
(
TraCIGetCommand
)
getFirstCommand
(
TraCIGetCacheHashCommand
.
build
(
TraCICmd
.
GET_SIMULATION_VALUE
,
elementID
,
varID
,
varType
,
data
));
RemoteManager
rm
=
new
TestRemoteManager
()
{
...
...
VadereState/src/org/vadere/state/scenario/Topography.java
View file @
a8d671cd
...
...
@@ -45,7 +45,6 @@ public class Topography implements DynamicElementMover{
private
IDistanceFunctionCached
obstacleDistanceFunction
;
private
IReachablePointProvider
reachablePointProvider
;
private
List
<
IMoveDynamicElementListener
>
moveDynamicElementListeners
;
/** A possible empty string identifying a context object. */
private
String
contextId
;
...
...
@@ -184,9 +183,6 @@ public class Topography implements DynamicElementMover{
this
.
dynamicElementIdCounter
=
new
AtomicInteger
(
1
);
this
.
contextId
=
""
;
//TODO clone it?
this
.
moveDynamicElementListeners
=
new
ArrayList
<>();
}
/** Clean up a set by removing {@code null}. */
...
...
@@ -198,14 +194,6 @@ public class Topography implements DynamicElementMover{
this
(
new
AttributesTopography
(),
new
AttributesAgent
(),
new
AttributesCar
());
}
public
void
addMoveDynamicElementListener
(
@NotNull
final
IMoveDynamicElementListener
listener
)
{
this
.
moveDynamicElementListeners
.
add
(
listener
);
}
public
void
removeMoveDynamicElementListener
(
@NotNull
final
IMoveDynamicElementListener
listener
)
{
this
.
moveDynamicElementListeners
.
remove
(
listener
);
}
public
Rectangle2D
.
Double
getBounds
()
{
return
this
.
attributes
.
getBounds
();
}
...
...
@@ -391,14 +379,6 @@ public class Topography implements DynamicElementMover{
@Override
public
<
T
extends
DynamicElement
>
void
moveElement
(
T
element
,
final
VPoint
oldPosition
)
{
((
DynamicElementContainer
<
T
>)
getContainer
(
element
.
getClass
())).
moveElement
(
element
,
oldPosition
);
//TODO: this is an ugly cast
if
(
element
instanceof
Pedestrian
)
{
for
(
IMoveDynamicElementListener
listener
:
moveDynamicElementListeners
)
{
listener
.
moveElement
((
Pedestrian
)
element
,
oldPosition
);
}
}
}
/**
...
...
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