Class Canopy
- java.lang.Object
-
- com.heisha.heisha_sdk.Component.BaseComponent
-
- com.heisha.heisha_sdk.Component.Canopy.Canopy
-
public class Canopy extends BaseComponent
Canopy control module- Version:
- 1.0.0
- Author:
- wmy
-
-
Constructor Summary
Constructors Constructor Description Canopy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Anemograph
getAnemograph()
Get wind meter instanceCanopyState
getCanopyState()
get canopy statusint
getClosedLimitSwitchStatus()
get the status of canopy closing limiter, 0-not triggered, 1-triggeredConnStatus
getConnectionState()
get canopy component connection statusHygrothermograph
getHygrothermograph()
Get an instance of hygrothermograph in the canopy.int
getOpenedLimitSwitchStatus()
get canopy limiter status,0-not triggered,1-triggeredvoid
onOperateReply(ServiceCode code, ServiceResult result)
Called back when feedback is received from the servicevoid
onPost()
Called back when the canopy module status property is reportedvoid
resetState()
reset the canopy control module statusvoid
setCanopyState(CanopyState canopyState)
void
setClosedLimitSwitchStatus(int closedLimitSwitchStatus)
void
setConnectionState(ConnStatus connectionState)
void
setOpenedLimitSwitchStatus(int openedLimitSwitchStatus)
void
setStateCallback(CanopyStateCallback callback)
Instance of implementing the event callback interface for the canopy control modulevoid
startClosing()
close canopyvoid
startOpening()
open 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 reportedCallbacks from the SDK itself
-
onOperateReply
public void onOperateReply(ServiceCode code, ServiceResult result)
Called back when feedback is received from the serviceCallbacks from the SDK itself
- Parameters:
code
- device service coderesult
- 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)
-
-