HiRISE

HiRISE.HiPlan.HiSEAS
Class SimpleObservationId

java.lang.Object
  extended by HiRISE.HiPlan.HiSEAS.SimpleObservationId
All Implemented Interfaces:
Comparable<SimpleObservationId>

public final class SimpleObservationId
extends Object
implements Comparable<SimpleObservationId>

A greatly simplified implementation of the HiRISE observation ID. It covers post-launch IDs only, and it lacks the facilities to transform between the text and integer forms of the ID. It uses the text form only.

Author:
Christian Schaller, UA/HiRISE
See Also:
Observation_ID

Nested Class Summary
static class SimpleObservationId.MissionPhase
          An enumeration of the HiRISE post-launch mission phases.
 
Field Summary
static String ID
          Class identification name with source code version and date.
 
Method Summary
 int compareTo(SimpleObservationId i)
           
 boolean equals(Object o)
           
 SimpleObservationId.MissionPhase getMissionPhase()
           
 Integer getOrbit()
           
 Integer getTarget()
           
 int hashCode()
           
 String toString()
           
static SimpleObservationId valueOf(String text)
          Gets the simplified observation ID from input text.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Method Detail

getMissionPhase

public SimpleObservationId.MissionPhase getMissionPhase()

getOrbit

public Integer getOrbit()

getTarget

public Integer getTarget()

compareTo

public int compareTo(SimpleObservationId i)
Specified by:
compareTo in interface Comparable<SimpleObservationId>

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

valueOf

public static SimpleObservationId valueOf(String text)
Gets the simplified observation ID from input text. If the text does not represent a valid post-launch HiRISE observation ID, an IllegalArgumentException is thrown.


HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona