edu.stanford.math.plex
public abstract class PersistenceInterval extends java.lang.Object implements java.lang.Comparable<PersistenceInterval>
PersistenceInterval
instances encode a dimension and a
duration (e.g., start and end times). The integer start/end times are
used internally in the Persistence class, but these may be converted to
form that uses doubles for start/end.Modifier and Type | Class and Description |
---|---|
static class |
PersistenceInterval.Float |
static class |
PersistenceInterval.Int |
Modifier and Type | Field and Description |
---|---|
int |
dimension
The dimension of the PersistenceInterval.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
infiniteExtent()
Is this PersistenceInterval semi-infinite in extent?
|
abstract double[] |
toDouble()
Return the start/endpoints as double[].
|
java.lang.String |
toString()
Represent a PersistenceInterval as a String.
|
public abstract boolean infiniteExtent()
public abstract double[] toDouble()
public java.lang.String toString()
toString
in class java.lang.Object