public class ModbusWriteTask extends ModbusTask implements org.ogema.core.resourcemanager.ResourceValueListener<org.ogema.core.model.ValueResource>
count, dataType, factor, functionCode, host, logger, offset, pattern, registerType, resource, startAddress, unitId| Constructor and Description |
|---|
ModbusWriteTask(ModbusPattern pattern,
org.ogema.core.model.ValueResource resource,
org.ogema.core.application.ApplicationManager appManager,
Map<InetSocketAddress,ScheduledExecutorService> executors) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
resourceChanged(org.ogema.core.model.ValueResource resource) |
String |
toString() |
void |
writeChannel(org.ogema.core.channelmanager.measurements.Value value,
Connection con) |
getCount, getDataType, getFactor, getFunctionCode, getHost, getLogger, getOffset, getPattern, getResource, getStartAddress, getUnitId, setCount, setDataType, setFactor, setFunctionCode, setHost, setLogger, setOffset, setPattern, setResource, setStartAddress, setUnitIdpublic ModbusWriteTask(ModbusPattern pattern, org.ogema.core.model.ValueResource resource, org.ogema.core.application.ApplicationManager appManager, Map<InetSocketAddress,ScheduledExecutorService> executors) throws Exception
Exceptionpublic void destroy()
destroy in class ModbusTaskpublic void resourceChanged(org.ogema.core.model.ValueResource resource)
resourceChanged in interface org.ogema.core.resourcemanager.ResourceValueListener<org.ogema.core.model.ValueResource>public void writeChannel(org.ogema.core.channelmanager.measurements.Value value,
Connection con)
throws com.ghgande.j2mod.modbus.ModbusIOException,
com.ghgande.j2mod.modbus.ModbusSlaveException,
com.ghgande.j2mod.modbus.ModbusException,
SocketTimeoutException,
SocketException
com.ghgande.j2mod.modbus.ModbusIOExceptioncom.ghgande.j2mod.modbus.ModbusSlaveExceptioncom.ghgande.j2mod.modbus.ModbusExceptionSocketTimeoutExceptionSocketExceptionpublic String toString()
toString in class ModbusTaskCopyright © 2018. All rights reserved.