public final class MasterOutstationAssociation extends Association
Constructor and Description |
---|
MasterOutstationAssociation(short localDeviceAddress,
short remoteDeviceAddress,
RemoteEndPoint remoteEndPoint)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
ReadTransaction.Request |
addReadRequest(Point point)
Adds a read request for a point.
|
WriteTransaction.Request |
addWriteRequest(PointValue pointValue)
Adds write request for a point value.
|
ReadTransaction.Response[] |
commitReadRequests()
Commits read requests.
|
WriteTransaction.Response[] |
commitWriteRequests()
Commits write requests.
|
void |
disconnect()
Disconnects.
|
byte |
getLatestRequestSequenceSent()
Gets the latest request sequenceSent.
|
Optional<Fragment> |
getLatestSolicitedResponseFragment()
Gets the latest solicited response fragment.
|
Optional<Fragment> |
getLatestUnsolicitedResponseFragment()
Gets the latest unsolicited response fragment.
|
boolean |
isUnsolicitedSupported()
Gets the unsolicited supported indicator.
|
boolean |
isWithOutstation()
Asks if with outstation.
|
void |
rollbackReadRequests()
Rolls back read requests.
|
void |
rollbackWriteRequests()
Rolls back write requests.
|
void |
setLatestRequestSequenceSent(byte latestRequestSequenceSent)
Sets the latest request sequence sent.
|
void |
setLatestSolicitedResponseFragment(Fragment latestSolicitedResponseFragment)
Sets the latest solicited response rragment.
|
void |
setLatestUnsolicitedResponseFragment(Fragment latestUnsolicitedResponseFragment)
Sets the latest unsolicited response fragment.
|
void |
setUnsolicitedSupported(boolean unsolicitedSupported)
Sets the unsolicited supported indicator.
|
close, equals, expectConfirm, getApplicationLayer, getConnection, getConnectionManager, getDataLinkLayer, getLocalDeviceAddress, getRemoteDeviceAddress, getRemoteEndPoint, getTransportFunction, hashCode, onConfirm, toString, waitForConfirm
public MasterOutstationAssociation(short localDeviceAddress, short remoteDeviceAddress, @Nonnull RemoteEndPoint remoteEndPoint)
localDeviceAddress
- The local device address.remoteDeviceAddress
- The remote device address.remoteEndPoint
- The remote end point.@Nonnull @CheckReturnValue public ReadTransaction.Request addReadRequest(@Nonnull Point point)
point
- The point.@Nonnull @CheckReturnValue public WriteTransaction.Request addWriteRequest(@Nonnull PointValue pointValue)
pointValue
- The point value.@Nonnull @CheckReturnValue public ReadTransaction.Response[] commitReadRequests() throws ServiceNotAvailableException
ServiceNotAvailableException
- On connection failure.@Nonnull @CheckReturnValue public WriteTransaction.Response[] commitWriteRequests() throws ServiceNotAvailableException
ServiceNotAvailableException
- On connection failure.public void disconnect()
@CheckReturnValue public byte getLatestRequestSequenceSent()
@Nonnull @CheckReturnValue public Optional<Fragment> getLatestSolicitedResponseFragment()
@Nonnull @CheckReturnValue public Optional<Fragment> getLatestUnsolicitedResponseFragment()
@CheckReturnValue public boolean isUnsolicitedSupported()
public boolean isWithOutstation()
isWithOutstation
in class Association
public void rollbackReadRequests()
public void rollbackWriteRequests()
public void setLatestRequestSequenceSent(byte latestRequestSequenceSent)
latestRequestSequenceSent
- The latest request sequence sent.public void setLatestSolicitedResponseFragment(@Nonnull Fragment latestSolicitedResponseFragment)
latestSolicitedResponseFragment
- The latest solicited response
fragment.public void setLatestUnsolicitedResponseFragment(@Nonnull Fragment latestUnsolicitedResponseFragment)
latestUnsolicitedResponseFragment
- The latest unsolicited response
fragment.public void setUnsolicitedSupported(boolean unsolicitedSupported)
unsolicitedSupported
- The unsolicited supported indicator.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.