public class BACnetIPDataSourceRT extends PollingDataSource implements com.serotonin.bacnet4j.event.DeviceEventListener, com.serotonin.bacnet4j.event.ExceptionListener
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
BACnetIPDataSourceRT.CovResubscriptionTask |
(package private) class |
BACnetIPDataSourceRT.DevicePoller |
| Modifier and Type | Field and Description |
|---|---|
private BACnetIPDataSourceRT.CovResubscriptionTask |
covResubscriptionTask |
static int |
DEVICE_EXCEPTION_EVENT |
static int |
INITIALIZATION_EXCEPTION_EVENT |
private boolean |
initialized |
private com.serotonin.bacnet4j.LocalDevice |
localDevice |
(package private) org.apache.commons.logging.Log |
log |
static int |
MESSAGE_EXCEPTION_EVENT |
(package private) java.util.List<com.serotonin.bacnet4j.RemoteDevice> |
pollsInProgress |
(package private) BACnetIPDataSourceVO |
vo |
dataPoints, pointListChangedaddedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints| Constructor and Description |
|---|
BACnetIPDataSourceRT(BACnetIPDataSourceVO vo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataPoint(DataPointRT dataPoint) |
boolean |
allowPropertyWrite(com.serotonin.bacnet4j.obj.BACnetObject obj,
com.serotonin.bacnet4j.type.constructed.PropertyValue pv) |
void |
beginPolling() |
void |
covNotificationReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger subscriberProcessIdentifier,
com.serotonin.bacnet4j.RemoteDevice initiatingDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier monitoredObjectIdentifier,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger timeRemaining,
com.serotonin.bacnet4j.type.constructed.SequenceOf<com.serotonin.bacnet4j.type.constructed.PropertyValue> listOfValues) |
private void |
dereferencePoint(DataPointRT dp,
com.serotonin.bacnet4j.type.Encodable encodable,
long time) |
private void |
disablePoint(DataPointRT dataPoint) |
protected void |
doPoll(long time) |
private MangoValue |
encodableToValue(com.serotonin.bacnet4j.type.Encodable encodable,
int dataTypeId) |
void |
eventNotificationReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger processIdentifier,
com.serotonin.bacnet4j.RemoteDevice initiatingDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier eventObjectIdentifier,
com.serotonin.bacnet4j.type.constructed.TimeStamp timeStamp,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger notificationClass,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger priority,
com.serotonin.bacnet4j.type.enumerated.EventType eventType,
com.serotonin.bacnet4j.type.primitive.CharacterString messageText,
com.serotonin.bacnet4j.type.enumerated.NotifyType notifyType,
com.serotonin.bacnet4j.type.primitive.Boolean ackRequired,
com.serotonin.bacnet4j.type.enumerated.EventState fromState,
com.serotonin.bacnet4j.type.enumerated.EventState toState,
com.serotonin.bacnet4j.type.notificationParameters.NotificationParameters eventValues) |
private void |
fireDeviceExceptionEvent(java.lang.String key,
java.lang.Object... args) |
private void |
fireMessageExceptionEvent(java.lang.String key,
java.lang.Object... args) |
private void |
fireMessageExceptionEvent(java.lang.Throwable t) |
void |
forcePointRead(DataPointRT dataPoint) |
(package private) java.util.List<DataPointRT> |
getDataPoints() |
(package private) java.lang.Boolean |
getPointListChangeLock() |
void |
iAmReceived(com.serotonin.bacnet4j.RemoteDevice d) |
void |
iHaveReceived(com.serotonin.bacnet4j.RemoteDevice d,
com.serotonin.bacnet4j.RemoteObject o) |
void |
initialize() |
void |
listenerException(java.lang.Throwable e) |
(package private) void |
pollDevice(com.serotonin.bacnet4j.RemoteDevice d,
java.util.List<DataPointRT> points,
long time) |
void |
privateTransferReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger vendorId,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger serviceNumber,
com.serotonin.bacnet4j.type.Encodable serviceParameters) |
void |
propertyWritten(com.serotonin.bacnet4j.obj.BACnetObject obj,
com.serotonin.bacnet4j.type.constructed.PropertyValue pv) |
void |
receivedException(java.lang.Exception e) |
void |
receivedThrowable(java.lang.Throwable t) |
void |
reinitializeDevice(com.serotonin.bacnet4j.service.confirmed.ReinitializeDeviceRequest.ReinitializedStateOfDevice reinitializedStateOfDevice) |
void |
relinquish(DataPointRT dataPoint) |
void |
removeDataPoint(DataPointRT dataPoint) |
(package private) boolean |
sendCovSubscription(DataPointRT dataPoint,
boolean unsubscribe) |
private void |
sendCovSubscriptionImpl(com.serotonin.bacnet4j.RemoteDevice remoteDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier oid,
int covId,
boolean unsubscribe) |
void |
setPointValue(DataPointRT dataPoint,
PointValueTime pvt,
SetPointSource source) |
void |
synchronizeTime(com.serotonin.bacnet4j.type.constructed.DateTime arg0,
boolean arg1) |
void |
terminate() |
void |
textMessageReceived(com.serotonin.bacnet4j.RemoteDevice textMessageSourceDevice,
com.serotonin.bacnet4j.type.constructed.Choice messageClass,
com.serotonin.bacnet4j.type.enumerated.MessagePriority messagePriority,
com.serotonin.bacnet4j.type.primitive.CharacterString message) |
void |
unimplementedVendorService(com.serotonin.bacnet4j.type.primitive.UnsignedInteger vendorId,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger serviceNumber,
com.serotonin.util.queue.ByteQueue queue) |
private com.serotonin.bacnet4j.type.Encodable |
valueToEncodable(MangoValue value,
com.serotonin.bacnet4j.type.enumerated.ObjectType objectType,
com.serotonin.bacnet4j.type.enumerated.PropertyIdentifier pid) |
joinTermination, scheduleTimeout, setPollingPeriod, updateChangedPointsgetExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, returnToNormal, setPersistentDatapublic static final int INITIALIZATION_EXCEPTION_EVENT
public static final int MESSAGE_EXCEPTION_EVENT
public static final int DEVICE_EXCEPTION_EVENT
final org.apache.commons.logging.Log log
final BACnetIPDataSourceVO vo
private com.serotonin.bacnet4j.LocalDevice localDevice
private boolean initialized
final java.util.List<com.serotonin.bacnet4j.RemoteDevice> pollsInProgress
private BACnetIPDataSourceRT.CovResubscriptionTask covResubscriptionTask
public BACnetIPDataSourceRT(BACnetIPDataSourceVO vo)
public void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class DataSourceRTpublic void beginPolling()
beginPolling in class PollingDataSourcepublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class PollingDataSourcepublic void addDataPoint(DataPointRT dataPoint)
addDataPoint in class DataSourceRTpublic void removeDataPoint(DataPointRT dataPoint)
removeDataPoint in class DataSourceRTprotected void doPoll(long time)
doPoll in class PollingDataSourcevoid pollDevice(com.serotonin.bacnet4j.RemoteDevice d,
java.util.List<DataPointRT> points,
long time)
public void forcePointRead(DataPointRT dataPoint)
forcePointRead in class DataSourceRTprivate void dereferencePoint(DataPointRT dp, com.serotonin.bacnet4j.type.Encodable encodable, long time)
public void setPointValue(DataPointRT dataPoint, PointValueTime pvt, SetPointSource source)
setPointValue in class DataSourceRTpublic void relinquish(DataPointRT dataPoint)
relinquish in class DataSourceRTjava.lang.Boolean getPointListChangeLock()
java.util.List<DataPointRT> getDataPoints()
public void listenerException(java.lang.Throwable e)
listenerException in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic boolean allowPropertyWrite(com.serotonin.bacnet4j.obj.BACnetObject obj,
com.serotonin.bacnet4j.type.constructed.PropertyValue pv)
allowPropertyWrite in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void iAmReceived(com.serotonin.bacnet4j.RemoteDevice d)
iAmReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void propertyWritten(com.serotonin.bacnet4j.obj.BACnetObject obj,
com.serotonin.bacnet4j.type.constructed.PropertyValue pv)
propertyWritten in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void iHaveReceived(com.serotonin.bacnet4j.RemoteDevice d,
com.serotonin.bacnet4j.RemoteObject o)
iHaveReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void covNotificationReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger subscriberProcessIdentifier,
com.serotonin.bacnet4j.RemoteDevice initiatingDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier monitoredObjectIdentifier,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger timeRemaining,
com.serotonin.bacnet4j.type.constructed.SequenceOf<com.serotonin.bacnet4j.type.constructed.PropertyValue> listOfValues)
covNotificationReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void eventNotificationReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger processIdentifier,
com.serotonin.bacnet4j.RemoteDevice initiatingDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier eventObjectIdentifier,
com.serotonin.bacnet4j.type.constructed.TimeStamp timeStamp,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger notificationClass,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger priority,
com.serotonin.bacnet4j.type.enumerated.EventType eventType,
com.serotonin.bacnet4j.type.primitive.CharacterString messageText,
com.serotonin.bacnet4j.type.enumerated.NotifyType notifyType,
com.serotonin.bacnet4j.type.primitive.Boolean ackRequired,
com.serotonin.bacnet4j.type.enumerated.EventState fromState,
com.serotonin.bacnet4j.type.enumerated.EventState toState,
com.serotonin.bacnet4j.type.notificationParameters.NotificationParameters eventValues)
eventNotificationReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void textMessageReceived(com.serotonin.bacnet4j.RemoteDevice textMessageSourceDevice,
com.serotonin.bacnet4j.type.constructed.Choice messageClass,
com.serotonin.bacnet4j.type.enumerated.MessagePriority messagePriority,
com.serotonin.bacnet4j.type.primitive.CharacterString message)
textMessageReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void privateTransferReceived(com.serotonin.bacnet4j.type.primitive.UnsignedInteger vendorId,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger serviceNumber,
com.serotonin.bacnet4j.type.Encodable serviceParameters)
privateTransferReceived in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void reinitializeDevice(com.serotonin.bacnet4j.service.confirmed.ReinitializeDeviceRequest.ReinitializedStateOfDevice reinitializedStateOfDevice)
reinitializeDevice in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void synchronizeTime(com.serotonin.bacnet4j.type.constructed.DateTime arg0,
boolean arg1)
synchronizeTime in interface com.serotonin.bacnet4j.event.DeviceEventListenerpublic void receivedException(java.lang.Exception e)
receivedException in interface com.serotonin.bacnet4j.event.ExceptionListenerpublic void receivedThrowable(java.lang.Throwable t)
receivedThrowable in interface com.serotonin.bacnet4j.event.ExceptionListenerpublic void unimplementedVendorService(com.serotonin.bacnet4j.type.primitive.UnsignedInteger vendorId,
com.serotonin.bacnet4j.type.primitive.UnsignedInteger serviceNumber,
com.serotonin.util.queue.ByteQueue queue)
unimplementedVendorService in interface com.serotonin.bacnet4j.event.ExceptionListenerboolean sendCovSubscription(DataPointRT dataPoint, boolean unsubscribe)
private void sendCovSubscriptionImpl(com.serotonin.bacnet4j.RemoteDevice remoteDevice,
com.serotonin.bacnet4j.type.primitive.ObjectIdentifier oid,
int covId,
boolean unsubscribe)
throws com.serotonin.bacnet4j.exception.BACnetException
com.serotonin.bacnet4j.exception.BACnetExceptionprivate void fireMessageExceptionEvent(java.lang.Throwable t)
private void fireMessageExceptionEvent(java.lang.String key,
java.lang.Object... args)
private void fireDeviceExceptionEvent(java.lang.String key,
java.lang.Object... args)
private void disablePoint(DataPointRT dataPoint)
private MangoValue encodableToValue(com.serotonin.bacnet4j.type.Encodable encodable, int dataTypeId)
private com.serotonin.bacnet4j.type.Encodable valueToEncodable(MangoValue value, com.serotonin.bacnet4j.type.enumerated.ObjectType objectType, com.serotonin.bacnet4j.type.enumerated.PropertyIdentifier pid)