|
WSF
|
#include <WsfEM_Manager.hpp>
Public Member Functions | |
| void | ActivateRcvr (WsfEM_Rcvr *aRcvrPtr) |
| void | ActivateXmtr (WsfEM_Xmtr *aXmtrPtr) |
| void | DeactivateRcvr (WsfEM_Rcvr *aRcvrPtr) |
| void | DeactivateXmtr (WsfEM_Xmtr *aXmtrPtr) |
| void | UpdateRcvr (WsfEM_Rcvr *aRcvrPtr) |
| void | UpdateXmtr (WsfEM_Xmtr *aXmtrPtr) |
| unsigned int | GetRcvrCount () |
| unsigned int | GetXmtrCount () |
| WsfEM_Rcvr * | GetRcvrEntry (unsigned int aEntry) |
| WsfEM_Xmtr * | GetXmtrEntry (unsigned int aEntry) |
A manager for interactions between electromagnetic devices.
This class is responsible for maintaining the data structures necessary to support the efficient handling of interactions between receivers and transmitters. In particular, it does two things:
The methods within this class are called from within the WsfEM_Rcvr and WsfEM_Xmtr classes to maintain the interaction structures. Sensor and communications systems that use the WsfEM_Rcvr and WsfEM_Xmtr classes must follow the proper protocol to ensure that interactions between systems can occur:
| void WsfEM_Manager::ActivateRcvr | ( | WsfEM_Rcvr * | aRcvrPtr | ) |
Activate a receiver.
| aRcvrPtr | The receiver being activated. |
References WsfEM_XmtrRcvr::GetAntenna(), WsfEM_Antenna::GetArticulatedPart(), WsfPlatformPart::GetPlatform(), and UpdateRcvr().
| void WsfEM_Manager::ActivateXmtr | ( | WsfEM_Xmtr * | aXmtrPtr | ) |
Activate a transmitter.
| aXmtrPtr | The transmitter being activated. |
References WsfEM_XmtrRcvr::GetAntenna(), WsfEM_Antenna::GetArticulatedPart(), WsfPlatformPart::GetPlatform(), and UpdateXmtr().
| void WsfEM_Manager::DeactivateRcvr | ( | WsfEM_Rcvr * | aRcvrPtr | ) |
Indicate a receiver is no longer active.
| aRcvrPtr | The receiver being deactivated. |
| void WsfEM_Manager::DeactivateXmtr | ( | WsfEM_Xmtr * | aXmtrPtr | ) |
Indicate a transmitter is no longer active.
| aXmtrPtr | The transmitter being deactivated. |
|
inline |
Return the number of active receivers
|
inline |
Get an entry from the list of active receivers.
| aEntry | The index of the entry desired. |
|
inline |
Return the number of active transmitters
|
inline |
Get an entry from the list of active transmitters.
| aEntry | The index of the entry desired. |
| void WsfEM_Manager::UpdateRcvr | ( | WsfEM_Rcvr * | aRcvrPtr | ) |
Notify the manager that the indicated receiver has been updated.
| aRcvrPtr | The receiver that was updated. |
References WsfEM_Rcvr::UpdateInteractions().
Referenced by ActivateRcvr().
| void WsfEM_Manager::UpdateXmtr | ( | WsfEM_Xmtr * | aXmtrPtr | ) |
Notify the manager that the indicated transmitter has been updated.
| aXmtrPtr | The transmitter that was updated. |
Referenced by ActivateXmtr().