public class ModbusSlave extends Object implements MasterFactory.Listener
Constructor and Description |
---|
ModbusSlave(String id,
org.osgi.framework.BundleContext context,
MasterFactory masterFactory,
Executor executor,
AtomicInteger transactionId) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(Map<String,String> properties) |
static ModbusSlave |
create(org.osgi.framework.BundleContext context,
Executor executor,
String configurationId,
Map<String,String> parameters,
MasterFactory masterFactory,
AtomicInteger transactionId) |
Object |
createPollRequest(int transactionId,
Request request) |
void |
dispose() |
byte |
getSlaveAddress() |
long |
getTimeoutQuietPeriod() |
void |
masterAdded(String id,
ModbusMaster master) |
void |
masterRemoved(String id,
ModbusMaster master) |
void |
start(ModbusMaster master,
JobManager jobManager) |
void |
stop() |
void |
writeCommand(Object command,
long timeout) |
public ModbusSlave(String id, org.osgi.framework.BundleContext context, MasterFactory masterFactory, Executor executor, AtomicInteger transactionId)
public static ModbusSlave create(org.osgi.framework.BundleContext context, Executor executor, String configurationId, Map<String,String> parameters, MasterFactory masterFactory, AtomicInteger transactionId)
public void dispose()
public void masterAdded(String id, ModbusMaster master)
masterAdded
in interface MasterFactory.Listener
public void masterRemoved(String id, ModbusMaster master)
masterRemoved
in interface MasterFactory.Listener
public void start(ModbusMaster master, JobManager jobManager)
public void stop()
public byte getSlaveAddress()
public void writeCommand(Object command, long timeout)
public long getTimeoutQuietPeriod()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.