See: Description
| Interface | Description |
|---|---|
| SlaveProvider |
Provider of slave information by the identification of a slave.
|
| Class | Description |
|---|---|
| AddressContents |
Address related contents for a COMLI packet.
|
| LinkHandler |
A set with static methods that can be used for reading and writing COMLI packets.
|
| MasterImpl |
COMLI master.
|
| Packet |
Abstraction of a COMLI packet as received at datalink
level, meaning: destination, stamp, message type and
contents.
|
| SimpleSlaveProvider |
Simple implementation of a slave provider.
|
| SlaveManager |
Manager of a line containing a link to multiple slaves.
|
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.