Package lejos.utility

Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      PilotProps()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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)