C# Класс BACnet.Core.App.Transactions.ClientTransaction

Наследование: IDisposable, IDeviceSearchCallback
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RequestTimeout System.TimeSpan
SegmentTimeout System.TimeSpan

Открытые методы

Метод Описание
Abort ( AbortReason reason ) : void

Aborts the transaction

ClientTransaction ( Host host, TransactionManager manager, ClientTransactionHandle handle, byte invokeId, Address deviceAddress, byte serviceChoice, byte request ) : System

Constructs a new ClientTransaction instance

ClientTransaction ( Host host, TransactionManager manager, ClientTransactionHandle handle, byte invokeId, uint deviceInstance, byte serviceChoice, byte request ) : System

Constructs a new ClientTransaction instance

Dispose ( ) : void

Disposes of the transaction

IDeviceSearchCallback ( ) : void

Called when a device search times out

IDeviceSearchCallback ( DeviceTableEntry entry ) : void

Called when the device search completes, and results in a device table entry

Matches ( Address address, byte invokeId ) : bool

Determines whether this transaction matches a supplied remote address and invoke id pair

OnAbort ( AbortMessage message ) : void

Called whenever an abort message is received for this transaction

OnComplexAck ( ComplexAckMessage message, BufferSegment segment ) : void

Called whenever a complex ack is received for this transaction

OnError ( ErrorMessage message ) : void

Called whenever an error message is received for this transaction

OnReject ( RejectMessage message ) : void

Called whenever a reject message is received for this transaction

OnSegmentAck ( SegmentAckMessage message ) : void

Called whenever a segment ack is received for this transaction

OnSimpleAck ( SimpleAckMessage message ) : void

Called whenever a simple ack is received for this transaction

Приватные методы

Метод Описание
_disposeAll ( ) : void

Disposes of all resources held by the transaction

_inWindow ( byte sequenceNumber ) : int

Determines whether the supplied sequence number is within the current window

_requestTick ( object state ) : void

Called whenever the request timer ticks

_segmentTick ( object state ) : void

Called whenever the segment timer ticks

_sendAbort ( AbortReason reason ) : void

Sends an abort message

_sendInitialRequestSegment ( ) : void

Sends the very first segment in the request

_sendSegmentAck ( bool nack = false ) : void

Sends a segment ack

_startRequestTimer ( ) : void

Starts the request timer

_startSegmentTimer ( ) : void

Starts the segment timer

_stopRequestTimer ( ) : void

Disposes of the request timer

_stopSegmentTimer ( ) : void

Disposes of the segment timer

_transitionTo ( ClientState state ) : void

Performs necessary transitions operations to move to the supplied state

Описание методов

Abort() публичный метод

Aborts the transaction
public Abort ( AbortReason reason ) : void
reason AbortReason
Результат void

ClientTransaction() публичный метод

Constructs a new ClientTransaction instance
public ClientTransaction ( Host host, TransactionManager manager, ClientTransactionHandle handle, byte invokeId, Address deviceAddress, byte serviceChoice, byte request ) : System
host Host The host that initiated the transaction
manager TransactionManager The transaction manager
handle ClientTransactionHandle The handle used to control this transaction and process its response
invokeId byte The invocation id for the transaction
deviceAddress BACnet.Core.Network.Address The address of the destination device
serviceChoice byte The service choice of the request
request byte The request content
Результат System

ClientTransaction() публичный метод

Constructs a new ClientTransaction instance
public ClientTransaction ( Host host, TransactionManager manager, ClientTransactionHandle handle, byte invokeId, uint deviceInstance, byte serviceChoice, byte request ) : System
host Host The host that initiated the transaction
manager TransactionManager The transaction manager
handle ClientTransactionHandle The handle used to control this transaction and process its response
invokeId byte The invocation id for the transaction
deviceInstance uint The instance of the destination device
serviceChoice byte The service choice of the request
request byte The request content
Результат System

Dispose() публичный метод

Disposes of the transaction
public Dispose ( ) : void
Результат void

IDeviceSearchCallback() публичный метод

Called when a device search times out
public IDeviceSearchCallback ( ) : void
Результат void

IDeviceSearchCallback() публичный метод

Called when the device search completes, and results in a device table entry
public IDeviceSearchCallback ( DeviceTableEntry entry ) : void
entry DeviceTableEntry The entry that was found
Результат void

Matches() публичный метод

Determines whether this transaction matches a supplied remote address and invoke id pair
public Matches ( Address address, byte invokeId ) : bool
address BACnet.Core.Network.Address The remote address
invokeId byte The invoke id
Результат bool

OnAbort() публичный метод

Called whenever an abort message is received for this transaction
public OnAbort ( AbortMessage message ) : void
message BACnet.Core.App.Messages.AbortMessage The abort message
Результат void

OnComplexAck() публичный метод

Called whenever a complex ack is received for this transaction
public OnComplexAck ( ComplexAckMessage message, BufferSegment segment ) : void
message BACnet.Core.App.Messages.ComplexAckMessage The received message
segment BufferSegment The segment
Результат void

OnError() публичный метод

Called whenever an error message is received for this transaction
public OnError ( ErrorMessage message ) : void
message BACnet.Core.App.Messages.ErrorMessage The error message
Результат void

OnReject() публичный метод

Called whenever a reject message is received for this transaction
public OnReject ( RejectMessage message ) : void
message BACnet.Core.App.Messages.RejectMessage The reject message
Результат void

OnSegmentAck() публичный метод

Called whenever a segment ack is received for this transaction
public OnSegmentAck ( SegmentAckMessage message ) : void
message BACnet.Core.App.Messages.SegmentAckMessage The segment ack message
Результат void

OnSimpleAck() публичный метод

Called whenever a simple ack is received for this transaction
public OnSimpleAck ( SimpleAckMessage message ) : void
message BACnet.Core.App.Messages.SimpleAckMessage The received message
Результат void

Описание свойств

RequestTimeout публичное статическое свойство

The time to wait fro a response to the transaction
public static TimeSpan,System RequestTimeout
Результат System.TimeSpan

SegmentTimeout публичное статическое свойство

The time to wait for the next segment
public static TimeSpan,System SegmentTimeout
Результат System.TimeSpan