lejos.util
Class PilotProps

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by 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

Field Summary
static java.lang.String KEY_LEFTMOTOR
           
static java.lang.String KEY_REVERSE
           
static java.lang.String KEY_RIGHTMOTOR
           
static java.lang.String KEY_TRACKWIDTH
           
static java.lang.String KEY_WHEELDIAMETER
           
static java.lang.String PERSISTENT_FILENAME
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PilotProps()
           
 
Method Summary
static RegulatedMotor getMotor(java.lang.String motor)
          Utility method to get Motor instance from string (A, B or C)
 void loadPersistentValues()
           
 void storePersistentValues()
           
 
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
 

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
Constructor Detail

PilotProps

public PilotProps()
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)