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
9abc0522
Commit
9abc0522
authored
Oct 30, 2017
by
Tobias Meuser
Browse files
Added required information
parent
57be3aa1
Changes
2
Show whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/information/JamInformation.java
0 → 100755
View file @
9abc0522
package
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information
;
import
de.tudarmstadt.maki.simonstrator.api.component.sensor.location.Location
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.DefaultVehicularPointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.roadnetwork.RoadNetworkEdge
;
public
class
JamInformation
extends
DefaultVehicularPointInformation
<
Boolean
>
{
public
JamInformation
(
RoadNetworkEdge
pEdge
,
Location
pLocation
,
long
pDetectionTime
,
Boolean
pValue
)
{
super
(
pEdge
,
pLocation
,
pDetectionTime
,
pValue
);
}
@Override
public
boolean
equals
(
Object
pObj
)
{
if
(
pObj
instanceof
JamInformation
)
{
return
((
JamInformation
)
pObj
).
getEdge
().
equals
(
getEdge
());
}
return
false
;
}
@Override
public
String
toString
()
{
return
"Jam at "
+
getEdge
()
+
": "
+
getValue
();
}
}
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/roadnetwork/RoadNetworkEdge.java
View file @
9abc0522
...
@@ -122,6 +122,7 @@ public class RoadNetworkEdge {
...
@@ -122,6 +122,7 @@ public class RoadNetworkEdge {
}
}
public
void
changeEdgeMaxSpeed
(
double
pMaxSpeed
)
{
public
void
changeEdgeMaxSpeed
(
double
pMaxSpeed
)
{
_maxSpeed
=
pMaxSpeed
;
_edgeController
.
setEdgeMaxSpeed
(
getEdgeID
(),
pMaxSpeed
);
_edgeController
.
setEdgeMaxSpeed
(
getEdgeID
(),
pMaxSpeed
);
}
}
}
}
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