@@ -29,15 +29,17 @@ pub struct CommonViewCalendar {
29
29
}
30
30
31
31
impl CommonViewCalendar {
32
- /// Design a new [CommonViewCalendar] (planification table).
32
+ /// Design a new [CommonViewCalendar] to plan your common view measurements
33
+ /// and CGGTTS realizations.
33
34
///
34
35
/// ## Input
35
36
/// - reference_epoch: reference [Epoch] used in the scheduling process.
36
- /// In historical CGGTTS , this is MJD 50_722 +2' .
37
+ /// In [Self::bipm] , this is MJD 50_722 00:00:02 .
37
38
///
38
39
/// - period: [CommonViewPeriod] specifications.
39
40
/// The total [CommonViewPeriod] must be a perfect multiple of a day,
40
41
/// we do not support a fractional number of daily periods.
42
+ /// In [Self::bipm], this is [CommonViewPeriod::bipm_common_view_period].
41
43
pub fn new ( reference_epoch : Epoch , period : CommonViewPeriod ) -> Result < Self , Error > {
42
44
let total_duration = period. total_duration ( ) . to_seconds ( ) ;
43
45
let one_day = Duration :: from_days ( 1.0 ) . to_seconds ( ) ;
@@ -241,15 +243,15 @@ impl CommonViewCalendar {
241
243
242
244
/// Returns remaining time (as [Duration]) until start of next
243
245
/// [CommonViewPeriod] after specified [Epoch].
244
- pub fn time_to_next_start ( & self , t : Epoch ) -> Duration {
246
+ pub fn time_to_next_period ( & self , t : Epoch ) -> Duration {
245
247
let next_start = self . next_period_start_after ( t) ;
246
248
t - next_start
247
249
}
248
250
249
251
/// Returns remaining time (as [Duration]) until start of next
250
252
/// active data collection, after specified [Epoch].
251
253
pub fn time_to_next_data_collection ( & self , t : Epoch ) -> Duration {
252
- let mut dt = self . time_to_next_start ( t) ;
254
+ let mut dt = self . time_to_next_period ( t) ;
253
255
if self . period . setup_duration == Duration :: ZERO {
254
256
dt += self . period . setup_duration ;
255
257
}
0 commit comments