Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
SensorInfo.h
Go to the documentation of this file.
1
2// Copyright (c) 2016 Digital Barriers
4
18
19#pragma once
20
21#include <string>
22#include "EdgeVisSDK.h"
23#include "Pimpl.h"
24#include "SensorInfoTypes.h"
25
26namespace EdgeVisDecoderSDK
27{
28 class SensorInfoImpl;
29
30 class SensorInfo : public EdgeVisSDKPimpl<SensorInfoImpl>
31 {
32 private:
33 friend class SensorInfoImpl;
34 public:
35 DB_EDGEVIS_SDK SensorInfo();
36 EdgeVisSDKPimplWeakConstructor(SensorInfo);
37 DB_EDGEVIS_SDK SensorInfo(
38 const std::wstring& sensor_id,
39 const std::wstring& friendly_name,
40 const double latitude,
41 const double longitude);
42 DB_EDGEVIS_SDK virtual ~SensorInfo();
43
49 DB_EDGEVIS_SDK std::wstring SensorID() const;
50
56 DB_EDGEVIS_SDK std::wstring ParentSensorID() const;
57
63 DB_EDGEVIS_SDK int32_t RSSI() const;
64
70 DB_EDGEVIS_SDK int32_t Battery() const;
71
77 DB_EDGEVIS_SDK int32_t Temperature() const;
78
84 DB_EDGEVIS_SDK int32_t AliveInterval() const;
85
91 DB_EDGEVIS_SDK std::wstring ExtraMetadata() const;
92
98 DB_EDGEVIS_SDK int64_t LastSeenTime() const;
99
105 DB_EDGEVIS_SDK std::wstring FriendlyName() const;
106
112 DB_EDGEVIS_SDK double Latitude() const;
113
119 DB_EDGEVIS_SDK double Longitude() const;
120
126 DB_EDGEVIS_SDK void SetFriendlyName(const std::wstring friendly_name);
127
133 DB_EDGEVIS_SDK void SetLatitude(const double latitude);
134
138 DB_EDGEVIS_SDK void SetLongitude(const double longitude);
139
145 DB_EDGEVIS_SDK SensorType GetSensorType() const;
146
152 DB_EDGEVIS_SDK bool IsFusionEnabled() const;
153
159 DB_EDGEVIS_SDK int32_t Energy() const;
160
166 DB_EDGEVIS_SDK SensorState GetSensorState() const;
167
174 DB_EDGEVIS_SDK bool IsPersonDetectionEnabled() const;
175
182 DB_EDGEVIS_SDK bool IsVehicleDetectionEnabled() const;
183
184
191 DB_EDGEVIS_SDK bool IsSeismicDetectionEnabled() const;
192
199 DB_EDGEVIS_SDK bool IsTrigger1Enabled() const;
200
207 DB_EDGEVIS_SDK bool IsTrigger2Enabled() const;
208
214 DB_EDGEVIS_SDK SensorModel Model() const;
215
223 DB_EDGEVIS_SDK bool SetModel(const SensorModel model);
224
225 };
226}
SensorType
The type of RDC sensor.
Definition SensorInfoTypes.h:21
SensorState
The sensor state.
Definition SensorInfoTypes.h:36
SensorModel
The sensor model.
Definition SensorInfoTypes.h:47
DB_EDGEVIS_SDK int32_t Energy() const
Returns the energy as measured at the sensor.
DB_EDGEVIS_SDK std::wstring ExtraMetadata() const
The extra metadata as sent from the node.
DB_EDGEVIS_SDK SensorModel Model() const
The model of the sensor.
DB_EDGEVIS_SDK bool SetModel(const SensorModel model)
Set the model of the sensor.
DB_EDGEVIS_SDK bool IsPersonDetectionEnabled() const
Returns if the current sensor has person detection enabled.
DB_EDGEVIS_SDK int32_t Temperature() const
The temperature of the sensor.
DB_EDGEVIS_SDK bool IsTrigger1Enabled() const
Returns if the current sensor has trigger 1 enabled Only available for ASN nodes.
DB_EDGEVIS_SDK bool IsFusionEnabled() const
Returns if fusion is enabled on this sensor.
DB_EDGEVIS_SDK std::wstring FriendlyName() const
The friendly name of the sensor.
DB_EDGEVIS_SDK void SetLongitude(const double longitude)
Set the longitude of the sensor.
DB_EDGEVIS_SDK double Longitude() const
The longitude of the sensor.
DB_EDGEVIS_SDK int32_t Battery() const
The battery strength.
DB_EDGEVIS_SDK int32_t AliveInterval() const
The interval that alive messages should be received from the node.
DB_EDGEVIS_SDK bool IsTrigger2Enabled() const
Returns if the current sensor has trigger 2 enabled Only available for ASN nodes.
DB_EDGEVIS_SDK double Latitude() const
The latitude of the sensor.
DB_EDGEVIS_SDK void SetFriendlyName(const std::wstring friendly_name)
Sets the friendly name of the sensor.
DB_EDGEVIS_SDK int64_t LastSeenTime() const
The timestamp of when the node last sent an alive message.
DB_EDGEVIS_SDK void SetLatitude(const double latitude)
Set the latitude of the sensor.
DB_EDGEVIS_SDK int32_t RSSI() const
The Received Signal Strength of the node.
DB_EDGEVIS_SDK SensorType GetSensorType() const
Get the type of sensor this is.
DB_EDGEVIS_SDK bool IsSeismicDetectionEnabled() const
Returns if the current sensor has seismic detection enabled Only available for SSN nodes.
DB_EDGEVIS_SDK std::wstring ParentSensorID() const
The ID of the parent sensor this sensor is attached to.
DB_EDGEVIS_SDK SensorState GetSensorState() const
Returns the current state of the sensor.
DB_EDGEVIS_SDK bool IsVehicleDetectionEnabled() const
Returns if the current sensor has vehicle detection enabled Only available for SSN nodes.
DB_EDGEVIS_SDK std::wstring SensorID() const
The ID of the sensor.
The EdgeVis Decoder SDK namespace.