Jadex 0.941

jadex.adapter
Interface IConnection


public interface IConnection

todo: we need to refactor this, either IConnection will be usable for more than only standalone todo: adapter or if not it should be moved (problem is used is AgentIdentifier) IConnection

Since:
Aug 22, 2005
Author:
walczak

Field Summary
static IConnection DEAD_CONNECTION
          DEAD_CONNECTION: used to mark connections without an end
static IConnection LOCAL_CONNECTION
          LOCAL_CONNECTION: used to mark local connections
static String SENDER
          The sender field of a message.
 
Method Summary
 void close()
          Used to close the connection
 String getAddress()
           
 boolean isClosed()
           
 void send(IMessage message)
          Send a hashmap.
 

Field Detail

SENDER

public static final String SENDER
The sender field of a message.

See Also:
Constant Field Values

DEAD_CONNECTION

public static final IConnection DEAD_CONNECTION
DEAD_CONNECTION: used to mark connections without an end


LOCAL_CONNECTION

public static final IConnection LOCAL_CONNECTION
LOCAL_CONNECTION: used to mark local connections

Method Detail

send

public void send(IMessage message)
          throws MessageFailureException
Send a hashmap.

Parameters:
message -
Throws:
MessageFailureException

close

public void close()
Used to close the connection


isClosed

public boolean isClosed()
Returns:
True, if the connection is closed

getAddress

public String getAddress()
Returns:
the String representation of an address

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.