|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.wimpi.modbus.net.UDPMasterConnection
public class UDPMasterConnection
Class that implements a UDPMasterConnection.
| Field Summary | |
|---|---|
private InetAddress |
m_Address
|
private boolean |
m_Connected
|
private int |
m_Port
|
private UDPMasterTerminal |
m_Terminal
|
private int |
m_Timeout
|
| Constructor Summary | |
|---|---|
UDPMasterConnection(InetAddress adr)
Constructs a UDPMasterConnection instance with a given destination address. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this UDPMasterConnection. |
void |
connect()
Opens this UDPMasterConnection. |
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(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 |
| Field Detail |
|---|
private UDPMasterTerminal m_Terminal
private int m_Timeout
private boolean m_Connected
private InetAddress m_Address
private int m_Port
| Constructor Detail |
|---|
public UDPMasterConnection(InetAddress adr)
adr - the destination InetAddress.| Method Detail |
|---|
public void connect()
throws Exception
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 InetAddress getAddress()
public void setAddress(InetAddress adr)
adr - the destination address as InetAddress.public boolean isConnected()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||