|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.om.SchemaElement
org.jscience.ml.om.Finding
org.jscience.ml.om.extension.deepsky.DeepSkyFinding
public class DeepSkyFinding
DeepSkyFinding extends the org.jscience.ml.om.Finding class.
Its specialised for DeepSky observations and their findings.
A DeepSky object can be an astronomical object outside our
solar system.
The class is mostly oriented after the recommondations of the
german "VdS - DeepSky" group
(Homepage).
The field rating is based on a seven step scale recommended
by "VDS - DeepSky" group. The scales value should be interpreted
as the following table explains:
| 1 | Simple conspicuous object in the eyepiece | 2 | Good viewable with direct vision | 3 | Viewable with direct vision | 4 | Viewable only with averted vision | 5 | Object can hardly be seen with averted vision | 6 | Object dubiously sighted | 7 | Object not sighted |
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_FINDING_ATTRIBUTE_MOTTLED
|
static java.lang.String |
XML_ELEMENT_FINDING_ATTRIBUTE_RESOLVED
|
static java.lang.String |
XML_ELEMENT_FINDING_ATTRIBUTE_STELLAR
|
static java.lang.String |
XML_ELEMENT_LARGEDIAMETER
|
static java.lang.String |
XML_ELEMENT_RATING
|
static java.lang.String |
XML_ELEMENT_SMALLDIAMETER
|
| Fields inherited from interface org.jscience.ml.om.IFinding |
|---|
XML_ELEMENT_DESCRIPTION, XML_ELEMENT_FINDING |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Fields inherited from interface org.jscience.ml.om.IExtendableSchemaElement |
|---|
XML_XSI_TYPE |
| Constructor Summary | |
|---|---|
DeepSkyFinding(org.w3c.dom.Node findingElement)
|
|
DeepSkyFinding(java.lang.String description,
int rating)
Constructs a new instance of a DeepSkyFinding. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element parent)
Adds this DeepSkyFinding to an given parent XML DOM Element. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
java.lang.String |
getDisplayName()
Returns a display name for this element. |
Angle |
getLargeDiameter()
Returns the large visible diameter of the observed object. |
boolean |
getMottled()
Returns the mottled value of this DeepSkyFinding. |
int |
getRating()
Returns the rating of the observed object. |
boolean |
getResolved()
Returns true if the observed object could be seen resolved
during observation. |
Angle |
getSmallDiameter()
Returns the small visible diameter of the observed object. |
boolean |
getStellar()
Returns true if the observed object appeard stellar
during observation. |
java.lang.String |
getXSIType()
Returns the XML schema instance type of the implementation. |
boolean |
setLargeDiameter(Angle largeDiameter)
Sets the large visible diameter of the observed object. |
void |
setMottled(java.lang.Boolean mottled)
Sets the mottled value of this DeepSkyFinding. |
void |
setRating(int rating)
Sets the rating of the observed object. |
void |
setResolved(java.lang.Boolean resolved)
Sets the resolved value for this DeepSkyFinding. |
boolean |
setSmallDiameter(Angle smallDiameter)
Sets the small visible diameter of the observed object. |
void |
setStellar(java.lang.Boolean stellar)
Sets the stellar value for this DeepSkyFinding. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class org.jscience.ml.om.Finding |
|---|
createXmlFindingElement, getDescription, setDescription |
| Methods inherited from class org.jscience.ml.om.SchemaElement |
|---|
getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
getID |
| Field Detail |
|---|
public static final java.lang.String XML_ELEMENT_FINDING_ATTRIBUTE_STELLAR
public static final java.lang.String XML_ELEMENT_FINDING_ATTRIBUTE_RESOLVED
public static final java.lang.String XML_ELEMENT_FINDING_ATTRIBUTE_MOTTLED
public static final java.lang.String XML_ELEMENT_SMALLDIAMETER
public static final java.lang.String XML_ELEMENT_LARGEDIAMETER
public static final java.lang.String XML_ELEMENT_RATING
| Constructor Detail |
|---|
public DeepSkyFinding(org.w3c.dom.Node findingElement)
throws SchemaException
SchemaException
public DeepSkyFinding(java.lang.String description,
int rating)
throws java.lang.IllegalArgumentException
description - The description of the findingrating - The rating of the finding
java.lang.IllegalArgumentException - if description was null
or rating had a illegal value.| Method Detail |
|---|
public java.lang.String getDisplayName()
getDisplayName in interface ISchemaElementgetDisplayName in class SchemaElementjava.lang.Object.toString();public java.lang.String toString()
toString in class java.lang.ObjectObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object to compare this DeepSkyFinding with.
true if both Objects are instances from class DeepSkyFinding,
both XSI types are equal and
their fields contain the same values. (Can be checked with calling and comparing
both objects toString() method)Objectpublic java.lang.String getXSIType()
public org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element parent)
addToXmlElement in interface IFindingaddToXmlElement in class Findingparent - The parent element for this DeepSkyFinding
null if parent was null.Elementpublic Angle getLargeDiameter()
null if large diameter was never set.Angle
public boolean getMottled()
throws java.lang.IllegalStateException
true if the observed object could be
seen with structures
java.lang.IllegalStateException - if mottled was not set by the user
so the class cannot return true or falsepublic int getRating()
public boolean getResolved()
throws java.lang.IllegalStateException
true if the observed object could be seen resolved
during observation.
true if the observed object could be seen
resolved
java.lang.IllegalStateException - if resolved was not set by the user
so the class cannot return true or falsepublic Angle getSmallDiameter()
null if large diameter was never set.Angle
public boolean getStellar()
throws java.lang.IllegalStateException
true if the observed object appeard stellar
during observation.
true if the observed object appeard stellar
java.lang.IllegalStateException - if stellar was not set by the user,
so the class cannot return true or falsepublic boolean setLargeDiameter(Angle largeDiameter)
false.
largeDiameter - The large diameters (positiv) angle
true if the angle was set successfully. If
false is returned the angles value might have been
nagativ or the Angle object was null.
If false is returned the large diameter isn't setAnglepublic void setMottled(java.lang.Boolean mottled)
mottled - The mottled value to set for this DeepSkyFinding
or NULL if the value should be not set at all.
public void setRating(int rating)
throws java.lang.IllegalArgumentException
| 1 | Simple conspicuous object in the eyepiece | 2 | Good viewable with direct vision | 3 | Viewable with direct vision | 4 | Viewable only with averted vision | 5 | Object can hardly be seen with averted vision | 6 | Object dubiously sighted | 7 | Object not sighted |
rating - The rating value to set for this DeepSkyFinding.
A valid rating value is an integer between 1 and 7
java.lang.IllegalArgumentException - if rating > 7 or < 1public void setResolved(java.lang.Boolean resolved)
true if the observed
object could be seen resolved during observation.
resolved - The resolved value for this DeepSkyFinding
or NULL if the value should be not set at all.public boolean setSmallDiameter(Angle smallDiameter)
false.
smallDiameter - The small diameters (positiv) angle
true if the angle was set successfully. If
false is returned the angles value might have been
nagativ or the Angle object was null.
If false is returned the small diameter isn't setAnglepublic void setStellar(java.lang.Boolean stellar)
true if the observed object
could only be seen stellar during observation.
stellar - The stellar value to set for this DeepkSkyFinding
or NULL if the value should be not set at all.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||