5 #include <AbstractDetector.h>
20 std::string
name =
"Unnamed Survey Playback";
29 std::shared_ptr<Scanner>
scanner =
nullptr;
38 std::vector<std::shared_ptr<Leg>>
legs;
64 void addLeg(
int insertIndex, std::shared_ptr<Leg> leg);
Base class for all assets.
Definition: Asset.h:10
Survey playback class, used to extend simulation functionalities so it can be controlled.
Definition: SurveyPlayback.h:18
Class representing a Helios++ survey.
Definition: Survey.h:13
void addLeg(int insertIndex, std::shared_ptr< Leg > leg)
Add a leg to the survey at given index.
Definition: Survey.cpp:35
int numRuns
Number of runs for the survey.
Definition: Survey.h:24
double getLength()
Obtain survey length (distance passing through all legs)
Definition: Survey.cpp:58
std::vector< std::shared_ptr< Leg > > legs
All legs belonging to the survey.
Definition: Survey.h:38
double simSpeedFactor
Simulation speed factor for the survey.
Definition: Survey.h:33
void calculateLength()
Compute survey length (distance passing through all legs)
Definition: Survey.cpp:45
void hatch(SurveyPlayback &sp)
Hatch all pending eggs.
Definition: Survey.cpp:62
double length
Distance passing through all legs.
Definition: Survey.h:44
std::string name
Survey name.
Definition: Survey.h:20
Survey()=default
Survey default constructor.
void removeLeg(int legIndex)
Remove a leg from the survey.
Definition: Survey.cpp:41
std::shared_ptr< Scanner > scanner
Scanner used by the survey.
Definition: Survey.h:29