com.langner.jmatic2
Interface IConnection

All Known Subinterfaces:
ITransport
All Known Implementing Classes:
FetchWrite, S7Functions, com.langner.jmatic2.TransportImpl

public interface IConnection

Interface for connection handling used within the package com.langner.jmatic

Version:
2.0
Author:
Langner Communications AG
Copyright:
Langner (c) 2001-2005

Method Summary
 void connect()
          This method establishes a connection
 void disconnect()
          This method closes a connection
 boolean isConnected()
          Returns the connection status of the connection.
 

Method Detail

connect

public void connect()
             throws JMaticException,
                    java.io.IOException
This method establishes a connection

Throws:
JMaticException
IOException

disconnect

public void disconnect()
                throws JMaticException,
                       java.io.IOException
This method closes a connection

Throws:
JMaticException
IOException

isConnected

public boolean isConnected()
Returns the connection status of the connection. Indicates whether a connection is established.

Returns:
true if the object is connected, otherwise false.
See Also:
connect, disconnect


Copyright © 2001-2005 Langner Communications AG. All Rights Reserved.