public abstract class ModbusSlave extends Object implements FrameEventListenerList
| Modifier | Constructor and Description |
|---|---|
protected |
ModbusSlave() |
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
protected abstract void listenImpl()
throws ModbusIOException
ModbusIOExceptionprotected abstract void shutdownImpl()
throws ModbusIOException
ModbusIOExceptionpublic final void listen()
throws ModbusIOException
ModbusIOExceptionpublic final void shutdown()
throws ModbusIOException
ModbusIOExceptionpublic boolean isListening()
protected void setListening(boolean listening)
public DataHolder getDataHolder()
public void setDataHolder(DataHolderBuilder builder)
public void setDataHolder(DataHolder dataHolder)
public int getServerAddress()
public void setServerAddress(int serverAddress)
public boolean isBroadcastEnabled()
public void setBroadcastEnabled(boolean broadcastEnabled)
protected List<ModbusConnection> getConnectionList()
public void addListener(FrameEventListener listener)
addListener in interface FrameEventListenerListpublic void removeListener(FrameEventListener listener)
removeListener in interface FrameEventListenerListpublic void removeListeners()
removeListeners in interface FrameEventListenerListpublic void fireFrameReceivedEvent(FrameEvent event)
fireFrameReceivedEvent in interface FrameEventListenerListpublic void fireFrameSentEvent(FrameEvent event)
fireFrameSentEvent in interface FrameEventListenerListpublic int countListeners()
countListeners in interface FrameEventListenerListpublic void addObserver(Observer observer)
public void deleteObserver(Observer observer)
public void deleteObservers()
public int countObservers()
protected void notifyObservers(Object o)
Copyright © 2018. All rights reserved.