lejos.util
Class PilotProps

java.lang.Object
  extended by java.util.Hashtable<Object,Object>
      extended by java.util.Properties
          extended by lejos.util.PilotProps

public class PilotProps
extends Properties

Configuration class for Differential Pilot.

Author:
Lawrie Griffiths

Field Summary
static String KEY_LEFTMOTOR
           
static String KEY_REVERSE
           
static String KEY_RIGHTMOTOR
           
static String KEY_TRACKWIDTH
           
static String KEY_WHEELDIAMETER
           
static String PERSISTENT_FILENAME
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PilotProps()
           
 
Method Summary
static RegulatedMotor getMotor(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, load, propertyNames, setProperty, store
 
Methods inherited from class java.util.Hashtable
get, keys, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERSISTENT_FILENAME

public static final String PERSISTENT_FILENAME
See Also:
Constant Field Values

KEY_WHEELDIAMETER

public static final String KEY_WHEELDIAMETER
See Also:
Constant Field Values

KEY_TRACKWIDTH

public static final String KEY_TRACKWIDTH
See Also:
Constant Field Values

KEY_LEFTMOTOR

public static final String KEY_LEFTMOTOR
See Also:
Constant Field Values

KEY_RIGHTMOTOR

public static final String KEY_RIGHTMOTOR
See Also:
Constant Field Values

KEY_REVERSE

public static final String KEY_REVERSE
See Also:
Constant Field Values
Constructor Detail

PilotProps

public PilotProps()
Method Detail

loadPersistentValues

public void loadPersistentValues()
                          throws IOException
Throws:
IOException

storePersistentValues

public void storePersistentValues()
                           throws IOException
Throws:
IOException

getMotor

public static RegulatedMotor getMotor(String motor)
Utility method to get Motor instance from string (A, B or C)