![]() |
VieSched++
VieVS VLBI Scheduling Software
|
this is the VLBI initializer that creats every objects and passes them to the VLBI_scheduler More...
#include <Initializer.h>


Classes | |
| struct | Parameters |
| Parameters used in VLBI_initializer. More... | |
| struct | PRECALC |
| pre calculated values More... | |
Public Types | |
| enum | MemberType { MemberType::station, MemberType::source, MemberType::satellite, MemberType::spacecraft, MemberType::baseline } |
| possible member types More... | |
Public Member Functions | |
| Initializer () | |
| Initializer (const std::string &path) | |
| constructor More... | |
| Initializer (const boost::property_tree::ptree &xml) | |
| constructor More... | |
| const boost::property_tree::ptree & | getXml () const |
| getter for VieSchedpp.xml content More... | |
| void | precalcSubnettingSrcIds () noexcept |
| pre calculates all possible second scans used for subnetting More... | |
| void | createStations (const SkdCatalogReader &reader, std::ofstream &of) noexcept |
| creates all selected stations from sked catalogs More... | |
| void | initializeStations () noexcept |
| initializes all stations with settings from VieSchedpp.xml file More... | |
| void | precalcAzElStations () noexcept |
| precalc azimuth elevations for stations More... | |
| void | initializeBaselines () noexcept |
| initializes all baselines with settings from VieSchedpp.xml file More... | |
| void | createSources (const SkdCatalogReader &reader, std::ofstream &of) noexcept |
| creates all possible sources from sked catalogs More... | |
| void | createSatellites (const SkdCatalogReader &reader, std::ofstream &of) noexcept |
| creates all possible satellites from TLE files More... | |
| void | createSpacecrafts (const SkdCatalogReader &reader, std::ofstream &of) noexcept |
| creates all possible spacecrafts More... | |
| void | initializeSources (MemberType type) noexcept |
| initializes all sources with settings from VieSchedpp.xml file More... | |
| void | initializeGeneral (std::ofstream &of) noexcept |
| initializes general block with settings from VieSchedpp.xml file More... | |
| void | initializeWeightFactors () noexcept |
| initializes the weight factors More... | |
| void | initializeSkyCoverages () noexcept |
| inintializes the sky Coverage lookup table More... | |
| void | initializeObservingMode (const SkdCatalogReader &skdCatalogs, std::ofstream &of) noexcept |
| reads the observing mode information from VieSchedpp.xml file More... | |
| void | initializeObservingMode (unsigned long nsta, double samplerate, unsigned int bits, const std::unordered_map< std::string, unsigned int > &band2channel, const std::unordered_map< std::string, double > &band2wavelength, double efficiencyFactor=-1) noexcept |
| creates dummy observing modes file More... | |
| void | connectObservingMode (std::ofstream &of) noexcept |
| sets station names to observing mode and displays summary More... | |
| void | initializeFocusCornersAlgorithm () noexcept |
| initializes focus corner algorithm for intensives if there is one defined in the VieSchedpp.xml file More... | |
| void | initializeSourceSequence () noexcept |
| initializes a custom source sequence if there is one defined in the VieSchedpp.xml file More... | |
| std::unordered_map< std::string, std::vector< std::string > > | readGroups (boost::property_tree::ptree root, MemberType type) noexcept |
| reads all groups specified in the root tree More... | |
| void | applyMultiSchedParameters (const VieVS::MultiScheduling::Parameters ¶meters, int version) |
| applies all multi scheduling parameters to the initializer More... | |
| std::vector< MultiScheduling::Parameters > | readMultiSched (std::ostream &out) |
| reads multiSched block from VieSchedpp.xml file More... | |
| void | initializeAstrometricCalibrationBlocks (std::ofstream &of) |
| initializes astrometric calibration block with settings from VieSchedpp.xml file More... | |
| void | initializeCalibrationBlocks () |
| initializes calibration block with settings from VieSchedpp.xml file More... | |
| void | statisticsLogHeader (std::ofstream &of, const std::vector< VieVS::MultiScheduling::Parameters > &ms) |
| writes statistics log header More... | |
| void | initializeOptimization (std::ofstream &of) |
| initializes optimization conditions with settings from VieSchedpp.xml file More... | |
| void | initializeHighImpactScanDescriptor (std::ofstream &of) |
| initializes high impact scan descriptors with settings from VieSchedpp.xml file More... | |
| const Network & | getNetwork () |
| getter for session network More... | |
Public Member Functions inherited from VieVS::VieVS_Object | |
| VieVS_Object (unsigned long id) | |
| constructor More... | |
| const unsigned long | getId () const |
| get object id More... | |
| bool | hasValidId () const |
| check if id is valid More... | |
| bool | hasId (unsigned long id) const |
| check if object has specific id More... | |
| void | setId (unsigned long id) |
| set object id More... | |
| std::string | printId () const |
| object id string More... | |
Static Public Member Functions | |
| static void | initializeAstronomicalParameteres () noexcept |
| initializes astronomical parameters More... | |
Private Member Functions | |
| void | stationSetup (std::vector< std::vector< Station::Event >> &events, const boost::property_tree::ptree &tree, const std::unordered_map< std::string, ParameterSettings::ParametersStations > ¶meters, const std::unordered_map< std::string, std::vector< std::string >> &groups, const Station::Parameters &parentPARA) noexcept |
| station setup function More... | |
| void | sourceSetup (std::vector< std::vector< AbstractSource::Event >> &events, const boost::property_tree::ptree &tree, const std::unordered_map< std::string, ParameterSettings::ParametersSources > ¶meters, const std::unordered_map< std::string, std::vector< std::string >> &groups, const AbstractSource::Parameters &parentPARA, MemberType type) noexcept |
| source setup function More... | |
| void | baselineSetup (std::vector< std::vector< Baseline::Event >> &events, const boost::property_tree::ptree &tree, const std::unordered_map< std::string, ParameterSettings::ParametersBaselines > ¶meters, const std::unordered_map< std::string, std::vector< std::string >> &groups, const Baseline::Parameters &parentPARA) noexcept |
| baseline setup function More... | |
| unsigned int | minutesVisible (std::shared_ptr< const AbstractSource > source, const AbstractSource::Parameters ¶meters, unsigned int start, unsigned int end) |
| number of minutes where source is visible More... | |
| std::vector< unsigned long > | getMembers (const std::string &name, const std::vector< Station > &stations) |
| get members of station group More... | |
| std::vector< unsigned long > | getMembers (const std::string &name, const std::vector< Baseline > &baselines) |
| get members of baseline group More... | |
| std::vector< unsigned long > | getMembers (const std::string &name, const SourceList &sourceList) |
| get members of source group More... | |
| std::unordered_map< std::string, std::unique_ptr< AbstractFlux > > | generateFluxObject (const std::string &name, const std::string &commonname, const std::map< std::string, std::vector< std::string >> &fluxCatalog, bool fluxNecessary, std::ofstream &of) |
Private Attributes | |
| int | version_ = 0 |
| version More... | |
| boost::property_tree::ptree | xml_ |
| content of VieSchedpp.xml file More... | |
| SourceList | sourceList_ |
| session source list More... | |
| Network | network_ |
| station network More... | |
| std::shared_ptr< ObservingMode > | obsModes_ = nullptr |
| observing mode More... | |
| Parameters | parameters_ |
| parameters More... | |
| PRECALC | preCalculated_ |
| pre calculated values More... | |
| std::unordered_map< std::string, std::vector< std::string > > | staGroups_ |
| station groups More... | |
| std::unordered_map< std::string, std::vector< std::string > > | srcGroups_ |
| source groups More... | |
| std::unordered_map< std::string, std::vector< std::string > > | satGroups_ |
| satellite groups More... | |
| std::unordered_map< std::string, std::vector< std::string > > | spacecraftGroups_ |
| spacecraft groups More... | |
| std::unordered_map< std::string, std::vector< std::string > > | blGroups_ |
| baseline groups More... | |
| boost::optional< HighImpactScanDescriptor > | himp_ |
| high impact scan descriptor More... | |
| std::vector< CalibratorBlock > | calib_ |
| calibrator impact scan descriptor More... | |
| boost::optional< MultiScheduling::Parameters > | multiSchedulingParameters_ |
| multi scheduling paramters More... | |
Static Private Attributes | |
| static unsigned long | nextId = 0 |
| next id for this object type More... | |
Friends | |
| class | Scheduler |
| class | SkdParser |
this is the VLBI initializer that creats every objects and passes them to the VLBI_scheduler
|
strong |
| Initializer::Initializer | ( | ) |
|
explicit |
constructor
| path | path to VieSchedpp.xml file |

|
explicit |
constructor
| xml | VieSchedpp.xml file |

| void Initializer::applyMultiSchedParameters | ( | const VieVS::MultiScheduling::Parameters & | parameters, |
| int | version | ||
| ) |
applies all multi scheduling parameters to the initializer
| version | version number |
| parameters | multi scheduling parameters |


|
privatenoexcept |
baseline setup function
As a start all parameter form parentPARA are used. If different parameter values are defined in the event these parameters are used instead of the parentPARA parameters.
| events | list of all events for baseline |
| tree | property tree that holds baseline setup information |
| parameters | all defined parameters |
| groups | all defined groups |
| parentPARA | previously used parameters which are are use as template |


|
noexcept |
sets station names to observing mode and displays summary
| of | outstream to log file |


|
noexcept |
creates all possible satellites from TLE files
| reader | sked catalogs |
| of | outstream to log file |


|
noexcept |
creates all possible sources from sked catalogs
| reader | sked catalogs |
| of | outstream to log file |


|
noexcept |
creates all possible spacecrafts
| reader | sked catalogs |
| of | outstream to log file |

|
noexcept |
creates all selected stations from sked catalogs
| reader | sked catalog reader |
| of | outstream to log file |


|
private |
< baseline length of flux information (type B)
< corresponding flux information for baseline length (type B)

|
private |
get members of station group
| name | group name |
| stations | list of all available stations |

|
private |
get members of baseline group
| name | group name |
| baselines | list of all available baselines |
|
private |
get members of source group
| name | group name |
| sourceList | list of all available sources |

|
inline |
getter for session network
This function should only be used for the GUI!
|
inline |
getter for VieSchedpp.xml content

| void Initializer::initializeAstrometricCalibrationBlocks | ( | std::ofstream & | of | ) |
initializes astrometric calibration block with settings from VieSchedpp.xml file
| of | outstream to log file |


|
staticnoexcept |
initializes astronomical parameters


|
noexcept |
initializes all baselines with settings from VieSchedpp.xml file


| void Initializer::initializeCalibrationBlocks | ( | ) |
initializes calibration block with settings from VieSchedpp.xml file


|
noexcept |
initializes focus corner algorithm for intensives if there is one defined in the VieSchedpp.xml file

|
noexcept |
initializes general block with settings from VieSchedpp.xml file
| of | outstream to log file |


| void Initializer::initializeHighImpactScanDescriptor | ( | std::ofstream & | of | ) |
initializes high impact scan descriptors with settings from VieSchedpp.xml file
| of | outstream to log file |


|
noexcept |
reads the observing mode information from VieSchedpp.xml file
| skdCatalogs | sked catalogs |
| of | outstream to log file |

|
noexcept |
creates dummy observing modes file
| nsta | number of stations |
| samplerate | sample rate |
| bits | sampling bits |
| band2channel | band name to number of channels |
| band2wavelength | band name to wavelength |
| efficiencyFactor | recording efficiency factor (use -1 for internal calculation) |
| void Initializer::initializeOptimization | ( | std::ofstream & | of | ) |
initializes optimization conditions with settings from VieSchedpp.xml file
| of | outstream to log file |


|
noexcept |
inintializes the sky Coverage lookup table


|
noexcept |
initializes all sources with settings from VieSchedpp.xml file
| type | source member type |


|
noexcept |
initializes a custom source sequence if there is one defined in the VieSchedpp.xml file


|
noexcept |
initializes all stations with settings from VieSchedpp.xml file


|
noexcept |
initializes the weight factors

|
private |
number of minutes where source is visible
| source | target source |
| parameters | source parameters |
| start | start time |
| end | end time |


|
noexcept |
precalc azimuth elevations for stations


|
noexcept |
pre calculates all possible second scans used for subnetting


|
noexcept |
reads all groups specified in the root tree
| root | tree start point |
| type | group type |


| vector< MultiScheduling::Parameters > Initializer::readMultiSched | ( | std::ostream & | out | ) |
reads multiSched block from VieSchedpp.xml file


|
privatenoexcept |
source setup function
As a start all parameter form parentPARA are used. If different parameter values are defined in the event these parameters are used instead of the parentPARA parameters.
| events | list of all events for sources |
| tree | property tree that holds source setup information |
| parameters | all defined parameters |
| groups | all defined groups |
| parentPARA | previously used parameters which are are use as template |
| type | source member type |


|
privatenoexcept |
station setup function
As a start all parameter form parentPARA are used. If different parameter values are defined in the event these parameters are used instead of the parentPARA parameters.
| events | list of all events for stations |
| tree | property tree that holds station setup information |
| parameters | all defined parameters |
| groups | all defined groups |
| parentPARA | previously used parameters which are are use as template |


| void Initializer::statisticsLogHeader | ( | std::ofstream & | of, |
| const std::vector< VieVS::MultiScheduling::Parameters > & | ms | ||
| ) |
writes statistics log header
| of | outstream to statistics.csv file |
| ms | vector multi scheduling parameters |


|
friend |
|
friend |
|
private |
baseline groups
|
private |
calibrator impact scan descriptor
|
private |
high impact scan descriptor
|
private |
multi scheduling paramters
|
private |
station network
|
staticprivate |
next id for this object type
|
private |
observing mode
|
private |
parameters
|
private |
pre calculated values
|
private |
satellite groups
|
private |
session source list
|
private |
spacecraft groups
|
private |
source groups
|
private |
station groups
|
private |
version
|
private |
content of VieSchedpp.xml file