|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.net.UDPMasterConnection
Class that implements a UDPMasterConnection.
Constructor Summary | |
UDPMasterConnection(java.net.InetAddress adr)
Constructs a UDPMasterConnection instance with a given destination address. |
Method Summary | |
void |
close()
Closes this UDPMasterConnection. |
void |
connect()
Opens this UDPMasterConnection. |
java.net.InetAddress |
getAddress()
Returns the destination InetAddress of this UDPMasterConnection. |
ModbusTransport |
getModbusTransport()
Returns the ModbusTransport associated with this UDPMasterConnection. |
int |
getPort()
Returns the destination port of this UDPMasterConnection. |
UDPTerminal |
getTerminal()
Returns the terminal used for handling the package traffic. |
int |
getTimeout()
Returns the timeout for this UDPMasterConnection. |
boolean |
isConnected()
Tests if this UDPMasterConnection is connected. |
void |
setAddress(java.net.InetAddress adr)
Sets the destination InetAddress of this UDPMasterConnection. |
void |
setPort(int port)
Sets the destination port of this UDPMasterConnection. |
void |
setTimeout(int timeout)
Sets the timeout for this UDPMasterConnection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UDPMasterConnection(java.net.InetAddress adr)
adr
- the destination InetAddress.Method Detail |
public void connect() throws java.lang.Exception
java.lang.Exception
- if there is a network failure.public void close()
public ModbusTransport getModbusTransport()
public UDPTerminal getTerminal()
public int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout as int.public int getPort()
public void setPort(int port)
port
- the port number as int.public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress adr)
adr
- the destination address as InetAddress.public boolean isConnected()
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |