public class Suggestion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The class identification
|
static java.lang.String |
STL_COMMENT_END_FLAG |
static java.lang.String |
STL_COMMENT_START_FLAG |
Constructor and Description |
---|
Suggestion()
Create a new suggestion with default values.
|
Suggestion(int id,
java.lang.String retiring_observation_id,
java.lang.String date_success) |
Modifier and Type | Method and Description |
---|---|
double |
Center_Latitude()
Get the Center_Latitude of the suggestion.
|
void |
Center_Latitude(double latitude)
Set the center latitude of the suggestion
|
double |
Center_Longitude()
Get the center longitude of the suggestion
|
void |
Center_Longitude(double longitude)
Set the center longitude of the suggestion
|
java.lang.String |
Child_Observation_ID()
Gets the Child Observation ID of this suggestion if it exists.
|
void |
Child_Observation_ID(java.lang.String child_observation_id)
Sets the Child Observation ID String for this suggestion.
|
int |
Child_Planned_Observations_ID()
Get the integer database id of the Child Observation.
|
void |
Child_Planned_Observations_ID(int planned_observation_id)
Sets the integer database id of the Child Observation, defaults to -1.
|
boolean |
Classroom_Relation_Created()
Indicates if the Classroom relationship to the cloned suggestion was
properly recreated after the clone was created.
|
void |
Classroom_Relation_Created(boolean classroom_relation_created)
Sets the success status of creating the classroom relation for the cloned
suggestion.
|
int |
Clone_ID()
Gets the clone suggestion id.
|
void |
Clone_ID(int clone_id)
Sets the suggestion id of the clone if needed.
|
java.lang.String |
Date_Success()
Gets the success date of this suggestion.
|
void |
Date_Success(java.lang.String date_success)
Sets the retirement date for this suggestion.
|
java.lang.String |
First_Half_Observation_ID()
If this suggestion is part of a stereo pair, and is mapped to a planned
observation this field will return the Observation ID of the first half
suggestion is mapped to..
|
void |
First_Half_Observation_ID(java.lang.String first_half_observation_id)
If the suggestion is part of a stereo pair, this method will set the
value of the Observation ID that the first suggestion of the pair is
mapped to (if it has been mapped at all).
|
int |
First_Half_Stereo_Planned_Observations_ID()
Gets the Planned_Observations.ID of the first half stereo suggestion id if
this suggestion is part of stereo pair and has been mapped to a planned
observation.
|
void |
First_Half_Stereo_Planned_Observations_ID(int first_Half_Stereo_Planned_Observations_ID)
Sets the Planned_Observations.ID for the first half stereo suggestion
if the stereo suggestion has been mapped to a planned observation.
|
int |
First_Half_Stereo_Suggestion_ID()
Gets the suggestion id of the first suggestion in the stereo pair.
|
void |
First_Half_Stereo_Suggestion_ID(int first_half_stereo_suggestion_id)
Sets the suggestion id of the first suggestion in the stereo pair if this
suggestion is part of a stereo pair.
|
boolean |
First_Half_Stereo()
Is this suggestion a first half stereo suggestion?
|
java.util.Calendar |
getAcquiredDate() |
java.lang.String |
getScienceRationale()
Get the science rationale for the suggestion.
|
java.lang.String |
getSTLDescription()
Get the STL Description for the suggestion
|
java.util.Calendar |
getSuggestion_Date() |
int |
ID()
Return the Suggestion ID of this Suggestion object
|
void |
ID(int id)
Sets the suggestion id of this object.
|
boolean |
Is_Mapped()
If the suggestion is a parent of an Observation, then the suggestion will
be mapped to the Child Observation.
|
boolean |
isStereo() |
void |
isStereo(boolean status) |
boolean |
isSuggestionDateAfterAcquired() |
boolean |
People_Relation_Created()
Indicates if the relationship of the cloned suggestion to the people table
was properly recreated.
|
void |
People_Relation_Created(boolean people_relation_created)
Sets the success status of the creation of the relation of the cloned
suggestion to the people table.
|
java.lang.String |
Retiring_Observation_ID()
Gets the observation id which retired this suggestion.
|
void |
Retiring_Observation_ID(java.lang.String retiring_observation_id)
Sets the retiring observation id for the suggestion.
|
java.lang.String |
ROI_String()
Get the Region of Interest string as formatted in the database
|
void |
ROI_String(java.lang.String roi)
Set the Region of Interest string, this should be formatted as in HiCat
|
boolean |
Science_Themes_Created()
Gets the success status of the creation of the science themes relationship
for the cloned suggestion.
|
void |
Science_Themes_Created(boolean science_themes_created)
Sets the success status of the creation of the science themes relations
for the cloned suggestion.
|
java.lang.String |
Second_Half_Stereo_Observation_ID()
Returns the observation id of the second half stereo observation if the
second half suggestion has been mapped to an observation.
|
void |
Second_Half_Stereo_Observation_ID(java.lang.String second_half_stereo_observation_id)
Sets the second half stereo observation id for this suggestion if it is
part of a stereo pair and the second half observation has been planned.
|
int |
Second_Half_Stereo_Planned_Observations_ID()
Gets the Planned_Observations.ID of the second half stereo observation
if it exists.
|
void |
Second_Half_Stereo_Planned_Observations_ID(int second_half_stereo_planned_observations_id)
Sets the Planned_Observations.ID of the second half stereo suggestion,
if it exists.
|
int |
Second_Half_Stereo_Suggestion_ID()
Gets the second half stereo suggestion id if it exists.
|
void |
Second_Half_Stereo_Suggestion_ID(int second_half_stereo_suggestion_id)
Sets the second half stereo suggestion id for the suggestion if it is part
of a stereo pair.
|
boolean |
Second_Half_Stereo()
Is the suggestion a second half stereo suggestion?
|
void |
Second_Half_Stereo(boolean second_half_stereo)
Sets the Second Half Stereo flag, for the object.
|
void |
setAcquiredDate(java.lang.String datestring) |
void |
setScienceRationale(java.lang.String rationale)
Set the science rationale for the suggestion.
|
void |
setSTLDescription(java.lang.String description)
Set the STL Description for the suggestion
|
void |
setSuggestionDate(java.lang.String datestring) |
java.lang.String |
Special_Notes()
Get the Special_Notes field for this suggestion.
|
void |
Special_Notes(java.lang.String special_notes)
Set the Special_Notes field for this suggestion.
|
boolean |
Suggestion_Cloned()
This records whether or not a suggestion needed to be cloned before it
was unretired.
|
void |
Suggestion_Cloned(boolean suggestion_cloned)
Sets the cloned status of the suggestion.
|
java.lang.String |
Unretirement_Message()
Get the unretirement message.
|
void |
Unretirement_Message(java.lang.String unretirement_message)
Set the unretirement message for this suggestion.
|
boolean |
Unretirement_Request_Flag() |
void |
Unretirement_Request_Flag(boolean flag) |
boolean |
Unretirement_Successfull() |
void |
Unretirement_Successfull(boolean success_status) |
public static final java.lang.String ID
public static final java.lang.String STL_COMMENT_START_FLAG
public static final java.lang.String STL_COMMENT_END_FLAG
public Suggestion(int id, java.lang.String retiring_observation_id, java.lang.String date_success)
public Suggestion()
public int ID()
public void ID(int id)
id
- public double Center_Latitude()
public void Center_Latitude(double latitude)
latitude
- - the center latitude of the suggestionpublic double Center_Longitude()
public void Center_Longitude(double longitude)
longitude
- - a double valuepublic java.lang.String ROI_String()
public void ROI_String(java.lang.String roi)
roi
- public java.lang.String getSTLDescription()
public void setSTLDescription(java.lang.String description)
description
- public java.lang.String getScienceRationale()
public void setScienceRationale(java.lang.String rationale)
rationale
- public java.lang.String Special_Notes()
public void Special_Notes(java.lang.String special_notes)
special_notes
- - the special notes stringpublic java.lang.String Date_Success()
public void Date_Success(java.lang.String date_success)
date_success
- public void setSuggestionDate(java.lang.String datestring)
public java.util.Calendar getSuggestion_Date()
public void setAcquiredDate(java.lang.String datestring)
public java.util.Calendar getAcquiredDate()
public boolean isSuggestionDateAfterAcquired()
public java.lang.String Retiring_Observation_ID()
public void Retiring_Observation_ID(java.lang.String retiring_observation_id)
retiring_observation_id
- public java.lang.String Child_Observation_ID()
public void Child_Observation_ID(java.lang.String child_observation_id)
child_observation_id
- public void Child_Planned_Observations_ID(int planned_observation_id)
planned_observation_id
- public int Child_Planned_Observations_ID()
public boolean Is_Mapped()
public boolean Classroom_Relation_Created()
Clone_ID()
public void Classroom_Relation_Created(boolean classroom_relation_created)
classroom_relation_created
- Clone_ID()
public boolean People_Relation_Created()
Clone_ID()
public void People_Relation_Created(boolean people_relation_created)
people_relation_created
- - sets the success value for creating the people relationClone_ID()
public int Clone_ID()
public void Clone_ID(int clone_id)
clone_id
- - The remapped observation id.public boolean Science_Themes_Created()
Clone_ID()
public void Science_Themes_Created(boolean science_themes_created)
science_themes_created
- Clone_ID()
public boolean Suggestion_Cloned()
public void Suggestion_Cloned(boolean suggestion_cloned)
suggestion_cloned
- public void isStereo(boolean status)
public boolean isStereo()
public java.lang.String First_Half_Observation_ID()
public void First_Half_Observation_ID(java.lang.String first_half_observation_id)
first_half_observation_id
- public boolean First_Half_Stereo()
public int First_Half_Stereo_Planned_Observations_ID()
public void First_Half_Stereo_Planned_Observations_ID(int first_Half_Stereo_Planned_Observations_ID)
first_Half_Stereo_Planned_Observations_ID
- public int First_Half_Stereo_Suggestion_ID()
public void First_Half_Stereo_Suggestion_ID(int first_half_stereo_suggestion_id)
first_half_stereo_suggestion_id
- public boolean Second_Half_Stereo()
public void Second_Half_Stereo(boolean second_half_stereo)
second_half_stereo
- public java.lang.String Second_Half_Stereo_Observation_ID()
public void Second_Half_Stereo_Observation_ID(java.lang.String second_half_stereo_observation_id)
second_half_stereo_observation_id
- public int Second_Half_Stereo_Planned_Observations_ID()
public void Second_Half_Stereo_Planned_Observations_ID(int second_half_stereo_planned_observations_id)
second_half_stereo_planned_observations_id
- public int Second_Half_Stereo_Suggestion_ID()
public void Second_Half_Stereo_Suggestion_ID(int second_half_stereo_suggestion_id)
second_half_stereo_suggestion_id
- public java.lang.String Unretirement_Message()
public void Unretirement_Message(java.lang.String unretirement_message)
unretirement_message
- public boolean Unretirement_Request_Flag()
public void Unretirement_Request_Flag(boolean flag)
public boolean Unretirement_Successfull()
public void Unretirement_Successfull(boolean success_status)
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona