public class AdsNotificationAttrib
extends com.sun.jna.Structure
Warning: Too many notifications can load the system so heavily that the user interface becomes much slower.
Tip: Set the cycle time to the most appropriate values, and always close connections when they are no longer required.
| Modifier and Type | Field and Description |
|---|---|
int |
cbLength |
int |
nCycleTime |
int |
nMaxDelay |
int |
nTransMode |
| Constructor and Description |
|---|
AdsNotificationAttrib()
For use by JNA.
|
AdsNotificationAttrib(int cbLength,
int nTransMode,
int nMaxDelay,
int nCycleTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected List<String> |
getFieldOrder() |
int |
hashCode() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeFieldpublic int cbLength
public int nTransMode
public int nMaxDelay
public int nCycleTime
public AdsNotificationAttrib(int cbLength,
int nTransMode,
int nMaxDelay,
int nCycleTime)
cbLength - Length in bytes of the data that is to be transmitted
from the server and passed to the client's callback function.nTransMode - See ADSLibrary.TransModenMaxDelay - The maximum length of time that a notification
may spend in the server's FIFO before being sent to the client.
Normally the server will wait until the FIFO is full. The time unit
is 100 nanosec.nCycleTime - Specifies the interval in 100 ns units between the times
when the ADS server decides whether or not to send a new notification.
The smallest possible value is the cycle
time of the ADS server; for the PLC, this is the task cycle time.
This is also what you get when you use a value of zero.public AdsNotificationAttrib()
Copyright © 2018 LSST. All rights reserved.