public abstract class Association
extends Object
Modifier | Constructor and Description |
---|---|
protected |
Association(short localDeviceAddress,
short remoteDeviceAddress,
RemoteEndPoint remoteEndPoint)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes.
|
boolean |
equals(Object object) |
void |
expectConfirm()
Expects a confirm fragment.
|
ApplicationLayer |
getApplicationLayer()
Gets the application layer.
|
Connection |
getConnection()
Gets the connection.
|
ConnectionManager |
getConnectionManager()
Gets the connection manager.
|
DataLinkLayer |
getDataLinkLayer()
Gets the dataLink layer.
|
short |
getLocalDeviceAddress()
Gets the local device address.
|
short |
getRemoteDeviceAddress()
Gets the remote device address.
|
RemoteEndPoint |
getRemoteEndPoint()
Gets the remote end point.
|
TransportFunction |
getTransportFunction()
Gets the transport function.
|
int |
hashCode() |
abstract boolean |
isWithOutstation()
Asks if with outstation.
|
void |
onConfirm()
Called on receipt of a confirm fragment.
|
String |
toString() |
void |
waitForConfirm()
Waits for a confirm fragment.
|
protected Association(short localDeviceAddress, short remoteDeviceAddress, @Nonnull RemoteEndPoint remoteEndPoint)
localDeviceAddress
- The local device address.remoteDeviceAddress
- The remote device address.remoteEndPoint
- The remote end point.public void close()
public boolean equals(Object object)
equals
in class Object
public void expectConfirm()
@Nonnull @CheckReturnValue public final ApplicationLayer getApplicationLayer()
@Nullable @CheckReturnValue public final Connection getConnection()
@Nonnull @CheckReturnValue public final ConnectionManager getConnectionManager()
@Nonnull @CheckReturnValue public final DataLinkLayer getDataLinkLayer()
@CheckReturnValue public final short getLocalDeviceAddress()
@CheckReturnValue public final short getRemoteDeviceAddress()
@Nonnull @CheckReturnValue public final RemoteEndPoint getRemoteEndPoint()
@Nonnull @CheckReturnValue public final TransportFunction getTransportFunction()
public int hashCode()
hashCode
in class Object
@CheckReturnValue public abstract boolean isWithOutstation()
public void onConfirm()
public String toString()
toString
in class Object
public void waitForConfirm() throws InterruptedException
InterruptedException
- When interrupted.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.