Application of Solutions

The calibration solutions are applied to each allocated station during the Subarray Configure command. If no solution is found a unit calibration will be applied as a default.

Below is the current sequence diagram:

@startuml
participant TelescopeManager as TM
participant MccsSubarray as Subarray
participant MccsStation as Station
participant MccsStationCalibrator as Calibrator
participant MccsCalibrationStore as Store
participant SelectionPolicy as Policy
participant "Calibration Database" as DB
participant SpsStation
participant MccsTile
hnote over Subarray: IDLE
TM -> Subarray: Configure()
activate Subarray
loop stations
Subarray -> Station: ApplyConfiguration(calibration_id, solution_type)
activate Station
Station -> SpsStation: SetBeamformerTable()
loop tiles
SpsStation -> MccsTile: SetBeamformerTable()
end
== Read the solution ==
alt solution_type = fitted
Station -> Calibrator: GetFittedSolutions(frequency_channels, calibration_id)
Calibrator -> Store: GetFittedSolutions()
else solution_type = raw
loop frequency channels
Station -> Calibrator: GetCalibration(frequency_channel, calibration_id)
Calibrator -> Store: GetSolution()
end
end
Store -> Policy: select(station_id, frequency_channel, calibration_id)
Policy -> DB: sql
DB --> Policy: solution
Policy --> Store: solution
Store --> Calibrator: solution
Calibrator --> Station: solution
note over Station: a unit calibration is applied\nif no solution is found
== Load the solution ==
note over Station: LoadCalibrationCoefficients
loop channel blocks
Station -> SpsStation: LoadCalibrationCoefficientsForChannels()
loop tiles
SpsStation -> MccsTile: LoadCalibrationCoefficientsForChannels()
end
end
== Apply the solution ==
note over Station: ApplyCalibration
Station -> SpsStation: ApplyCalibration(load_time)
loop tiles
SpsStation -> MccsTile: ApplyCalibration()
end
deactivate Station
end
deactivate Subarray
hnote over Subarray: READY
@enduml