Class Canopy


  • public class Canopy
    extends BaseComponent
    Canopy control module
    Version:
    1.0.0
    Author:
    wmy
    • Constructor Detail

      • Canopy

        public Canopy()
    • Method Detail

      • startOpening

        public void startOpening()
        open canopy
      • startClosing

        public void startClosing()
        close canopy
      • resetState

        public void resetState()
        reset the canopy control module status
      • setStateCallback

        public void setStateCallback​(CanopyStateCallback callback)
        Instance of implementing the event callback interface for the canopy control module
        Parameters:
        callback - Instance of event callback interface for canopy control module
      • onPost

        public void onPost()
        Called back when the canopy module status property is reported

        Callbacks from the SDK itself

      • onOperateReply

        public void onOperateReply​(ServiceCode code,
                                   ServiceResult result)
        Called back when feedback is received from the service

        Callbacks from the SDK itself

        Parameters:
        code - device service code
        result - Feedback result off service delivery
      • getConnectionState

        public ConnStatus getConnectionState()
        get canopy component connection status
        Returns:
        component connection status
      • setConnectionState

        public void setConnectionState​(ConnStatus connectionState)
      • getCanopyState

        public CanopyState getCanopyState()
        get canopy status
        Returns:
        canopy status
      • setCanopyState

        public void setCanopyState​(CanopyState canopyState)
      • getHygrothermograph

        public Hygrothermograph getHygrothermograph()
        Get an instance of hygrothermograph in the canopy.
        Returns:
        Hygrothermograph instance
      • getAnemograph

        public Anemograph getAnemograph()
        Get wind meter instance
        Returns:
        wind meter
      • getOpenedLimitSwitchStatus

        public int getOpenedLimitSwitchStatus()
        get canopy limiter status,0-not triggered,1-triggered
        Returns:
        limiter status
      • setOpenedLimitSwitchStatus

        public void setOpenedLimitSwitchStatus​(int openedLimitSwitchStatus)
      • getClosedLimitSwitchStatus

        public int getClosedLimitSwitchStatus()
        get the status of canopy closing limiter, 0-not triggered, 1-triggered
        Returns:
        limiter status
      • setClosedLimitSwitchStatus

        public void setClosedLimitSwitchStatus​(int closedLimitSwitchStatus)