Class GreenhouseController


  • public class GreenhouseController
    extends java.lang.Object
    Controller for the greenhouse.
    • Constructor Detail

      • GreenhouseController

        public GreenhouseController​(java.util.Properties settings)
        Constructor.
        Parameters:
        settings - The loaded settings of the greenhouse.
    • Method Detail

      • registerGreenhouse

        public boolean registerGreenhouse​(GreenhouseSetup greenhouseSetup)
        Register a new greenhouse.
        Parameters:
        greenhouseSetup - The greenhouse settings, required to initialize the greenhouse.
        Returns:
        True if the greenhouse was successfully initialized, false otherwise.
      • isSetup

        public boolean isSetup()
        Check if the greenhouse is initialized.
        Returns:
        True if the greenhouse is initialized, false otherwise.