11#ifndef L16_COMPUTERPART_HPP
12#define L16_COMPUTERPART_HPP
14#include "wsf_l16_export.h"
22#include "UtCallbackHolder.hpp"
64 virtual void HandleReceive(
double aSimTime,
const Messages::InitialBase& aMessage) = 0;
69 void SendJMessage(
double aSimTime, Messages::InitialBase* aMessage);
71 bool ProcessInput(UtInput& aInput)
override;
74 void SetDebug(
bool aDebugOn) { mDebug = aDebugOn; }
93 double ProcessSendInterval(UtInput& aInput)
const;
119 UtCallback* mCallbackPtr;
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfCommandChain.hpp:36
Definition ComputerPart.hpp:53
ComputerProcessor * GetComputer()
Definition ComputerPart.hpp:81
int mDebugMore
Definition ComputerPart.hpp:97
UtCallbackHolder mCallbacks
Definition ComputerPart.hpp:98
ComputerPart(WsfScenario &aScenario, const std::string &aClassName="WsfProcessor")
Definition ComputerPart.cpp:41
SlotParameters mSlotParameters
Definition ComputerPart.hpp:99
bool Debug()
Definition ComputerPart.hpp:75
std::map< int, ScriptData > ScriptMap
Definition ComputerPart.hpp:111
void SetDebug(bool aDebugOn)
Definition ComputerPart.hpp:74
WsfCommandChain * GetCommandChain() const
Definition ComputerPart.hpp:79
virtual bool IsNetworkEnabled()
Definition ComputerPart.hpp:72
void SetSendInterval(double aValue)
Definition ComputerPart.hpp:90
ComputerPart * Clone() const override=0
virtual void HandleSend(double)
This method is called when the a slot is open.
Definition ComputerPart.hpp:67
WsfScriptContext * mContextPtr
Definition ComputerPart.hpp:103
double GetSendInterval()
Definition ComputerPart.hpp:101
int DebugMore()
Definition ComputerPart.hpp:88
virtual void HandleReceive(double aSimTime, const Messages::InitialBase &aMessage)=0
Handle an incoming message.
const SlotParameters & GetSlotParameters() const
Definition ComputerPart.hpp:86
virtual bool Initialize(double aSimTime, ComputerProcessor &aComputer)
Definition ComputerPart.cpp:69
ScriptMap mSendScripts
Definition ComputerPart.hpp:112
IntervalUpdater mSendInterval
Definition ComputerPart.hpp:96
WsfPlatform * GetPlatform()
Definition ComputerPart.hpp:83
Sends and receives link16 messages.
Definition ComputerProcessor.hpp:50
Definition IntervalUpdater.hpp:30
Definition Messages.hpp:85
Definition SlotParameters.hpp:20
WsfObject()
This is the constructor for the WsfObject class.
Definition WsfObject.cpp:88
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
Definition WsfScriptContext.hpp:71
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfComm.hpp:43
Definition ComputerPart.hpp:45
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Definition WsfComm.cpp:34
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Definition ComputerPart.hpp:106
UtScriptClass * mMessageScriptClass
Definition ComputerPart.hpp:108
UtScript * mScript
Definition ComputerPart.hpp:107