public abstract class ObservationNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Timestamp |
acquired
Actual acquisition time
|
protected CommandedCcdSet |
ccdset
CCD Settings
|
protected int |
cycle
Cycle number
|
protected java.lang.String |
id
observation ID
|
protected java.sql.Timestamp |
predicted
Predicted acquisition time
|
protected java.util.Set<java.lang.String> |
related
set of related stereo observation IDs
|
protected java.lang.String |
status
observation status
|
protected boolean |
stereo
true if suggestion was stereo
|
protected int |
suggestion
Corresponding suggestion ID
|
protected java.util.Set<java.lang.String> |
tagnames
just the tag names
|
protected java.util.Map<Tag,java.lang.String> |
tags
map of tag to product#version (or empty string if no specific product)
|
protected java.lang.String |
target
observation target
|
protected java.lang.String |
theme
Science theme
|
protected java.lang.String |
thumb
Thumbnail URL
|
protected java.lang.String |
title
observation title
|
Constructor and Description |
---|
ObservationNode(java.lang.String id)
Create a new node, with information to be filled out
|
Modifier and Type | Method and Description |
---|---|
void |
addRelatedId(java.lang.String id)
Add a related ID
|
void |
addTag(java.lang.String product,
java.lang.String id,
int version,
Tag tag)
Associates a tag with a product.
|
ObservationNode |
cycle(int cycle)
Set to true if cycle is available
|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getAcquiredTime()
Get the acquired time
|
CommandedCcdSet |
getCommandedCcdSet()
Get the commanding instance
|
int |
getCycle()
Get the cycle number
|
boolean |
getDerivable()
Return true if geometry is required
|
java.lang.String |
getId()
Get the observation ID
|
java.util.Date |
getPredictedTime()
Get the predicted time
|
boolean |
getProductable()
Return true if products are expected for this observation
|
java.util.Set<java.lang.String> |
getRelated() |
int |
getRelatedCount()
Get the number of related observations/suggestions
|
java.lang.String |
getRelatedStereoId()
Get the related stereo ID or null if it does not exist
|
java.lang.String |
getStatus() |
int |
getSuggestion()
Get the suggestion number (could be zero if there is no corresponding suggestion)
|
java.lang.String |
getTarget()
Get the target name
|
java.lang.String |
getTheme()
Get the science theme name
|
java.lang.String |
getThumb()
Get the thumb path (relative URL path)
|
java.lang.String |
getTitle()
Get the observation title
|
int |
hashCode() |
boolean |
isStereo()
Get the stereo type (STL stereo)
|
void |
setSuggestion(int suggestion)
Set the suggestion number
|
void |
setThumb(java.lang.String thumb)
Set the thumb path (relative URL path)
|
void |
setTiming(java.sql.Timestamp predicted,
java.sql.Timestamp acquired)
Set the predicted and acquired times
|
ObservationNode |
status(java.lang.String status)
Set the status
|
ObservationNode |
stereo(boolean stereo)
Set the stereo mode
|
ObservationNode |
target(java.lang.String target)
Set the target
|
ObservationNode |
theme(java.lang.String theme)
Set the theme
|
ObservationNode |
title(java.lang.String title)
Set the title
|
protected java.lang.String id
protected java.lang.String title
protected java.lang.String target
protected java.lang.String status
protected boolean stereo
protected java.util.Set<java.lang.String> related
protected CommandedCcdSet ccdset
protected transient java.sql.Timestamp predicted
protected java.sql.Timestamp acquired
protected int suggestion
protected java.lang.String thumb
protected java.lang.String theme
protected int cycle
protected transient java.util.Map<Tag,java.lang.String> tags
protected transient java.util.Set<java.lang.String> tagnames
public ObservationNode(java.lang.String id)
id
- observation IDpublic ObservationNode status(java.lang.String status)
status
- value of statuspublic ObservationNode title(java.lang.String title)
title
- value of titlepublic ObservationNode target(java.lang.String target)
target
- value of targetpublic ObservationNode theme(java.lang.String theme)
theme
- value of themepublic ObservationNode cycle(int cycle)
cycle
- true if cycle is availablepublic ObservationNode stereo(boolean stereo)
stereo
- true if stereopublic void setTiming(java.sql.Timestamp predicted, java.sql.Timestamp acquired)
predicted
- value (should not be null)acquired
- value (can be null)public java.util.Date getPredictedTime()
public java.util.Date getAcquiredTime()
public CommandedCcdSet getCommandedCcdSet()
public void addRelatedId(java.lang.String id)
id
- the IDpublic java.lang.String getTitle()
public java.lang.String getTarget()
public java.lang.String getTheme()
public int getCycle()
public boolean isStereo()
public java.util.Set<java.lang.String> getRelated()
public java.lang.String getRelatedStereoId()
public int getRelatedCount()
public java.lang.String getId()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getStatus()
public boolean getDerivable()
public boolean getProductable()
public int getSuggestion()
public void setSuggestion(int suggestion)
suggestion
- suggestion_idpublic java.lang.String getThumb()
public void setThumb(java.lang.String thumb)
thumb
- URL pathpublic void addTag(java.lang.String product, java.lang.String id, int version, Tag tag)
product
- uniquely identifies the productid
- product ID (not necessarily unique, e.g. "RED")version
- product version numbertag
- the tag instanceCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona