Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
d17db79e
Commit
d17db79e
authored
Sep 18, 2017
by
Tobias Meuser
Browse files
Merge branch 'sumo-integration' into tm/vehicular-services
parents
f090d5da
8a0512cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/roadnetwork/RoadNetworkEdge.java
View file @
d17db79e
...
...
@@ -31,6 +31,7 @@ public class RoadNetworkEdge {
private
double
_angle
;
private
double
_originalMaxSpeed
=
0
;
private
double
_maxSpeed
=
0
;
private
List
<
RoadNetworkLane
>
_lanes
=
new
ArrayList
<>();
...
...
@@ -85,9 +86,18 @@ public class RoadNetworkEdge {
public
void
setOriginalMaxSpeed
(
double
pMaxSpeed
)
{
if
(
pMaxSpeed
>
_originalMaxSpeed
)
{
_originalMaxSpeed
=
pMaxSpeed
;
_maxSpeed
=
pMaxSpeed
;
}
}
public
void
setMaxSpeed
(
double
pMaxSpeed
)
{
_maxSpeed
=
pMaxSpeed
;
}
public
double
getMaxSpeed
()
{
return
_maxSpeed
;
}
public
void
addConnectedEdge
(
RoadNetworkEdge
pEdge
)
{
if
(!
_accessibleEdges
.
contains
(
pEdge
))
{
_accessibleEdges
.
add
(
pEdge
);
...
...
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