public class OrbitDatumRange extends DatumRange implements java.io.Serializable
dr= new OrbitDatumRange( "crres", "6" )
dr.toString() → "orbit:crres:6"
dr= dr.next()
dr.toString() → "orbit:crres:7"
Also, orbit:http://das2.org/wiki/index.php/Orbits/crres:6 is supported for development work and personal lists.| Constructor and Description |
|---|
OrbitDatumRange(java.lang.String sc,
java.lang.String orbit) |
OrbitDatumRange(java.lang.String sc,
java.lang.String orbit,
Units unitPref) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compare this to another DatumRange, ordered by the lesser datum,
then the greater datum.
|
DatumRange |
convertTo(Units u)
return this DatumRange in new units.
|
boolean |
equals(java.lang.Object o)
returns true if the two endpoints are equal.
|
java.lang.String |
getOrbit()
return the string identifying this orbit, assuming the context is
provided elsewhere.
|
java.lang.String |
getSpacecraft()
return the spacecraft for the orbits, which can be a reference to a 3-column file.
|
int |
hashCode() |
static OrbitDatumRange |
maybeRelativize(java.lang.String pwd,
OrbitDatumRange odr) |
static OrbitDatumRange |
maybeRelativize(java.lang.String pwd,
OrbitDatumRange odr,
java.lang.String extraFormat)
return a special OrbitDatumRange which contains metadata which will allow it to be represented as %{PWD}orbit.dat,
so that .vap files can use resources relative to the .vap.These should not be used outside of this context,
but doing so is harmless.
|
DatumRange |
next()
returns the next DatumRange covering the space defined by Units.
|
DatumRange |
previous()
returns the previous DatumRange covering the space defined by Units.
|
void |
setCheat(java.lang.String cheat)
add subdirectory to %{PWD} when formatting, so we can embed the orbits file in a zip file under a "cheat" directory.
|
java.lang.String |
toString()
returns a human consumable representation of the string.
|
contains, contains, getUnits, include, intersection, intersects, max, middle, min, newDatumRange, newRange, newRange, newRange, rescale, union, width, zoomOutpublic OrbitDatumRange(java.lang.String sc,
java.lang.String orbit)
throws java.text.ParseException
java.text.ParseExceptionpublic OrbitDatumRange(java.lang.String sc,
java.lang.String orbit,
Units unitPref)
throws java.text.ParseException
java.text.ParseExceptionpublic static OrbitDatumRange maybeRelativize(java.lang.String pwd, OrbitDatumRange odr, java.lang.String extraFormat) throws java.io.IOException
pwd - the absolute positionodr - the OrbitDatumRange to be relativized.extraFormat - extra directory that will be used when saved.java.io.IOExceptionpublic static OrbitDatumRange maybeRelativize(java.lang.String pwd, OrbitDatumRange odr) throws java.io.IOException
java.io.IOExceptionpublic void setCheat(java.lang.String cheat)
cheat - public DatumRange next()
DatumRangenext in class DatumRangepublic DatumRange previous()
DatumRangeprevious in class DatumRangepublic DatumRange convertTo(Units u)
DatumRangeconvertTo in class DatumRangeu - the new units.public int compareTo(java.lang.Object o)
DatumRangecompareTo in interface java.lang.ComparablecompareTo in class DatumRangeo - the DatumRange to compare this DatumRange to.public boolean equals(java.lang.Object o)
DatumRangeequals in class DatumRangepublic int hashCode()
hashCode in class DatumRangepublic java.lang.String getOrbit()
public java.lang.String getSpacecraft()
public java.lang.String toString()
DatumRangetoString in class DatumRange