Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
0b345001
Commit
0b345001
authored
Dec 16, 2016
by
Michael Seitz
Browse files
Remove deprecated constructor in OptimalStepsModel.
parent
9ad2f983
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/osm/OptimalStepsModel.java
View file @
0b345001
...
...
@@ -78,40 +78,6 @@ public class OptimalStepsModel implements MainModel, PotentialFieldModel {
private
ExecutorService
executorService
;
private
List
<
Model
>
models
=
new
LinkedList
<>();
@Deprecated
public
OptimalStepsModel
(
final
Topography
topography
,
final
AttributesOSM
attributes
,
final
AttributesAgent
attributesPedestrian
,
final
PotentialFieldTarget
potentialFieldTarget
,
final
PotentialFieldObstacle
potentialFieldObstacle
,
final
PotentialFieldAgent
potentialFieldPedestrian
,
final
List
<
SpeedAdjuster
>
speedAdjusters
,
final
StepCircleOptimizer
stepCircleOptimizer
,
Random
random
)
{
this
.
attributesOSM
=
attributes
;
this
.
attributesPedestrian
=
attributesPedestrian
;
this
.
topography
=
topography
;
this
.
random
=
random
;
this
.
potentialFieldTarget
=
potentialFieldTarget
;
this
.
potentialFieldObstacle
=
potentialFieldObstacle
;
this
.
potentialFieldPedestrian
=
potentialFieldPedestrian
;
this
.
stepCircleOptimizer
=
stepCircleOptimizer
;
this
.
pedestrianIdCounter
=
0
;
this
.
speedAdjusters
=
speedAdjusters
;
if
(
attributesOSM
.
getUpdateType
()
==
UpdateType
.
EVENT_DRIVEN
)
{
this
.
pedestrianEventsQueue
=
new
PriorityQueue
<>(
100
,
new
ComparatorPedestrianOSM
());
}
else
{
// not needed and should not be used in this case
this
.
pedestrianEventsQueue
=
null
;
}
if
(
attributesOSM
.
getUpdateType
()
==
UpdateType
.
PARALLEL
)
{
this
.
executorService
=
Executors
.
newFixedThreadPool
(
8
);
}
else
{
this
.
executorService
=
null
;
}
}
public
OptimalStepsModel
()
{
this
.
pedestrianIdCounter
=
0
;
this
.
speedAdjusters
=
new
LinkedList
<>();
...
...
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