cz.cuni.amis.pogamut.usar2004.agent.module.geometry
Class SuperGeometry

Package class diagram package SuperGeometry
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.module.geometry.SuperGeometry
Direct Known Subclasses:
GeoMissionPackage, GeoSensorEffecter, VehicleGeometry

public abstract class SuperGeometry
extends Object

Parent class for all possible geometry subjects. It covers the basic and common properties for all the geometry subjects.

Author:
vejmanm

Field Summary
protected  GeometryType geoType
           
protected  GeometryMessage lastMessage
           
 
Constructor Summary
protected SuperGeometry(GeometryType type)
          Ctor.
 
Method Summary
 GeometryType getGeometryType()
          GeometryType is a descriptor used for creating particular instance and for getting type information about particular configuration subject.
 String getName()
          Name of the subject that this geometry message concerns.
 String getType()
          Type describes the vehicle type.
 Boolean isReady()
          Used to make sure the object is filled.
 void updateMessage(GeometryMessage 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

lastMessage

protected GeometryMessage lastMessage

geoType

protected GeometryType geoType
Constructor Detail

SuperGeometry

protected SuperGeometry(GeometryType type)
Ctor.

Parameters:
type - Geometry type describes particular subject about which we want to know about. It is used to distinguish incoming message from the server.
Method Detail

isReady

public Boolean isReady()
Used to make sure the object is filled.

Returns:
Returns true if the object is filled with Geo. message.

getType

public String getType()
Type describes the vehicle type. It will be one of the following values: "GroundVehicle”, “LeggedRobot”, “NauticVehicle”, or “AerialVehicle” of "Camera" or some kind of sensor or effecter or "MisPkg".

Returns:
Returns type of the geometry message.

getName

public String getName()
Name of the subject that this geometry message concerns.

Returns:
Returns the name of the Geometry item.

getGeometryType

public GeometryType getGeometryType()
GeometryType is a descriptor used for creating particular instance and for getting type information about particular configuration subject.

Returns:
Returns GeometryType.

updateMessage

public void updateMessage(GeometryMessage message)
Method used for updating the message object that provides particular properties for given type. Note that this object is created by yylex parser and contains properties for all configuration subject types. But only relevat to individual Geometry Subject are filled.

Parameters:
message - Geometry message from server.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.