Class LnSensorManager

    • Method Detail

      • createNewSensor

        @Nonnull
        protected Sensor createNewSensor​(@Nonnull
                                         java.lang.String systemName,
                                         java.lang.String userName)
                                  throws java.lang.IllegalArgumentException
        Internal method to invoke the factory and create a new Sensor. Called after all the logic for returning an existing Sensor has been invoked. An existing SystemName is not found, existing UserName not found. Implementing classes should base Sensor on the system name, then add user name.
        Overrides:
        createNewSensor in class LnSensorManager
        Parameters:
        systemName - the system name to use for the new Sensor
        userName - the optional user name to use for the new Sensor
        Returns:
        the new Sensor
        Throws:
        java.lang.IllegalArgumentException - if unsuccessful with reason for fail.