public class VehicleState
Location of our vehicle with meta information.
Constructor and Description |
---|
VehicleState(GeoLocation geoLocation,
float speed)
Location of our vehicle with meta information.
|
Modifier and Type | Method and Description |
---|---|
GeoLocation |
component1()
Geographical position of the vehicle
|
float |
component2()
Vehicle speed expressed in meters per second
|
VehicleState |
copy(GeoLocation geoLocation,
float speed)
Location of our vehicle with meta information.
|
boolean |
equals(java.lang.Object p) |
GeoLocation |
getGeoLocation()
Geographical position of the vehicle
|
float |
getSpeed()
Vehicle speed expressed in meters per second
|
int |
hashCode() |
java.lang.String |
toString() |
public VehicleState(GeoLocation geoLocation, float speed)
Location of our vehicle with meta information.
geoLocation
- Geographical position of the vehiclespeed
- Vehicle speed expressed in meters per secondgeoLocation
- Geographical position of the vehiclespeed
- Vehicle speed expressed in meters per secondpublic GeoLocation getGeoLocation()
Geographical position of the vehicle
public float getSpeed()
Vehicle speed expressed in meters per second
public GeoLocation component1()
Geographical position of the vehicle
public float component2()
Vehicle speed expressed in meters per second
public VehicleState copy(GeoLocation geoLocation, float speed)
Location of our vehicle with meta information.
geoLocation
- Geographical position of the vehiclespeed
- Vehicle speed expressed in meters per secondpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)