public class BlaubotEthernetAdapter extends java.lang.Object implements IBlaubotAdapter
| Constructor and Description |
|---|
BlaubotEthernetAdapter(IBlaubotDevice ownDevice,
int acceptorPort,
java.net.InetAddress ownInetAddr)
Sets up the Adapter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
protected int |
getAcceptorPort() |
Blaubot |
getBlaubot()
Get the current blaubot instance
|
BlaubotAdapterConfig |
getBlaubotAdapterConfig()
Configuration object for hardware specific adapter settings.
|
IBlaubotConnectionAcceptor |
getConnectionAcceptor()
Get the connection acceptor that is in charge to retrieve incoming connections issued by compatible
IBlaubotConnector implementations.
|
ConnectionStateMachineConfig |
getConnectionStateMachineConfig()
The adapter specific
ConnectionStateMachine configuration. |
IBlaubotConnector |
getConnector()
Get the connector for this adapter.
|
int |
hashCode() |
void |
setBlaubot(Blaubot blaubotInstance)
Setter for dependency injection of the blaubot instance.
|
public BlaubotEthernetAdapter(IBlaubotDevice ownDevice, int acceptorPort, java.net.InetAddress ownInetAddr)
ownDevice - the own blaubot deviceacceptorPort - the acceptor portownInetAddr - the inet addr to listen onpublic IBlaubotConnector getConnector()
IBlaubotAdaptergetConnector in interface IBlaubotAdapterpublic IBlaubotConnectionAcceptor getConnectionAcceptor()
IBlaubotAdaptergetConnectionAcceptor in interface IBlaubotAdapterprotected int getAcceptorPort()
public void setBlaubot(Blaubot blaubotInstance)
IBlaubotAdaptersetBlaubot in interface IBlaubotAdapterblaubotInstance - the blaubot instancepublic Blaubot getBlaubot()
IBlaubotAdaptergetBlaubot in interface IBlaubotAdapterpublic ConnectionStateMachineConfig getConnectionStateMachineConfig()
IBlaubotAdapterConnectionStateMachine configuration.getConnectionStateMachineConfig in interface IBlaubotAdapterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic BlaubotAdapterConfig getBlaubotAdapterConfig()
IBlaubotAdaptergetBlaubotAdapterConfig in interface IBlaubotAdapter