abstract class SvgSource.Process extends Util.Pairwise<Event>
Modifier and Type | Field and Description |
---|---|
protected double |
currentTime
The onset time point of the later event currently under visit.
|
protected boolean |
ipol
Whether the earlier event has a "interpolate" flag set in its tscore source.
|
protected @Opt Map<Event,String> |
ipoltable
The event parameters "interpolation mode", if present.
|
protected double |
predecTime
The onset time point of the earlier event currently under visit.
|
_last, it, lit
Constructor and Description |
---|
Process(Iterable<Event> it,
@Opt Map<Event,String> ipoltable) |
Modifier and Type | Method and Description |
---|---|
void |
first(Event e)
Can be overridden by the user to visit the very first element before the first pair
is visited by
Util.Pairwise.pairwise(Object,Object) . |
void |
pairwise(Event predec,
Event current)
Must be overridden by the user to visit the define what to do with each pair of
adjacent elements.
|
protected double |
time(Event e)
Get the onset time of the event according to the calendearic time data in the score.
|
last, process
@Opt protected final @Opt Map<Event,String> ipoltable
protected double predecTime
protected double currentTime
protected boolean ipol
protected double time(Event e)
public void first(Event e)
Util.Pairwise
Util.Pairwise.pairwise(Object,Object)
.first
in class Util.Pairwise<Event>
public void pairwise(Event predec, Event current)
Iterator.next()
, so that it "points"
(e.g. with its Iterator.hasNext()
to the successor of the later of both
visited elements. Here: prepare the registers ipol
and currentTime
.pairwise
in class Util.Pairwise<Event>