VieSched++
VieVS VLBI Scheduling Software
VieVS::ParameterSettings Class Reference

This class stores all setup information and writes a VieSchedpp.xml file. More...

#include <ParameterSettings.h>

Classes

struct  Contact
 contact information More...
 
struct  ParametersBaselines
 baseline parameters More...
 
struct  ParametersSources
 source parameters More...
 
struct  ParametersStations
 station parameters More...
 

Public Types

enum  Type {
  Type::station, Type::source, Type::satellite, Type::spacecraft,
  Type::baseline
}
 possible setup and optimization flags More...
 
enum  TryToFocusOccurrency { TryToFocusOccurrency::once, TryToFocusOccurrency::perScan }
 try to focus weight increase occurrency More...
 
enum  TryToFocusType { TryToFocusType::additive, TryToFocusType::multiplicative }
 try to focus weight increase type More...
 
enum  ObservationModeProperty { ObservationModeProperty::required, ObservationModeProperty::optional }
 all possible observation mode flux information type More...
 
enum  ObservationModeBackup {
  ObservationModeBackup::minValueTimes, ObservationModeBackup::maxValueTimes, ObservationModeBackup::internalModel, ObservationModeBackup::value,
  ObservationModeBackup::none
}
 all possible observation mode backup models More...
 

Public Member Functions

 ParameterSettings ()
 empty default constructor More...
 
void software (const std::string &name, const std::string &version)
 software block in parameter.xml More...
 
void general (const std::string &experimentName, const boost::posix_time::ptime &startTime, const boost::posix_time::ptime &endTime, bool subnetting, double subnettingAngle, bool useSubnettingPercent_otherwiseAllBut, double subnettingNumber, bool fillinmodeInfluenceOnSchedule, bool fillinmodeDuringScan, bool fillinmodeAPosteriori, int fillinmodeAPosteriori_minStations, int fillinmodeAPosteriori_minRepeat, bool idleToObservingTime, std::string idleToObservingTimeGroup, const std::vector< std::string > &stations, bool useSourcesFromParameter_otherwiseIgnore, const std::vector< std::string > &srcNames, const std::vector< std::string > &satelliteNames, const std::string &scanAlignment, const std::string &logConsole, const std::string &logFile, bool doNotObserveSourcesWithinMinRepeat, int versionOffset)
 general block in parameter.xml More...
 
void created (const boost::posix_time::ptime &time, std::string name, std::string email)
 created block in VieSchedpp.xml More...
 
void catalogs (const std::string &antenna, const std::string &equip, const std::string &flux, const std::string &freq, const std::string &hdpos, const std::string &loif, const std::string &mask, const std::string &modes, const std::string &position, const std::string &rec, const std::string &rx, const std::string &source, const std::string &tracks, const std::string &satellites)
 catalogs block in VieSchedpp.xml More...
 
void group (Type type, ParameterGroup group)
 group defined in VieSchedpp.xml More...
 
const std::vector< std::string > & getGroupMembers (Type type, std::string groupName)
 returns all members of a defined group More...
 
void parameters (const std::string &name, const ParametersStations &PARA)
 write defined station parameters to VieSchedpp.xml More...
 
void parameters (const std::string &name, const ParametersSources &PARA, Type type=Type::source)
 write defined source parameters to VieSchedpp.xml More...
 
void parameters (const std::string &name, const ParametersBaselines &PARA)
 write defined baseline parameters to VieSchedpp.xml More...
 
void setup (Type type, const ParameterSetup &setup)
 setup block in parameter.xml More...
 
void stationWaitTimes (const std::string &name, unsigned int fieldSystem, unsigned int preob, unsigned int midob, unsigned int postob)
 station wait times block More...
 
void stationCableWrapBuffer (const std::string &name, double axis1LowOffset, double axis1UpOffset, double axis2LowOffset, double axis2UpOffset)
 station cable wrap buffer block More...
 
void skyCoverage (double influenceDistance, unsigned int influenceInterval, double maxTwinTelecopeDistance, std::string interpolationDistance, std::string interpolationTime)
 skyCoverage block in parameter.xml More...
 
void weightFactor (double weight_skyCoverage, double weight_numberOfObservations, double weight_duration, double weight_averageSources, double weight_closure, unsigned int closures_max, double weight_averageStations, double weight_averageBaselines, double weight_idleTime, unsigned int intervalIdleTime, double weightDeclination, double declinationSlopeStart, double declinationSlopeEnd, double weightLowElevation, double lowElevationSlopeStart, double lowElevationSlopeEnd)
 weightFactor block in parameter.xml More...
 
void conditions (std::vector< std::string > members, std::vector< int > minScans, std::vector< int > minBaselines, bool andForCombination, int maxNumberOfIterations, int numberOfGentleSourceReductions, int minNumberOfSourcesToReduce, double percentage)
 conditions block in paramter.xml More...
 
void mode (double sampleRate, unsigned int bits, double efficiencyFactor=-1)
 custom mode block in parameter.xml More...
 
void mode (const std::string &skdMode)
 mode block in parameter.xml More...
 
void mode (const boost::property_tree::ptree &obsMode)
 custom observing mode to parameter.xml file More...
 
void mode_band (const std::string &name, double wavelength, unsigned int channels)
 band sub-block in mode block in parameter.xml More...
 
void mode_bandPolicy (const std::string &name, double minSNR, ObservationModeProperty station, ObservationModeBackup stationBackup, double stationBackupValue, ObservationModeProperty source, ObservationModeBackup sourceBackup, double sourceBackupValue)
 bandPolicy sub-block in mode block in parameter.xml More...
 
void multisched (const boost::property_tree::ptree &multiSched, const std::string &number, int maxn, const std::string &useSeed, int seed, bool pick_random=false)
 multisched block in parameter.xml More...
 
void mulitsched_genetic (int maxIterations, int populationSize, double selectBest, double selectRandom, double mutation, double minMutation, int parents)
 multisched block in parameter.xml More...
 
void multiCore (const std::string &threads, int nThreadsManual, const std::string &jobScheduler, int chunkSize)
 multiCore multi core support for scheduling More...
 
void write (const std::string &name)
 output routine that produces .xml file More...
 
void output (const std::string &experimentDescription, const std::string &scheduler, const std::string &correlator, const std::string &notes, bool initializer, bool iteration_log, bool createSummary, bool createNGS, const std::string &NGS_directory, bool createSKD, bool createVex, bool createSnrTable, bool operNotes, bool srcGrp, const std::vector< std::string > &srcGroupsForStatistic, bool createSkyCoverage, const std::vector< Contact > &contacts)
 output block in parameter.xml More...
 
void ruleScanSequence (unsigned int cadence, const std::vector< unsigned int > &modulo, const std::vector< std::string > &member)
 specify the sequence in which sources should be observed More...
 
void ruleFocusCorners (int cadence)
 focus observations at the corners of the commonly visible sky (for intensives) More...
 
void calibratorBlock (const std::vector< CalibratorBlock > &blocks)
 define fringe finder block More...
 
void ruleCalibratorBlockTime (unsigned int cadence, const std::string &member, const std::vector< std::pair< double, double >> &between_elevation, unsigned int nMaxScans, unsigned int scanTime)
 calibrator block in paramters.xml More...
 
void ruleCalibratorBlockNScanSelections (unsigned int cadence, const std::string &member, const std::vector< std::pair< double, double >> &between_elevation, unsigned int nMaxScans, unsigned int scanTime)
 calibrator block in paramters.xml More...
 
void highImpactAzEl (const std::vector< std::string > &members, const std::vector< double > &azs, const std::vector< double > &els, const std::vector< double > &margins, int interval, int repeat)
 high impact block in VieSchedpp.xml file More...
 
void simulator (const boost::property_tree::ptree &tree)
 adds simulator settings to xml file More...
 
void solver (const boost::property_tree::ptree &tree)
 adds solver settings to xml file More...
 
void priorities (const boost::property_tree::ptree &tree)
 adds priorities settings to xml file More...
 
const std::map< std::string, std::vector< std::string > > & getGroupStations () const
 get station groups More...
 
const std::map< std::string, std::vector< std::string > > & getGroupSources () const
 get source groups More...
 
const std::map< std::string, std::vector< std::string > > & getGroupSatellites () const
 get satellite groups More...
 
const std::map< std::string, std::vector< std::string > > & getGroupSpacecrafts () const
 get spacecraft groups More...
 
const std::map< std::string, std::vector< std::string > > & getGroupBaselines () const
 get baseline groups More...
 
const std::map< std::string, ParametersStations > & getParaStations () const
 get all station parameters More...
 
const std::map< std::string, ParametersSources > & getParaSources () const
 get all source parameters More...
 
const std::map< std::string, ParametersBaselines > & getParaBaselines () const
 get baseline parameters More...
 
void addAPrioriScans (const boost::property_tree::ptree &tree, const std::string &prefix)
 adds a priori scans More...
 

Static Public Member Functions

static boost::property_tree::ptree parameterStation2ptree (const std::string &name, const ParametersStations &PARA)
 defined station parameters More...
 
static std::pair< std::string, ParametersStationsptree2parameterStation (boost::property_tree::ptree ptree)
 transforms parameterStations to property_tree More...
 
static boost::property_tree::ptree parameterSource2ptree (const std::string &name, const ParametersSources &PARA)
 defined source parameters More...
 
static std::pair< std::string, ParametersSourcesptree2parameterSource (boost::property_tree::ptree ptree)
 transforms parameterSource to property_tree More...
 
static boost::property_tree::ptree parameterBaseline2ptree (const std::string &name, const ParametersBaselines &PARA)
 defined baseline parameters More...
 
static std::pair< std::string, ParametersBaselinesptree2parameterBaseline (boost::property_tree::ptree ptree)
 transforms ParametersBaselines to property_tree More...
 

Private Member Functions

boost::property_tree::ptree getChildTree (const ParameterSetup &setup)
 returns a child tree of root setup object More...
 
void addContact (const Contact &contact, boost::property_tree::ptree &tree, const std::string &node)
 add contact information to xml tree More...
 
Contact readContact (const boost::property_tree::ptree &tree)
 read contact information from xml tree More...
 

Private Attributes

boost::property_tree::ptree master_
 master property tree More...
 
std::map< std::string, std::vector< std::string > > groupStations_
 defined station group More...
 
std::map< std::string, std::vector< std::string > > groupSources_
 defined source group More...
 
std::map< std::string, std::vector< std::string > > groupSatellites_
 defined satellite group More...
 
std::map< std::string, std::vector< std::string > > groupSpacecrafts_
 defined spacecraft group More...
 
std::map< std::string, std::vector< std::string > > groupBaselines_
 defined baseline group More...
 
std::map< std::string, ParametersStationsparaStations_
 defined station parameters More...
 
std::map< std::string, ParametersSourcesparaSources_
 defined source parameters More...
 
std::map< std::string, ParametersSourcesparaSatellites_
 defined satellite parameters More...
 
std::map< std::string, ParametersSourcesparaSpacecrafts_
 defined spacecraft parameters More...
 
std::map< std::string, ParametersBaselinesparaBaselines_
 defined baseline parameters More...
 

Detailed Description

This class stores all setup information and writes a VieSchedpp.xml file.

Author
Matthias Schartner
Date
22.08.2017

Member Enumeration Documentation

all possible observation mode backup models

Author
Matthias Schartner
Enumerator
minValueTimes 

use minimum value found in other bands times a factor

maxValueTimes 

use maximum value found in other bands times a factor

internalModel 

use internal model to derive flux density of sources (sources only)

value 

use specific value

none 

no backup model

all possible observation mode flux information type

Author
Matthias Schartner
Enumerator
required 

this band information is required. If this information is missing this object is not used.

optional 

interpolated

this band information is only optional. If information is available it is used, otherwise it is

try to focus weight increase occurrency

Author
Matthias Schartner
Enumerator
once 

increase weight only once

perScan 

increadse weight after each scan

try to focus weight increase type

Author
Matthias Schartner
Enumerator
additive 

add weight increase value

multiplicative 

multiply with weight increase value

possible setup and optimization flags

Author
Matthias Schartner
Enumerator
station 

stations wise

source 

source wise

satellite 

satellite wise

spacecraft 
baseline 

spacecraft wise

baseline wise

Constructor & Destructor Documentation

VieVS::ParameterSettings::ParameterSettings ( )

empty default constructor

Author
Matthias Schartner

Member Function Documentation

void ParameterSettings::addAPrioriScans ( const boost::property_tree::ptree &  tree,
const std::string &  prefix 
)

adds a priori scans

Author
Matthias Schartner
Parameters
treexml tree containing scans
prefixprefix where property tree should be inserted

Here is the caller graph for this function:

void ParameterSettings::addContact ( const Contact contact,
boost::property_tree::ptree &  tree,
const std::string &  node 
)
private

add contact information to xml tree

Author
Matthias Schartner
Parameters
contactcontact information
treexml tree
nodenode where contact information should be added
void ParameterSettings::calibratorBlock ( const std::vector< CalibratorBlock > &  blocks)

define fringe finder block

Author
Matthias Schartner
Parameters
blockslist of all calibration blocks
void ParameterSettings::catalogs ( const std::string &  antenna,
const std::string &  equip,
const std::string &  flux,
const std::string &  freq,
const std::string &  hdpos,
const std::string &  loif,
const std::string &  mask,
const std::string &  modes,
const std::string &  position,
const std::string &  rec,
const std::string &  rx,
const std::string &  source,
const std::string &  tracks,
const std::string &  satellites 
)

catalogs block in VieSchedpp.xml

Author
Matthias Schartner
Parameters
antennaantenna catalog name
equipequip catalog name
fluxflux catalog name
freqfreq catalog name
hdposhdpos catalog name
loifloif catalog name
maskmask catalog name
modesmodes catalog name
positionposition catalog name
recrec catalog name
rxrx catlog name
sourcesource catalog name
trackstracks catalog name
satellitessatellite TLE file
void ParameterSettings::conditions ( std::vector< std::string >  members,
std::vector< int >  minScans,
std::vector< int >  minBaselines,
bool  andForCombination,
int  maxNumberOfIterations,
int  numberOfGentleSourceReductions,
int  minNumberOfSourcesToReduce,
double  percentage 
)

conditions block in paramter.xml

Author
Matthias Schartner
Parameters
membersgroup, source name or "__all__"
minScansminimum number of scans
minBaselinesminimum number of observations
andForCombinationcombination model
maxNumberOfIterationsmaximum number of iterations
numberOfGentleSourceReductionsnumber of gentle source reductions
minNumberOfSourcesToReduceminimum number of sources to reduce
percentagepercentage of sources to reduce during gentle source reduction
void ParameterSettings::created ( const boost::posix_time::ptime &  time,
std::string  name,
std::string  email 
)

created block in VieSchedpp.xml

Author
Matthias Schartner
Parameters
timecreated time stamp
namecreated name
emailcreated email
void ParameterSettings::general ( const std::string &  experimentName,
const boost::posix_time::ptime &  startTime,
const boost::posix_time::ptime &  endTime,
bool  subnetting,
double  subnettingAngle,
bool  useSubnettingPercent_otherwiseAllBut,
double  subnettingNumber,
bool  fillinmodeInfluenceOnSchedule,
bool  fillinmodeDuringScan,
bool  fillinmodeAPosteriori,
int  fillinmodeAPosteriori_minStations,
int  fillinmodeAPosteriori_minRepeat,
bool  idleToObservingTime,
std::string  idleToObservingTimeGroup,
const std::vector< std::string > &  stations,
bool  useSourcesFromParameter_otherwiseIgnore,
const std::vector< std::string > &  srcNames,
const std::vector< std::string > &  satelliteNames,
const std::string &  scanAlignment,
const std::string &  logConsole,
const std::string &  logFile,
bool  doNotObserveSourcesWithinMinRepeat,
int  versionOffset 
)

general block in parameter.xml

Author
Matthias Schartner
Parameters
experimentNameexperiment name
startTimesession start time
endTimesession end time
subnettingflag if subnetting is allowed
subnettingAngleminimum angular distance between subnetting sources in degrees
useSubnettingPercent_otherwiseAllButflag to choose minimum number of stations per subnetting scan model
subnettingNumbervalue for minimum number of stations per subnetting scan model
fillinmodeInfluenceOnScheduleflag if fillin mode scans should have an influence on the schedule
fillinmodeDuringScanflag if fillin mode scans are allowed
fillinmodeAPosterioriflag if fillin mode a posterior scans are allowed
fillinmodeAPosteriori_minStationsoverride source parameter "minStations" otherwise -1
fillinmodeAPosteriori_minRepeatoverride source parameter "minRepeat" otherwise -1
idleToObservingTimeflag if idle time should be converted to observing time
idleToObservingTimeGroupstation group for idle time to observing time
stationslist of all stations
useSourcesFromParameter_otherwiseIgnoreflag which model is used for srcNames
srcNamessource names for model from useSourcesFromParameter_otherwiseIgnore
satelliteNamesnames of satellites that should be scheduled
scanAlignmentscan alignment flag
logConsolelog level for console
logFilelog level for file
doNotObserveSourcesWithinMinRepeatconsider scans (with reduced weight) if they are within min repeat time
versionOffsetversion offset
boost::property_tree::ptree ParameterSettings::getChildTree ( const ParameterSetup setup)
private

returns a child tree of root setup object

Author
Matthias Schartner
Parameters
setuproot setup object
Returns
child property tree

Here is the call graph for this function:

const std::map<std::string, std::vector<std::string> >& VieVS::ParameterSettings::getGroupBaselines ( ) const
inline

get baseline groups

Author
Matthias Schartner
Returns
all baseline groups
const std::vector< std::string > & ParameterSettings::getGroupMembers ( ParameterSettings::Type  type,
std::string  groupName 
)

returns all members of a defined group

Author
Matthias Schartner
Parameters
typegroup type
groupNamegroup name
Returns
list of all group members
const std::map<std::string, std::vector<std::string> >& VieVS::ParameterSettings::getGroupSatellites ( ) const
inline

get satellite groups

Author
Matthias Schartner
Returns
all satellite groups
const std::map<std::string, std::vector<std::string> >& VieVS::ParameterSettings::getGroupSources ( ) const
inline

get source groups

Author
Matthias Schartner
Returns
all source groups
const std::map<std::string, std::vector<std::string> >& VieVS::ParameterSettings::getGroupSpacecrafts ( ) const
inline

get spacecraft groups

Author
Matthias Schartner
Returns
all spacecraft groups
const std::map<std::string, std::vector<std::string> >& VieVS::ParameterSettings::getGroupStations ( ) const
inline

get station groups

Author
Matthias Schartner
Returns
all station groups
const std::map<std::string, ParametersBaselines>& VieVS::ParameterSettings::getParaBaselines ( ) const
inline

get baseline parameters

Author
Matthias Schartner
Returns
all baseline parameters and name

Here is the call graph for this function:

const std::map<std::string, ParametersSources>& VieVS::ParameterSettings::getParaSources ( ) const
inline

get all source parameters

Author
Matthias Schartner
Returns
all source parameters and name
const std::map<std::string, ParametersStations>& VieVS::ParameterSettings::getParaStations ( ) const
inline

get all station parameters

Author
Matthias Schartner
Returns
all station parameters and name
void ParameterSettings::group ( ParameterSettings::Type  type,
ParameterGroup  group 
)

group defined in VieSchedpp.xml

Author
Matthias Schartner
Parameters
typegroup type
groupgroup object
void ParameterSettings::highImpactAzEl ( const std::vector< std::string > &  members,
const std::vector< double > &  azs,
const std::vector< double > &  els,
const std::vector< double > &  margins,
int  interval,
int  repeat 
)

high impact block in VieSchedpp.xml file

Author
Matthias Schartner
Parameters
membershigh impact stations
azstarget azimuths in degrees
elstarget elevations in degrees
marginstarget azimuth, elevation margins in degrees
intervalcheck interval in seconds
repeatminimum amount of time between tow scans in seconds
void ParameterSettings::mode ( double  sampleRate,
unsigned int  bits,
double  efficiencyFactor = -1 
)

custom mode block in parameter.xml

Author
Matthias Schartner
Parameters
sampleRatesample rate
bitsbits
efficiencyFactorrecording efficiency factor (use -1 for internal calculation)
void ParameterSettings::mode ( const std::string &  skdMode)

mode block in parameter.xml

Author
Matthias Schartner
Parameters
skdModename of observing mode in skd catalogs
void ParameterSettings::mode ( const boost::property_tree::ptree &  obsMode)

custom observing mode to parameter.xml file

Author
Matthias Schartner
Parameters
obsModecustom observing mode property tree
void ParameterSettings::mode_band ( const std::string &  name,
double  wavelength,
unsigned int  channels 
)

band sub-block in mode block in parameter.xml

Author
Matthias Schartner
Parameters
nameband name
wavelengthband wavelength
channelsnumber of channels
void ParameterSettings::mode_bandPolicy ( const std::string &  name,
double  minSNR,
ObservationModeProperty  station,
ObservationModeBackup  stationBackup,
double  stationBackupValue,
ObservationModeProperty  source,
ObservationModeBackup  sourceBackup,
double  sourceBackupValue 
)

bandPolicy sub-block in mode block in parameter.xml

Author
Matthias Schartner
Parameters
nameband name
minSNRminimum signal to noise ratio
stationstation policy for this band
stationBackupstation backup model
stationBackupValuestation backup model value
sourcesource policy for this band
sourceBackupsource backup model
sourceBackupValuesource backup model value
void ParameterSettings::mulitsched_genetic ( int  maxIterations,
int  populationSize,
double  selectBest,
double  selectRandom,
double  mutation,
double  minMutation,
int  parents 
)

multisched block in parameter.xml

Author
Matthias Schartner
Parameters
maxIterationsmaximum number of evolutions
populationSizepopulation size after crossover
selectBestpercentage of best parents to select
selectRandompercentage of random parents to select
mutationmutation acceleration
minMutationminimum mutation
parentsnumber of parents for crossover
void ParameterSettings::multiCore ( const std::string &  threads,
int  nThreadsManual,
const std::string &  jobScheduler,
int  chunkSize 
)

multiCore multi core support for scheduling

Author
Matthias Schartner
Parameters
threadsthread creation schema
nThreadsManualnumber of manually selected threads
jobSchedulerjob scheduling algorithmus
chunkSizejob scheduling chunk size
void ParameterSettings::multisched ( const boost::property_tree::ptree &  multiSched,
const std::string &  number,
int  maxn,
const std::string &  useSeed,
int  seed,
bool  pick_random = false 
)

multisched block in parameter.xml

Author
Matthias Schartner
Parameters
multiSchedmultisched xml tree
numbermaximum number of schedules model ("all" or "select")
maxnmaximum number of schedules number
useSeeduse seed model ("random" or "select")
seednumber
pick_randomdefault is false
void ParameterSettings::output ( const std::string &  experimentDescription,
const std::string &  scheduler,
const std::string &  correlator,
const std::string &  notes,
bool  initializer,
bool  iteration_log,
bool  createSummary,
bool  createNGS,
const std::string &  NGS_directory,
bool  createSKD,
bool  createVex,
bool  createSnrTable,
bool  operNotes,
bool  srcGrp,
const std::vector< std::string > &  srcGroupsForStatistic,
bool  createSkyCoverage,
const std::vector< Contact > &  contacts 
)

output block in parameter.xml

Author
Matthias Schartner
Parameters
experimentDescriptionexperiment description
schedulerscheduler
correlatorcorrelator
notesschedule notes
initializercreate initializer
iteration_logiteration log file
createSummarycreate summary file
createNGScreate NGS file
NGS_directorypath to NGS output (empty string for default path)
createSKDcreate SKD file
createVexcreate VEX file
createSnrTablecreate SNR table
operNotescreate operation notes file
srcGrpcreate source group statistics file
srcGroupsForStatisticgroups for source group statistics file
createSkyCoveragecreate sky coverage file
contactslist of contacts
boost::property_tree::ptree ParameterSettings::parameterBaseline2ptree ( const std::string &  name,
const ParametersBaselines PARA 
)
static

defined baseline parameters

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
Returns
property tree with baseline parameters
void ParameterSettings::parameters ( const std::string &  name,
const ParametersStations PARA 
)

write defined station parameters to VieSchedpp.xml

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
void ParameterSettings::parameters ( const std::string &  name,
const ParametersSources PARA,
Type  type = Type::source 
)

write defined source parameters to VieSchedpp.xml

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
void ParameterSettings::parameters ( const std::string &  name,
const ParametersBaselines PARA 
)

write defined baseline parameters to VieSchedpp.xml

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
boost::property_tree::ptree ParameterSettings::parameterSource2ptree ( const std::string &  name,
const ParametersSources PARA 
)
static

defined source parameters

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
Returns
property tree with source parameters
boost::property_tree::ptree ParameterSettings::parameterStation2ptree ( const std::string &  name,
const ParametersStations PARA 
)
static

defined station parameters

Author
Matthias Schartner
Parameters
nameparameter name
PARAparameters
Returns
property tree with station parameters
void ParameterSettings::priorities ( const boost::property_tree::ptree &  tree)

adds priorities settings to xml file

Author
Matthias Schartner
Parameters
treeproperty tree with priorities settings
std::pair< string, ParameterSettings::ParametersBaselines > ParameterSettings::ptree2parameterBaseline ( boost::property_tree::ptree  ptree)
static

transforms ParametersBaselines to property_tree

Author
Matthias Schartner
Parameters
ptreeproperty tree
Returns
first entry is parameter name, second are baseline parameters

Here is the caller graph for this function:

std::pair< string, ParameterSettings::ParametersSources > ParameterSettings::ptree2parameterSource ( boost::property_tree::ptree  ptree)
static

transforms parameterSource to property_tree

Author
Matthias Schartner
Parameters
ptreeproperty tree
Returns
first entry is parameter name, second are source parameters

Here is the caller graph for this function:

std::pair< string, ParameterSettings::ParametersStations > ParameterSettings::ptree2parameterStation ( boost::property_tree::ptree  ptree)
static

transforms parameterStations to property_tree

Author
Matthias Schartner
Parameters
ptreeproperty tree
Returns
first entry is parameter name, second are station parameters

Here is the caller graph for this function:

VieVS::ParameterSettings::Contact ParameterSettings::readContact ( const boost::property_tree::ptree &  tree)
private

read contact information from xml tree

Author
Matthias Schartner
Parameters
treexml tree with contact information
void ParameterSettings::ruleCalibratorBlockNScanSelections ( unsigned int  cadence,
const std::string &  member,
const std::vector< std::pair< double, double >> &  between_elevation,
unsigned int  nMaxScans,
unsigned int  scanTime 
)

calibrator block in paramters.xml

Author
Matthias Schartner
Parameters
cadencecadence in number of scans
membercalibrator source name
between_elevationtarget elevations
nMaxScansmaximum number of scans
scanTimefixed scan time
void ParameterSettings::ruleCalibratorBlockTime ( unsigned int  cadence,
const std::string &  member,
const std::vector< std::pair< double, double >> &  between_elevation,
unsigned int  nMaxScans,
unsigned int  scanTime 
)

calibrator block in paramters.xml

Author
Matthias Schartner
Parameters
cadencecadence in seconds
membercalibrator source name
between_elevationtarget elevations
nMaxScansmaximum number of scans
scanTimefixed scan time
void ParameterSettings::ruleFocusCorners ( int  cadence)

focus observations at the corners of the commonly visible sky (for intensives)

Author
Matthias Schartner
Parameters
cadencecadence for focusing on one corner
void ParameterSettings::ruleScanSequence ( unsigned int  cadence,
const std::vector< unsigned int > &  modulo,
const std::vector< std::string > &  member 
)

specify the sequence in which sources should be observed

Author
Matthias Schartner

If you say cadence = 5, modulo = 0, source = A than every 5th selected scan(or subnetting sequence) will be (if possible) to a source of A. This does not effect the first scan of a schedule!

You can use the modulo number to to combine different rules: cadence = 10, modulo = 0, source = "1234+567" and cadence = 10, modulo = 1, source = "1234+568" means that every 10th scan will be (if possible) to source 1234+567 followed by a scan to "1234+568".

Parameters
cadencecadence for this rule
modulomodulo operator for number of scan and cadence
membersource(group) which should be observed
void ParameterSettings::setup ( ParameterSettings::Type  type,
const ParameterSetup setup 
)

setup block in parameter.xml

Author
Matthias Schartner
Parameters
typeflag where this setup belongs
setupsetup object
void ParameterSettings::simulator ( const boost::property_tree::ptree &  tree)

adds simulator settings to xml file

Author
Matthias Schartner
Parameters
treeproperty tree with simulator settings
void ParameterSettings::skyCoverage ( double  influenceDistance,
unsigned int  influenceInterval,
double  maxTwinTelecopeDistance,
std::string  interpolationDistance,
std::string  interpolationTime 
)

skyCoverage block in parameter.xml

Author
Matthias Schartner
Parameters
influenceDistancemaximum angular influence distance in degrees
influenceIntervalmaximum time influence distance in seconds
maxTwinTelecopeDistancemaximum distance between twin telescopes
interpolationDistancedistance model function
interpolationTimetime model function
void ParameterSettings::software ( const std::string &  name,
const std::string &  version 
)

software block in parameter.xml

Author
Matthias Schartner
Parameters
namesoftware name
versionsoftware version
void ParameterSettings::solver ( const boost::property_tree::ptree &  tree)

adds solver settings to xml file

Author
Matthias Schartner
Parameters
treeproperty tree with solver settings
void ParameterSettings::stationCableWrapBuffer ( const std::string &  name,
double  axis1LowOffset,
double  axis1UpOffset,
double  axis2LowOffset,
double  axis2UpOffset 
)

station cable wrap buffer block

Author
Matthias Schartner
Parameters
namegroup, station name or "__all__"
axis1LowOffsetaxis 1 lower offset in degrees
axis1UpOffsetaxis 1 upper offset in degrees
axis2LowOffsetaxis 2 lower offset in degrees
axis2UpOffsetaxis 2 upper offset in degrees
void ParameterSettings::stationWaitTimes ( const std::string &  name,
unsigned int  fieldSystem,
unsigned int  preob,
unsigned int  midob,
unsigned int  postob 
)

station wait times block

Author
Matthias Schartner
Parameters
namegroup, station name or "__all__"
fieldSystemtime for field system commands in seconds
preobtime for preob in seconds
midobextra midob time for correlator synchronization
postobtime for postob
void ParameterSettings::weightFactor ( double  weight_skyCoverage,
double  weight_numberOfObservations,
double  weight_duration,
double  weight_averageSources,
double  weight_closure,
unsigned int  closures_max,
double  weight_averageStations,
double  weight_averageBaselines,
double  weight_idleTime,
unsigned int  intervalIdleTime,
double  weightDeclination,
double  declinationSlopeStart,
double  declinationSlopeEnd,
double  weightLowElevation,
double  lowElevationSlopeStart,
double  lowElevationSlopeEnd 
)

weightFactor block in parameter.xml

Author
Matthias Schartner
Parameters
weight_skyCoverageweight of sky Coverage
weight_numberOfObservationsweight of number of observations
weight_durationweight of duration of the scan
weight_averageSourcesweight of an average source observation distribution
weight_closureweight for number of closures
closures_maxmax number of closures assumed to be significant
weight_averageStationsweight of an average station usage distribution
weight_averageBaselinesweight of an average baselines usage distribution
weight_idleTimeextra weight for station after long idle time
intervalIdleTimeextra weight for stations after long idle time model in seconds
weightDeclinationweight factor for declination
declinationSlopeStartstart declination of additional weight (everything above has factor 0)
declinationSlopeEndend declination of additional declination weight slope (everything below has factor 1)
weightLowElevationweight factor for low elevation scans
lowElevationSlopeStartstart elevation of additional weight (everything above has factor 0)
lowElevationSlopeEndend elevation of additional declination weight slope (everything below has factor 1)
void ParameterSettings::write ( const std::string &  name)

output routine that produces .xml file

Author
Matthias Schartner
Parameters
nameoutput file name (usually "parameter")

Member Data Documentation

std::map<std::string, std::vector<std::string> > VieVS::ParameterSettings::groupBaselines_
private

defined baseline group

std::map<std::string, std::vector<std::string> > VieVS::ParameterSettings::groupSatellites_
private

defined satellite group

std::map<std::string, std::vector<std::string> > VieVS::ParameterSettings::groupSources_
private

defined source group

std::map<std::string, std::vector<std::string> > VieVS::ParameterSettings::groupSpacecrafts_
private

defined spacecraft group

std::map<std::string, std::vector<std::string> > VieVS::ParameterSettings::groupStations_
private

defined station group

boost::property_tree::ptree VieVS::ParameterSettings::master_
private

master property tree

std::map<std::string, ParametersBaselines> VieVS::ParameterSettings::paraBaselines_
private

defined baseline parameters

std::map<std::string, ParametersSources> VieVS::ParameterSettings::paraSatellites_
private

defined satellite parameters

std::map<std::string, ParametersSources> VieVS::ParameterSettings::paraSources_
private

defined source parameters

std::map<std::string, ParametersSources> VieVS::ParameterSettings::paraSpacecrafts_
private

defined spacecraft parameters

std::map<std::string, ParametersStations> VieVS::ParameterSettings::paraStations_
private

defined station parameters


The documentation for this class was generated from the following files: