public abstract class BaseSmartDevice extends BaseDevice implements ControlComponentChangeListener, IBaSysNativeDeviceStatus
| Constructor and Description |
|---|
BaseSmartDevice()
Initializes BaseSmartDevice with a SimpleControlComponent
|
BaseSmartDevice(ControlComponent component)
Initializes BaseSmartDevice with an arbitary
ControlComponent |
| Modifier and Type | Method and Description |
|---|---|
ControlComponent |
getControlComponent()
Get control component instance
|
void |
onChangedErrorState(String newWorkState)
Smart device control component indicates an error state change
|
void |
onChangedExecutionMode(ExecutionMode newExecutionMode)
Smart device control component indicates an execution mode change
|
void |
onChangedExecutionState(ExecutionState newExecutionState)
Smart device control component indicates an execution state change
|
void |
onChangedOperationMode(String newOperationMode)
Smart device control component indicates an operation mode change
|
void |
onChangedWorkState(String newWorkState)
Smart device control component indicates a work state change
|
void |
onNewOccupationState(OccupationState state)
Smart device control component indicates an occupation state change
|
void |
onNewOccupier(String occupierId)
Smart device control component indicates an occupier change
|
void |
onVariableChange(String varName,
Object newValue)
Smart device control component indicates a variable change
|
void |
start()
Start smart device
|
void |
statusChange(String newStatus)
Indicate device status change
|
deviceInitialized, resetCompleted, serviceCompleted, serviceRunningconfigure, configureComponent, getName, hasEnded, setConnectedAASManager, setName, stop, waitForequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeviceInitialized, resetCompleted, serviceCompleted, serviceRunningpublic BaseSmartDevice()
public BaseSmartDevice(ControlComponent component)
ControlComponentcomponent - public void start()
start in interface org.eclipse.basyx.vab.service.api.BaSyxServicestart in class BaseBaSyxServicepublic ControlComponent getControlComponent()
public void statusChange(String newStatus)
public void onVariableChange(String varName, Object newValue)
onVariableChange in interface ControlComponentChangeListenerpublic void onNewOccupier(String occupierId)
onNewOccupier in interface ControlComponentChangeListenerpublic void onNewOccupationState(OccupationState state)
onNewOccupationState in interface ControlComponentChangeListenerpublic void onChangedExecutionMode(ExecutionMode newExecutionMode)
onChangedExecutionMode in interface ControlComponentChangeListenerpublic void onChangedExecutionState(ExecutionState newExecutionState)
onChangedExecutionState in interface ControlComponentChangeListenerpublic void onChangedOperationMode(String newOperationMode)
onChangedOperationMode in interface ControlComponentChangeListenerpublic void onChangedWorkState(String newWorkState)
onChangedWorkState in interface ControlComponentChangeListenerpublic void onChangedErrorState(String newWorkState)
onChangedErrorState in interface ControlComponentChangeListenerCopyright © 2021. All rights reserved.