|
WSF
|
#include <WsfSimulationInput.hpp>


Public Member Functions | |
| WsfSimulationInput (WsfScenario &aScenario) | |
| virtual | ~WsfSimulationInput () |
| virtual bool | ProcessInput (UtInput &aInput) |
| virtual void | LoadComplete () |
| double | GetMinimumMoverTimestep () const |
| bool | MultiThreaded () const |
| Return whether the simulation should multi-thread were appropriate. | |
| double | GetEndTime () const |
| Get the defined end time of the simulation. | |
| const WsfDateTime & | GetDateTime () const |
| bool | UseConstantRequiredPd () const |
| void | UseConstantRequiredPd (bool aUseConstantRequiredPd) |
Friends | |
| class | WsfSimulation |
Determine the way multiple/alternate frequencies behave in sensors. | |
| enum | ProcessPriority { cPP_BELOW_NORMAL , cPP_NORMAL , cPP_ABOVE_NORMAL , cPP_HIGH , cPP_REALTIME } |
| Process priorities for windows. More... | |
| WsfScenario * | mScenarioPtr |
| bool | mIsRealTime |
| Whether this simulation is running real-time, or a multiple of real-time. | |
| bool | mMultiThreaded |
| Thread behavior. | |
| int | mWallClockTimingMethod |
| Timing method to use for UtWallClock. | |
| double | mMinimumMoverTimestep |
| double | mEndTime |
| The end time of the simulation (seconds). | |
| double | mClockRate |
| The ratio of simulation time to real world time. | |
| WsfDateTime * | mDateTimePtr |
| bool | mUseConstantRequiredPd |
| bool | mRandomizeFrequency |
| Randomization flag for randomizing "frequency" for sensors with alternate frequency inputs in the simulation. | |
| bool | mUseDefaultFrequency |
| Force the use of the "frequency" input (default) for sensor's with alternate frequency inputs in the simulation. | |
| int | mNumberOfThreads |
| double | mBreakUpdateTime |
| bool | mDebugMultiThreading |
| ProcessPriority | mProcessPriority |
| bool | mAllowClutterCalculationShortcuts |
| See documentation for AllowCalculationShortcuts. | |
| bool | mAllowEM_PropagationCalculationShortcuts |
| See documentation for AllowCalculationShortcuts. | |
| bool | RandomizeFrequency () const |
| void | RandomizeFrequency (bool aRandomizeFrequency) |
| bool | UseDefaultFrequency () const |
| void | UseDefaultFrequency (bool aUseDefaultFrequency) |
| void | SetMultiThreaded (bool aMultiThreaded) |
| Return whether the simulation should multi-thread were appropriate. | |
| void | AllowClutterCalculationShortcuts (bool aAllowCalculationShortcuts) |
| bool | AllowClutterCalculationShortcuts () const |
| Return the current status of allowing calculation shortcuts. | |
| void | AllowEM_PropagationCalculationShortcuts (bool aAllowCalculationShortcuts) |
| bool | AllowEM_PropagationCalculationShortcuts () const |
| Return the current status of allowing calculation shortcuts. | |
| WsfScenario * | GetScenario () const |
| void | SetProcessPriority (ProcessPriority aProcessPriority) |
| Set the process priority class for windows. | |
Reads simulation configuration from the input file May be extended by applications to override simulation input commands
| WsfSimulationInput::WsfSimulationInput | ( | WsfScenario & | aScenario | ) |
References cPP_ABOVE_NORMAL, mAllowClutterCalculationShortcuts, mAllowEM_PropagationCalculationShortcuts, mBreakUpdateTime, mClockRate, mDateTimePtr, mDebugMultiThreading, mEndTime, mIsRealTime, mMinimumMoverTimestep, mMultiThreaded, mNumberOfThreads, mProcessPriority, mRandomizeFrequency, mScenarioPtr, mUseConstantRequiredPd, mUseDefaultFrequency, and mWallClockTimingMethod.
Referenced by WsfDefaultSimulationInput::WsfDefaultSimulationInput(), and WsfSimulation.
|
virtual |
References mDateTimePtr.
|
inline |
Return the current status of allowing calculation shortcuts.
References mAllowClutterCalculationShortcuts.
|
inline |
Indicate if calculation shortcuts are allowed.
This is a static method (applicable to ALL instances) which indicates if calculation 'shortcuts' are allowed. If 'true' (the default) a model may employ tests to shorten or bypass calculations. For instance, a model may check the current signal-to-noise and bypass calculation ifWsfSimulation the S/N is already too low.
References mAllowClutterCalculationShortcuts.
Referenced by WsfEM_ALARM_Clutter::ComputeClutterPower().
|
inline |
Return the current status of allowing calculation shortcuts.
References mAllowEM_PropagationCalculationShortcuts.
|
inline |
Indicate if calculation shortcuts are allowed.
This is a static method (applicable to ALL instances) which indicates if calculation 'shortcuts' are allowed. If 'true' (the default) a model may employ tests to shorten or bypass calculations. For instance, a model may check the current signal-to-noise and bypass calculation if the S/N is already too low.
References mAllowEM_PropagationCalculationShortcuts.
|
inline |
References mDateTimePtr.
|
inline |
Get the defined end time of the simulation.
References mEndTime.
|
inline |
Return the 'minimum mover timestep'. The minimum mover timestep is the amount of time that must elapse between mover updates on a platform before the update will actually be performed. If the elapsed time is less than this value then the update will be suppressed.
A value of zero (or negative value) effectively allows all updates while a value greater than zero can result in suppressed updates.
The constructor initializes this to a negative value to allow derived classes to detect if a value has been defined in the input file.
References mMinimumMoverTimestep.
|
inline |
References mScenarioPtr.
|
virtual |
Referenced by WsfSimulation.
|
inline |
Return whether the simulation should multi-thread were appropriate.
References mMultiThreaded.
|
virtual |
Process simulation input.
Reimplemented in WsfDefaultSimulationInput.
References cPP_ABOVE_NORMAL, cPP_BELOW_NORMAL, cPP_HIGH, cPP_NORMAL, cPP_REALTIME, mAllowClutterCalculationShortcuts, mAllowEM_PropagationCalculationShortcuts, mBreakUpdateTime, mClockRate, mDateTimePtr, mDebugMultiThreading, mEndTime, mIsRealTime, mMinimumMoverTimestep, mMultiThreaded, mNumberOfThreads, mProcessPriority, mRandomizeFrequency, mUseConstantRequiredPd, mUseDefaultFrequency, and mWallClockTimingMethod.
Referenced by WsfDefaultSimulationInput::ProcessInput(), and WsfSimulation.
|
inline |
References mRandomizeFrequency.
| void WsfSimulationInput::RandomizeFrequency | ( | bool | aRandomizeFrequency | ) |
|
inline |
Return whether the simulation should multi-thread were appropriate.
References mMultiThreaded.
Referenced by WsfEventStepSimulationInput::ProcessInput().
|
inline |
Set the process priority class for windows.
References mProcessPriority.
|
inline |
Determine if the 'required Pd for detection' should be static or random.
References mUseConstantRequiredPd.
Referenced by WsfSensor::GetRequiredPd().
|
inline |
Set the 'Use Required Pd' value to the desired value.
References mUseConstantRequiredPd.
|
inline |
References mUseDefaultFrequency.
Referenced by WsfOTH_RadarSensor::OTH_Beam::Initialize(), and WsfRadarSensor::RadarBeam::Initialize().
| void WsfSimulationInput::UseDefaultFrequency | ( | bool | aUseDefaultFrequency | ) |
|
friend |
References LoadComplete(), ProcessInput(), WsfSimulation, and WsfSimulationInput().
Referenced by WsfSimulation.
|
protected |
See documentation for AllowCalculationShortcuts.
Referenced by AllowClutterCalculationShortcuts(), AllowClutterCalculationShortcuts(), ProcessInput(), and WsfSimulationInput().
|
protected |
See documentation for AllowCalculationShortcuts.
Referenced by AllowEM_PropagationCalculationShortcuts(), AllowEM_PropagationCalculationShortcuts(), ProcessInput(), and WsfSimulationInput().
|
protected |
Referenced by ProcessInput(), and WsfSimulationInput().
|
protected |
The ratio of simulation time to real world time.
Referenced by ProcessInput(), and WsfSimulationInput().
|
protected |
Referenced by GetDateTime(), ProcessInput(), WsfSimulationInput(), and ~WsfSimulationInput().
|
protected |
Referenced by ProcessInput(), and WsfSimulationInput().
|
protected |
The end time of the simulation (seconds).
Referenced by GetEndTime(), ProcessInput(), and WsfSimulationInput().
|
protected |
Whether this simulation is running real-time, or a multiple of real-time.
Referenced by ProcessInput(), and WsfSimulationInput().
|
protected |
Defines the minimum amount of time that must elapse between updates before a mover update will be allowed.
Referenced by GetMinimumMoverTimestep(), ProcessInput(), and WsfSimulationInput().
|
protected |
Thread behavior.
Referenced by MultiThreaded(), ProcessInput(), SetMultiThreaded(), and WsfSimulationInput().
|
protected |
Referenced by ProcessInput(), and WsfSimulationInput().
|
protected |
Referenced by ProcessInput(), SetProcessPriority(), and WsfSimulationInput().
|
protected |
Randomization flag for randomizing "frequency" for sensors with alternate frequency inputs in the simulation.
Referenced by ProcessInput(), RandomizeFrequency(), and WsfSimulationInput().
|
protected |
Referenced by GetScenario(), and WsfSimulationInput().
|
protected |
'true' if the Pd required for detection should be fixed to the sensor defined value rather than drawn from an uniform distribution.
Referenced by ProcessInput(), UseConstantRequiredPd(), UseConstantRequiredPd(), and WsfSimulationInput().
|
protected |
Force the use of the "frequency" input (default) for sensor's with alternate frequency inputs in the simulation.
Referenced by ProcessInput(), UseDefaultFrequency(), and WsfSimulationInput().
|
protected |
Timing method to use for UtWallClock.
Referenced by ProcessInput(), and WsfSimulationInput().