WSF
WsfSingleSensorObserver.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2016 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFSINGLESENSOROBSERVER_HPP
13#define WSFSINGLESENSOROBSERVER_HPP
14
15#include "wsf_export.h"
16class WsfPlatform;
17class WsfSensor;
18class WsfSensorResult;
19class WsfTrack;
20
33{
34public:
35 virtual ~WsfSingleSensorObserver() = default;
36
38 virtual void OnSensorTurnedOff(double aSimTime, WsfSensor* aSensorPtr) {}
39
41 virtual void OnSensorTurnedOn(double aSimTime, WsfSensor* aSensorPtr) {}
42
44 virtual void OnSensorDeleting(WsfSensor* aSensorPtr) {}
45
47 virtual void OnSensorDeleted(WsfSensor* aSensorPtr) {}
48
50 virtual void OnSensorTargetUpdated(double aSimTime, WsfSensor* aSensorPtr, WsfPlatform* aTargetPtr, WsfSensorResult& aResult)
51 {
52 }
53
55 virtual void
56 OnSensorDetectionAttempted(double aSimTime, WsfSensor* aSensorPtr, WsfPlatform* aTargetPtr, WsfSensorResult& aResult)
57 {
58 }
59
61 virtual void OnSensorTrackInitiated(double aSimTime, WsfSensor* aSensorPtr, const WsfTrack& aTrack) {}
62
64 virtual void OnSensorTrackUpdated(double aSimTime, WsfSensor* aSensorPtr, const WsfTrack& aTrack) {}
65
67 virtual void OnSensorTrackDropped(double aSimTime, WsfSensor* aSensorPtr, const WsfTrack& aTrack) {}
68
70 // virtual void OnSensorDetectionCompleted(double aSimTime,
71 // WsfSensor* aSensorPtr,
72 // WsfPlatform* aTargetPtr,
73 // WsfSensorResult& aResult)
74 //{}
75};
76
77#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfSensorResult.hpp:27
Definition WsfSensor.hpp:92
Definition WsfSingleSensorObserver.hpp:33
virtual void OnSensorTrackInitiated(double aSimTime, WsfSensor *aSensorPtr, const WsfTrack &aTrack)
Called after initial sensor track formation by a sensor (similar to Observer::SensorTrackInitiated).
Definition WsfSingleSensorObserver.hpp:61
virtual void OnSensorTrackDropped(double aSimTime, WsfSensor *aSensorPtr, const WsfTrack &aTrack)
Called after a sensor track is dropped by a sensor (similar to Observer::SensorTrackDropped).
Definition WsfSingleSensorObserver.hpp:67
virtual void OnSensorDetectionAttempted(double aSimTime, WsfSensor *aSensorPtr, WsfPlatform *aTargetPtr, WsfSensorResult &aResult)
Called after each sensor detection attempt, per mode/beam for multi-mode/beam sensors.
Definition WsfSingleSensorObserver.hpp:56
virtual void OnSensorTurnedOff(double aSimTime, WsfSensor *aSensorPtr)
Called just after the sensor is turned off.
Definition WsfSingleSensorObserver.hpp:38
virtual void OnSensorTargetUpdated(double aSimTime, WsfSensor *aSensorPtr, WsfPlatform *aTargetPtr, WsfSensorResult &aResult)
Called after each sensor update.
Definition WsfSingleSensorObserver.hpp:50
virtual void OnSensorDeleted(WsfSensor *aSensorPtr)
Called just before the sensor is removed from the simulation.
Definition WsfSingleSensorObserver.hpp:47
virtual void OnSensorDeleting(WsfSensor *aSensorPtr)
Called before the sensor is actually deleted.
Definition WsfSingleSensorObserver.hpp:44
virtual void OnSensorTrackUpdated(double aSimTime, WsfSensor *aSensorPtr, const WsfTrack &aTrack)
Called after each subsequent update of sensor track by a sensor (similar to Observer::SensorTrackUpda...
Definition WsfSingleSensorObserver.hpp:64
virtual ~WsfSingleSensorObserver()=default
virtual void OnSensorTurnedOn(double aSimTime, WsfSensor *aSensorPtr)
Called just after the sensor is turned on.
Definition WsfSingleSensorObserver.hpp:41
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
Copyrights Multiple, All Rights Reserved