Package org.avineas.comli.impl

Implementation of the ABB Comli PLC protocol interfaces both at the slave handling and the master side.

See: Description

Package org.avineas.comli.impl Description

Implementation of the ABB Comli PLC protocol interfaces both at the slave handling and the master side.

Main classes

The main classes of this package are MasterImpl and SlaveManager, which as their name already suggest implement the master and the slave side of the COMLI protocol.

MasterImpl implements the master side taking a channel to communicate over and a time-out value for responses as parameters. The master sends a message to a specific slave and waits for the response from the slave. The handling depends on the method invoked on the master, as indicates in Master.

SlaveManager maintains a set of slaves. It reads continuously from a channel and dispatches the message received to one of the Slave instances it manages. The response from the slave is sent back as a reply to the master. The slaves are linked to the slave manager via the SlaveProvider interface, in non-OSGi environments normally handled via the SimpleSlaveProvider class.