public abstract class TimeIntervalType extends Object
| Modifier and Type | Field and Description |
|---|---|
static TimeIntervalType |
DAY_EXTENT
Interval starting at given epoch,
extent given in days by secondary coordinate.
|
static TimeIntervalType |
DAY_RADIUS
Interval centered on given epoch,
half-extent given in days by secondary coordinate.
|
static TimeIntervalType |
POINT
Single epoch interval, zero extent.
|
static TimeIntervalType |
RANGE
Interval between two given epochs.
|
static TimeIntervalType |
SEC_EXTENT
Interval starting at given epoch,
extent given in seconds by secondary coordinate.
|
static TimeIntervalType |
SEC_RADIUS
Interval centered on given epoch,
half-extent given in seconds by secondary coordinate.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TimeIntervalType(String name,
boolean hasT1)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getDescription(String t0name,
String t1name)
Returns a description of this interval type,
based on the UI parameter names of the primary and secondary
time coordinates.
|
String |
getName()
Returns the name of this interval type.
|
static TimeIntervalType[] |
getTypes()
Returns a list of useful instances of this class.
|
boolean |
hasT1()
Indicates whether this interval type makes use of the secondary
time coordinate.
|
abstract double[] |
toJdInterval(double jd0,
Object t1data,
TimeMapper mapper)
Converts the supplied values into an interval in Julian Date.
|
String |
toString() |
public static final TimeIntervalType POINT
public static final TimeIntervalType RANGE
public static final TimeIntervalType DAY_EXTENT
public static final TimeIntervalType DAY_RADIUS
public static final TimeIntervalType SEC_EXTENT
public static final TimeIntervalType SEC_RADIUS
protected TimeIntervalType(String name, boolean hasT1)
name - interval type namehasT1 - true iff this interval type uses the secondary
time coordinatepublic String getName()
public boolean hasT1()
public abstract String getDescription(String t0name, String t1name)
t0name - name of the primary time coordinate parametert1name - name of the secondary time coordinate parameterpublic abstract double[] toJdInterval(double jd0,
Object t1data,
TimeMapper mapper)
jd0 - primary time coordinate, giving the primary epoch, not NaNt1data - secondary time coordinate, semantics dependent on
this implementationmapper - mapper from user-supplied coordinate values to epochpublic static TimeIntervalType[] getTypes()
Copyright © 2026 Central Laboratory of the Research Councils. All Rights Reserved.