BaseTimeStepper class abstract
A base stepper for operating with DateTimeFactory and time range steps.
Constructors
- BaseTimeStepper(DateTimeFactory dateTimeFactory)
Properties
-
allowedTickIncrements
→ List<
int> -
An ordered list of step increments that makes sense given the step.
no setterinherited
- dateTimeFactory → DateTimeFactory
-
The factory to generate a DateTime object.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typicalStepSizeMs → int
-
Returns the typical stepSize for this stepper assuming increment by 1.
no setterinherited
Methods
-
getNextStepTime(
DateTime time, int tickIncrement) → DateTime -
Get the next step time after
time
fromtickIncrement
. -
getStepCountBetween(
DateTimeExtents timeExtent, int tickIncrement) → int - Returns the number steps/ticks are between the given extents inclusive.
-
getSteps(
DateTimeExtents timeExtent) → TimeStepIteratorFactory -
Generates an Iterable for iterating over the time steps bounded by the
given timeExtents. The desired tickIncrement can be set on the returned
TimeStepIteratorFactory
. -
getStepTimeAfterInclusive(
DateTime time, int tickIncrement) → DateTime -
getStepTimeBeforeInclusive(
DateTime time, int tickIncrement) → DateTime -
Get the step time before or on the given
time
fromtickIncrement
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateBoundingSteps(
DateTimeExtents timeExtent) → DateTimeExtents - Get new bounding extents to the ticks that would contain the given timeExtents.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited