vsTASKER 7 Tutorial
×
Menu
Index

Pitch RTI Sample

 
This demo needs Pitch-RTI 1516 (version 3.1.9 minimum).
 
It shows the use of a FOM (seawar) that contains one only Object (Platform.Ship) and one Interaction (Detonation).
One federate (seawar.exe) publishes the platform (ship) position and sends detonations using one Interaction. Detonation positions are random. Ship is moving north.
 
vsTASKER subscribes to Platform.Ship Object to update in the scenario the cruiser platform position. It subscribes also to Interaction detonation to compute the distance between the ship and the detonation. If the damages are high enough to wreck the ship, the entity is disabled and vsTASKER updates published attribute damages of Platform.Munitions. Seawar.exe which subscribes to it stop computations as soon as the ship is wrecked.
 
In vsTASKER, go to Destribution::Hla to see how Object federates have been defined.
Above the horizontal bar are Publishers. Below are Subscribers. Shadowed ellipses are Objects, simple ellipses are Interactions.
Each Object/Interaction as well as Attributes/Parameters holds C++ code. Double-click each of them to see their content.
 
To start the demo, start first pRTI 1615 than load the Simulation Engine. Seawar.exe will register and start to update Platform.Ship and trigger Detonations.
 
Start vsTASKER simulation and click on Distribution::Hla. You will notice that subscribers are all magenta (because receiving data) but publisher is still green (active but not triggered yet).
Go back to the map and see that cruiser platform is moving. Console window is also displaying data.
 
When the ship is considered destroyed, it will turn gray, publisher will be triggered and seawar.exe federate will start displaying platform is wrecked!