public abstract class AbstractConnection
extends java.lang.Object
implements jadex.bridge.IConnection
Modifier and Type | Field and Description |
---|---|
protected IAbstractConnectionHandler |
ch
The abstract connection handler.
|
protected boolean |
closed |
protected boolean |
closing |
protected int |
id
The connection id.
|
protected boolean |
ini
The initiator flag.
|
protected boolean |
inited
Boolean flag if connection is inited, closing, closed.
|
protected jadex.bridge.ITransportComponentIdentifier |
initiator
The connection initiator.
|
protected boolean |
input
The input flag.
|
protected jadex.bridge.ITransportComponentIdentifier |
participant
The participant.
|
Constructor and Description |
---|
AbstractConnection(jadex.bridge.ITransportComponentIdentifier sender,
jadex.bridge.ITransportComponentIdentifier receiver,
int id,
boolean input,
boolean initiator,
IAbstractConnectionHandler ch)
Create a new input connection.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
IAbstractConnectionHandler |
getConnectionHandler()
Get the connection handler.
|
int |
getConnectionId()
Get the id.
|
jadex.bridge.ITransportComponentIdentifier |
getInitiator()
Get the initiator.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNonFunctionalProperties()
Get the non-functional properties of the connection.
|
jadex.bridge.ITransportComponentIdentifier |
getParticipant()
Get the participant.
|
boolean |
isClosed()
Get the closed.
|
boolean |
isClosing()
Get the closed.
|
boolean |
isInited()
Get the inited.
|
boolean |
isInitiatorSide()
Test if this connection is the initiator side.
|
boolean |
isInputConnection()
Test if this connection is an input connection.
|
void |
setClosed()
Set the connection to closed.
|
void |
setClosing()
Set the connection to closed.
|
void |
setInited()
Set the inited.
|
protected boolean inited
protected boolean closed
protected boolean closing
protected int id
protected jadex.bridge.ITransportComponentIdentifier initiator
protected jadex.bridge.ITransportComponentIdentifier participant
protected boolean input
protected boolean ini
protected IAbstractConnectionHandler ch
public AbstractConnection(jadex.bridge.ITransportComponentIdentifier sender, jadex.bridge.ITransportComponentIdentifier receiver, int id, boolean input, boolean initiator, IAbstractConnectionHandler ch)
public int getConnectionId()
getConnectionId
in interface jadex.bridge.IConnection
public jadex.bridge.ITransportComponentIdentifier getInitiator()
getInitiator
in interface jadex.bridge.IConnection
public jadex.bridge.ITransportComponentIdentifier getParticipant()
getParticipant
in interface jadex.bridge.IConnection
public boolean isInited()
public void setInited()
inited
- The inited to set.public void setClosing()
public void setClosed()
public boolean isClosing()
public boolean isClosed()
public void close()
close
in interface jadex.bridge.IConnection
public boolean isInitiatorSide()
public boolean isInputConnection()
public java.util.Map<java.lang.String,java.lang.Object> getNonFunctionalProperties()
getNonFunctionalProperties
in interface jadex.bridge.IConnection
public IAbstractConnectionHandler getConnectionHandler()