Package lejos.utility
Class PilotProps
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- lejos.utility.PilotProps
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.Object,java.lang.Object>
public class PilotProps extends java.util.PropertiesConfiguration class for Differential Pilot.- Author:
- Lawrie Griffiths
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_LEFTMOTORstatic java.lang.StringKEY_REVERSEstatic java.lang.StringKEY_RIGHTMOTORstatic java.lang.StringKEY_TRACKWIDTHstatic java.lang.StringKEY_WHEELDIAMETERstatic java.lang.StringPERSISTENT_FILENAME
-
Constructor Summary
Constructors Constructor Description PilotProps()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegulatedMotorgetMotor(java.lang.String motor)Utility method to get Motor instance from string (A, B or C)voidloadPersistentValues()voidstorePersistentValues()-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Field Detail
-
PERSISTENT_FILENAME
public static final java.lang.String PERSISTENT_FILENAME
- See Also:
- Constant Field Values
-
KEY_WHEELDIAMETER
public static final java.lang.String KEY_WHEELDIAMETER
- See Also:
- Constant Field Values
-
KEY_TRACKWIDTH
public static final java.lang.String KEY_TRACKWIDTH
- See Also:
- Constant Field Values
-
KEY_LEFTMOTOR
public static final java.lang.String KEY_LEFTMOTOR
- See Also:
- Constant Field Values
-
KEY_RIGHTMOTOR
public static final java.lang.String KEY_RIGHTMOTOR
- See Also:
- Constant Field Values
-
KEY_REVERSE
public static final java.lang.String KEY_REVERSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadPersistentValues
public void loadPersistentValues() throws java.io.IOException- Throws:
java.io.IOException
-
storePersistentValues
public void storePersistentValues() throws java.io.IOException- Throws:
java.io.IOException
-
getMotor
public static RegulatedMotor getMotor(java.lang.String motor)
Utility method to get Motor instance from string (A, B or C)
-
-