|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.usar2004.agent.module.state.SuperState
public class SuperState
Parent class for all possible state subjects. It covers the basic and common properties for all the state subjects.
| Field Summary | |
|---|---|
protected StateMessage |
lastMessage
|
protected VehicleType |
vehicleType
|
| Constructor Summary | |
|---|---|
|
SuperState()
Ctor. |
protected |
SuperState(VehicleType type)
Ctor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StateMessage lastMessage
protected VehicleType vehicleType
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||