MonitoringStrategy
if/monitoringStrategyIf.h@0:7b63a9dd265c, 2021-05-07 (annotated)
- Committer:
- lmarketin
- Date:
- Fri May 07 13:49:51 2021 +0000
- Revision:
- 0:7b63a9dd265c
AreaMonitoring app uz pomoc ultrazvocnog senzora projerava dali se u nadziranom podrucju nalazi neki objekt. Upravljenje je moguce izvesti manualno, te je moguce podesiti i automatsko izvodenje.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lmarketin | 0:7b63a9dd265c | 1 | #ifndef MONITORINGSTRATEGYIF_H |
lmarketin | 0:7b63a9dd265c | 2 | #define MONITORINGSTRATEGYIF_H |
lmarketin | 0:7b63a9dd265c | 3 | |
lmarketin | 0:7b63a9dd265c | 4 | #include<map> |
lmarketin | 0:7b63a9dd265c | 5 | #include "configuration.h" |
lmarketin | 0:7b63a9dd265c | 6 | #include "objectPosition.h" |
lmarketin | 0:7b63a9dd265c | 7 | |
lmarketin | 0:7b63a9dd265c | 8 | /* |
lmarketin | 0:7b63a9dd265c | 9 | * This class is Monitoring Strategy interface and declares operations common to all monitoring strategies |
lmarketin | 0:7b63a9dd265c | 10 | */ |
lmarketin | 0:7b63a9dd265c | 11 | class MonitoringStrategyIf |
lmarketin | 0:7b63a9dd265c | 12 | { |
lmarketin | 0:7b63a9dd265c | 13 | public: |
lmarketin | 0:7b63a9dd265c | 14 | virtual bool presenceCheck(const std::map<float, float>& distancesMap, ObjectPosition* objectPosition) = 0; |
lmarketin | 0:7b63a9dd265c | 15 | void setConfiguration(Configuration* config) |
lmarketin | 0:7b63a9dd265c | 16 | { |
lmarketin | 0:7b63a9dd265c | 17 | m_config = config; |
lmarketin | 0:7b63a9dd265c | 18 | } |
lmarketin | 0:7b63a9dd265c | 19 | |
lmarketin | 0:7b63a9dd265c | 20 | protected: |
lmarketin | 0:7b63a9dd265c | 21 | Configuration* m_config; |
lmarketin | 0:7b63a9dd265c | 22 | }; |
lmarketin | 0:7b63a9dd265c | 23 | #endif |