public class TimeRange extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeRange.Tracker
Keeps one TimeRange per TransitStop that has been reached.
|
Constructor and Description |
---|
TimeRange()
Construct a TimeRange where all fields are zero.
|
TimeRange(int t)
Construct a TimeRange for a single value.
|
Modifier and Type | Method and Description |
---|---|
void |
checkCoherent() |
boolean |
mergeIn(TimeRange other)
Return true if the time range was updated, false if it remained the same.
|
TimeRange |
shift(int t)
Return a copy of this TimeRange that is translated forward in time by t seconds.
|
TimeRange |
wait(int t)
Return a copy of this TimeRange that includes a uniformly distributed wait from zero to t seconds.
|
public TimeRange()
public TimeRange(int t)
public boolean mergeIn(TimeRange other)
public TimeRange shift(int t)
public TimeRange wait(int t)
public void checkCoherent()
Copyright © 2018. All rights reserved.