public class SuperState extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StateMessage |
lastMessage |
protected VehicleType |
vehicleType |
| Modifier | Constructor and Description |
|---|---|
|
SuperState()
Ctor.
|
protected |
SuperState(VehicleType type)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBattery()
Power state of the battery.
|
int |
getFlashLightIntensity()
Light intensity of the headlight.
|
double |
getTime()
Timestamp form the UT since server start in seconds.
|
String |
getType()
Type will be one of the following values: "GroundVehicle”, “LeggedRobot”,
“NauticVehicle”, or “AerialVehicle”.
|
VehicleType |
getVehicleType()
VehicleType is a descriptor used for creating particular instance and for
getting type information about particular state subject.
|
boolean |
isFlashLightToogle()
Indicate whether the headlight has been turned on.
|
Boolean |
isReady()
Used to make sure the object is filled.
|
void |
updateMessage(StateMessage message)
Method used for updating the message object that provides particular
properties for given type.
|
protected StateMessage lastMessage
protected VehicleType vehicleType
public SuperState()
protected SuperState(VehicleType type)
type - Configuration type describes particular subject about which
we want to know about. It is used to distinguish incoming message from
the server.public void updateMessage(StateMessage message)
message - State message from server.public double getTime()
public Boolean isReady()
public String getType()
public int getBattery()
public int getFlashLightIntensity()
public boolean isFlashLightToogle()
public VehicleType getVehicleType()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.