|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IObservation
An IObservation describes an astronomical oberservation
of exactly one celestial object (target).
The observation must have one start date to be correct,
but does not have to have an end date (as the end date
might be lost in older observations).
Inside the XML Schema the Observation is the central entry
point for accessing all other kinds of data.
(See:
XML Schema Doc)
Therefore the IObservation provides access to almost all
other XML Schema elements.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_ACCESSORIES
Constant for XML representation: RootElement accessories (filters, ...). |
static java.lang.String |
XML_ELEMENT_BEGIN
Constant for XML representation: RootElement begin date element name. |
static java.lang.String |
XML_ELEMENT_END
Constant for XML representation: RootElement end date element name. |
static java.lang.String |
XML_ELEMENT_FAINTESTSTAR
Constant for XML representation: RootElement faintest star element name. |
static java.lang.String |
XML_ELEMENT_IMAGE
Constant for XML representation: Image made during observation. |
static java.lang.String |
XML_ELEMENT_MAGNIFICATION
Constant for XML representation: RootElement magnification. |
static java.lang.String |
XML_ELEMENT_OBSERVATION
Constant for XML representation: IObservation element name. |
static java.lang.String |
XML_ELEMENT_SEEING
Constant for XML representation: RootElement seeing. |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Method Summary | |
|---|---|
void |
addImage(java.lang.String imagePath)
Adds a new image (path) to this observation. |
boolean |
addImages(java.util.List images)
Adds a List of image paths (String) to this observation. |
void |
addResult(IFinding result)
Adds a new result to this observation. |
boolean |
addResults(java.util.List results)
Adds a List of results for this observation. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element parent)
Adds the IObservation implementation to an given parent XML DOM Element. |
java.lang.String |
getAccessories()
Returns the accessories used for this observation. |
java.util.Calendar |
getBegin()
Returns the start date of the observation. |
java.util.Calendar |
getEnd()
Returns the end date of the observation. |
IEyepiece |
getEyepiece()
Returns the eyepiece with which the observation was made. |
float |
getFaintestStar()
Returns the magnitude of the faintest star that could be seen during observation time with the unaided eye. |
IImager |
getImager()
Returns the imager that was used for this observation. |
java.util.List |
getImages()
Returns a list of images (relativ path to images), taken at this observation. |
float |
getMagnification()
Returns the magnification used for this observation. |
IObserver |
getObserver()
Returns the observer who made the observation. |
java.util.List |
getResults()
Returns a List with one or more results of the observation. |
IScope |
getScope()
Returns the scope that was used for the observation. |
int |
getSeeing()
Returns the seeing during this observation. |
ISession |
getSession()
Returns the session this observation belongs to. |
ISite |
getSite()
Returns the site where the observation took place. |
ITarget |
getTarget()
Returns the target which was observed. |
void |
setAccessories(java.lang.String accessories)
Sets the accessories used during the observation. |
void |
setBegin(java.util.Calendar begin)
Sets the start date of the observation. |
void |
setEnd(java.util.Calendar end)
Sets the end date of the observation. |
void |
setEyepiece(IEyepiece eyepiece)
Sets the eyepiece of the observation. |
void |
setFaintestStar(float faintestStar)
Sets the magnitude value of the faintest star which could be seen with the unaided eye during the observation. |
void |
setImager(IImager imager)
Sets an imager used for this observation. |
boolean |
setImages(java.util.List imagesList)
Sets a List of images (path as String) for this observation. |
void |
setMagnification(float magnification)
Sets the magnification used at the observation. |
void |
setObserver(IObserver observer)
Sets the observer of the observation. |
boolean |
setResult(IFinding result)
Sets a single IFinding as result for this observation. |
boolean |
setResults(java.util.List results)
Sets a List of results for this observation. |
void |
setScope(IScope scope)
Sets the scope of the observation. |
void |
setSeeing(int seeing)
Sets the seeing during this observation. |
void |
setSession(ISession session)
Sets the session which this observation belongs to. |
void |
setSite(ISite site)
Sets the site where this observation took place. |
void |
setTarget(ITarget target)
Sets the target of this observation. |
| Methods inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_OBSERVATION
static final java.lang.String XML_ELEMENT_BEGIN
Start date and time of
observation</begin> More stuff goes here
</observation>
static final java.lang.String XML_ELEMENT_ACCESSORIES
Some
accessories</accessories> More stuff goes here
</observation>
static final java.lang.String XML_ELEMENT_END
End date and time of
observation</end> More stuff goes here
</observation>
static final java.lang.String XML_ELEMENT_FAINTESTSTAR
Magnitude of
faintest star</faintestStar> More stuff goes here
</observation>
static final java.lang.String XML_ELEMENT_SEEING
Seeing during
observation</seeingType> More stuff goes here
</observation>
static final java.lang.String XML_ELEMENT_MAGNIFICATION
Magnification
used for observation</magnification> More stuff goes
here </observation>
static final java.lang.String XML_ELEMENT_IMAGE
Relative path to
image</image> More stuff goes here
</observation>
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element parent)
parent - The parent element for the IObservation implementation
Elementjava.util.Calendar getBegin()
java.util.Calendar getEnd()
null if no end date was given.
null if no end
date was givenjava.lang.String getAccessories()
null if no accessories have been used.
null if no
accessories were usedIEyepiece getEyepiece()
null if no eyepiece was used at all.
null if no
eyepiece was used.float getFaintestStar()
Float.NaN if no value was set at all.
Float.NaN if no value was set.float getMagnification()
Float.NaN if no value was set at all.
Float.NaN if no value was set.java.util.List getImages()
null if images were set.
null if no images were set.int getSeeing()
-1 if no value was set at all.
-1 if
no value was set for seeing.IObserver getObserver()
java.util.List getResults()
IScope getScope()
null if the observation was not made with any
scope.
null if no scope was used at all.ISession getSession()
null if the observation is not part of any
observation session.
null if
the observation does not belong to any session.ISite getSite()
ITarget getTarget()
IImager getImager()
boolean setResult(IFinding result)
throws java.lang.IllegalArgumentException
null, an
IllegalArgumentException is thrown.
result - A new result for this observation
java.lang.IllegalArgumentException - if the new result is nullorg.jscience.ml.om.IObservation#addResults(java.util.Listresults),
org.jscience.ml.om.IObservation#addResult(IFindingresult),
org.jscience.ml.om.IObservation#setResults(Listresults),
IFinding
boolean setResults(java.util.List results)
throws java.lang.IllegalArgumentException
null, an
IllegalArgumentException is thrown.
results - The new list of results for this observation
java.lang.IllegalArgumentException - if new results list is
null or emptyorg.jscience.ml.om.IObservation#addResults(java.util.Listresults),
org.jscience.ml.om.IObservation#addResult(IFindingresult),
IFindingboolean addResults(java.util.List results)
null, the old result list will remain unchanged.
results - A list with more results for this observation
org.jscience.ml.om.IObservation#setResults(java.util.Listresults)void addResult(IFinding result)
result - A new result for this observationboolean addImages(java.util.List images)
null, the old result list will remain unchanged.
images - A list (containing Strings) with additional images (path)
for this observation
org.jscience.ml.om.IObservation#setResults(java.util.Listimages)void addImage(java.lang.String imagePath)
imagePath - A new image for this observation
boolean setImages(java.util.List imagesList)
throws java.lang.IllegalArgumentException
null, an
IllegalArgumentException is thrown.
imagesList - The new (String) list of images for this observation
java.lang.IllegalArgumentException - if new image list is null
or emptyorg.jscience.ml.om.IObservation#addImages(java.util.Listimages),
org.jscience.ml.om.IObservation#addImage(Stringimage)void setImager(IImager imager)
imager - The imager used for this observation
void setBegin(java.util.Calendar begin)
throws java.lang.IllegalArgumentException
begin - The start date of the observation
java.lang.IllegalArgumentException - if new begin date is nullvoid setEnd(java.util.Calendar end)
end - The end date of the observationvoid setEyepiece(IEyepiece eyepiece)
eyepiece - The eyepiece of the observationvoid setAccessories(java.lang.String accessories)
accessories - The accessories of the observationvoid setFaintestStar(float faintestStar)
faintestStar - The faintestStar of the observation in magnitudevoid setMagnification(float magnification)
magnification - The magnification used at the observation
void setSeeing(int seeing)
throws java.lang.IllegalArgumentException
seeing - A int between 1-5 representing the seeing
java.lang.IllegalArgumentException - DOCUMENT ME!
void setObserver(IObserver observer)
throws java.lang.IllegalArgumentException
observer - The observer of the observation
java.lang.IllegalArgumentException - if new observer is nullvoid setScope(IScope scope)
scope - The scope of the observation
void setSession(ISession session)
throws java.lang.IllegalArgumentException
session - The session this observation belongs to
java.lang.IllegalArgumentException - if this observations start date is not
between the session start and end date
void setSite(ISite site)
throws java.lang.IllegalArgumentException
site - The site this observation took place
java.lang.IllegalArgumentException - if new site is null
void setTarget(ITarget target)
throws java.lang.IllegalArgumentException
target - The target of this observation
java.lang.IllegalArgumentException - if new target is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||