|
WSF
|
#include <WsfInternalLinks.hpp>
Classes | |
| struct | Addressee |
Public Member Functions | |
| WsfInternalLinks () | |
| WsfInternalLinks (const WsfInternalLinks &aSrc) | |
| Copy constructor. | |
| WsfInternalLinks & | operator= (const WsfInternalLinks &aRhs) |
| Assignment constructor. | |
| ~WsfInternalLinks () | |
| bool | HasLinks () const |
| bool | Initialize (double aSimTime, WsfPlatformPart *aPlatformPartPtr) |
| bool | ProcessInput (UtInput &aInput) |
| void | AddRecipient (WsfStringId aRecipientId) |
| Add a link to the platform part with the given name. | |
| bool | AddRecipient (WsfPlatformPart *aRecipientPtr) |
| bool | SetStatus (WsfStringId aRecipientId, bool aActive) |
| bool | RemoveLink (WsfStringId aRecipientId) |
| void | SendMessage (double aSimTime, const WsfMessage &aMessage) |
| void | SendMessage (double aSimTime, const WsfMessage &aMessage, WsfStringId aRecipientId) |
| unsigned int | GetRecipientCount () const |
| WsfPlatformPart * | GetRecipientEntry (unsigned int aEntry) const |
Protected Member Functions | |
| void | ClearRecipients () |
A connection to one or more platform part over which a message can be sent.
This class implements the ability for a platform part (a processor, comm, sensor, etc.) to send a 'message' to another platform part on the same platform.
| WsfInternalLinks::WsfInternalLinks | ( | ) |
Referenced by operator=(), and WsfInternalLinks().
| WsfInternalLinks::WsfInternalLinks | ( | const WsfInternalLinks & | aSrc | ) |
Copy constructor.
References WsfInternalLinks().
| WsfInternalLinks::~WsfInternalLinks | ( | ) |
References ClearRecipients().
| bool WsfInternalLinks::AddRecipient | ( | WsfPlatformPart * | aRecipientPtr | ) |
Add a link to the platform part
References AddRecipient(), WsfObject::GetNameId(), and ok.
| void WsfInternalLinks::AddRecipient | ( | WsfStringId | aRecipientId | ) |
Add a link to the platform part with the given name.
Referenced by AddRecipient(), WsfRIPRProcessor::Initialize(), and ProcessInput().
|
protected |
Referenced by ProcessInput(), and ~WsfInternalLinks().
|
inline |
Return the number of recipients.
Referenced by getInternallyLinkedPlatformParts().
|
inline |
Return a pointer to the recipient entry. If the part link is inactive, will return zero.
References WsfInternalLinks::Addressee::mIsActive, and WsfInternalLinks::Addressee::mPartPtr.
Referenced by getInternallyLinkedPlatformParts().
|
inline |
Have links been established?
| bool WsfInternalLinks::Initialize | ( | double | aSimTime, |
| WsfPlatformPart * | aPlatformPartPtr ) |
Initialize the links to the requested platform parts.
| aSimTime | The current simulation time. |
| aPlatformPartPtr | The platform part pointer to which this is attached. |
| WsfInternalLinks & WsfInternalLinks::operator= | ( | const WsfInternalLinks & | aRhs | ) |
Assignment constructor.
References WsfInternalLinks().
| bool WsfInternalLinks::ProcessInput | ( | UtInput & | aInput | ) |
Process input from a generic source.
Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.
| aInput | A generic input. |
References AddRecipient(), and ClearRecipients().
Referenced by WsfMessageProcessor::Action::ProcessInput().
| bool WsfInternalLinks::RemoveLink | ( | WsfStringId | aRecipientId | ) |
Take out the link to the specified platform part. The effect will be permanent.
| aRecipientId | The recipient to remove. |
| void WsfInternalLinks::SendMessage | ( | double | aSimTime, |
| const WsfMessage & | aMessage ) |
Send a message to a list of registered platform parts.
| aSimTime | The current simulation time. |
| aMessage | The message to be sent. |
References WsfMessage::GetSubType(), and WsfMessage::GetType().
| void WsfInternalLinks::SendMessage | ( | double | aSimTime, |
| const WsfMessage & | aMessage, | ||
| WsfStringId | aRecipientId ) |
References WsfMessage::GetSubType(), and WsfMessage::GetType().
| bool WsfInternalLinks::SetStatus | ( | WsfStringId | aRecipientId, |
| bool | aActive ) |
Activate or deactivate sending to the specified platform part.
| aRecipientId | The desired recipient to change send status for. |
| aActive | True if the desire is to enable sending, false if disabling. |