lejos.util
Class PilotProps
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
lejos.util.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.Properties
Configuration class for Differential Pilot.
- Author:
- Lawrie Griffiths
- See Also:
- Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
PilotProps
public PilotProps()
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)