1 /* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 package cz.cuni.amis.pogamut.usar2004.agent.module.configuration; 6 7 import cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.ConfigType; 8 9 /** 10 * Configuration for Vehicles - Ground, Aerial, Legged and Nautic share 11 * properties present here. 12 * 13 * @author vejmanm 14 */ 15 public abstract class VehicleConfiguration extends SuperConfiguration 16 { 17 /** 18 * Ctor. 19 * 20 * @param type Configuration type describes particular subject about which 21 * we want to know about. It is used to distinguish incoming message from 22 * the server. 23 */ 24 public VehicleConfiguration(ConfigType type) 25 { 26 super(type); 27 } 28 29 /** 30 * Value should be one of the following: “AckermanSteered” or “SkidSteered” 31 * or “OmniDrive”, as dictated by the steering type of the robot. 32 * 33 * @return Returns steering type of the robot. 34 */ 35 public String getSteeringType() 36 { 37 return lastMessage.getSteeringType(); 38 } 39 40 /** 41 * It is the robot's mass in kg. 42 * 43 * @return Returns mass of the robot. 44 */ 45 public double getMass() 46 { 47 return lastMessage.getMass(); 48 } 49 }