- The
SampleCaseclass is an example of making the user defined scenario with theSimulationCaseclass.
src/simulation_sample/case/sample_case.cpp, .hpp- The
SampleCaseclass is defined here.
- The
src/simulation/case/simulation_case.cpp, .hpp- The
SimulationCaseclass is defined here.
- The
src/s2e.cpp- The instance of the
SampleCaseclass is made in this main function.
- The instance of the
-
sample_case.hpp- Define user defined simulation case class. We use
SampleCaseclass here. - Inherit the
SimulationCaseclass.- Users need to define override functions for all pure virtual functions of the
SimulationCaseclass.
- Users need to define override functions for all pure virtual functions of the
- Add spacecraft and/or ground station as users need into the member variables.
- If users simulate multiple spacecraft, users can add several spacecraft here.
- Multiple spacecraft case, you can refer the s2e-ff
- Define user defined simulation case class. We use
-
sample_case.cpp- Write detailed process of the override functions
- Constructor
- Usually, users just need to initialize the constructor of
SimulationCase.
- Usually, users just need to initialize the constructor of
- Destructor
- Users need to
deleteyour defined membersspacecraftandground_station.
- Users need to
InitializeTargetObjectsfunction- You have to make instances of your
spacecraftandground_stationclass here.
- You have to make instances of your
- You also need to register log output by
LogSetupfunction. UpdateTargetObjectsfunction- This function is called in the
SimulationCase::Mainfunction. - Users can update their spacecraft and ground station classes here.
GetLogHeaderandGetLogValuefunctions- These functions are used in the Monte-Carlo simulation mode. For the normal mode, you don't need to care.
- The log definition written here is saved at the start and end timing of every simulation case of the Monte-Carlo simulation.
NA
NA