Class FixedStepSelector
- java.lang.Object
-
- org.orekit.time.FixedStepSelector
-
- All Implemented Interfaces:
DatesSelector
public class FixedStepSelector extends Object implements DatesSelector
Selector generating a continuous stream of dates separated by a constant step.The dates can be aligned to whole steps in some time scale. So for example if a step of 60s is used and the alignment time scale is set to
UTC
, dates will be selected at whole minutes in UTC time.This class stores internally the last selected dates, so it is not thread-safe. A separate selector should be used for each thread in multi-threading context.
- Since:
- 9.3
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description FixedStepSelector(double step, TimeScale alignmentTimeScale)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbsoluteDate>
selectDates(AbsoluteDate start, AbsoluteDate end)
Select dates within an interval.
-
-
-
Constructor Detail
-
FixedStepSelector
public FixedStepSelector(double step, TimeScale alignmentTimeScale)
Simple constructor.- Parameters:
step
- step between two consecutive dates (s)alignmentTimeScale
- alignment time scale (null is alignment is not needed)
-
-
Method Detail
-
selectDates
public List<AbsoluteDate> selectDates(AbsoluteDate start, AbsoluteDate end)
Select dates within an interval.The
start
andend
date may be either in direct or reverse chronological order. The list is produced in the same order asstart
andend
, i.e. direct chronological order ifstart
is earlier thanend
or reverse chronological order ifstart
is later thanend
.The ordering (direct or reverse chronological order) should not be changed between calls, otherwise unpredictable results may occur.
- Specified by:
selectDates
in interfaceDatesSelector
- Parameters:
start
- interval startend
- interval end- Returns:
- selected dates within this interval
-
-