|
|||||||||
| 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.Target
org.jscience.ml.om.extension.deepsky.DeepSkyTarget
public abstract class DeepSkyTarget
DeepSkyTarget extends the org.jscience.ml.om.Target class.
Its specialised for DeepSky targets.
A DeepSky target can be an astronomical object outside our
solar system.
Mostly all fields of the class are optional, only the name
(which is derived from class Target) is madatory.
| Field Summary |
|---|
| Fields inherited from interface org.jscience.ml.om.ITarget |
|---|
XML_ELEMENT_ALIASNAME, XML_ELEMENT_CONSTELLATION, XML_ELEMENT_DATASOURCE, XML_ELEMENT_NAME, XML_ELEMENT_TARGET, XML_XSI_TYPE |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Constructor Summary | |
|---|---|
protected |
DeepSkyTarget(org.w3c.dom.Node targetElement,
IObserver[] observers)
Constructs a new instance of a DeepSkyTarget from a given DOM target Element. |
protected |
DeepSkyTarget(java.lang.String name,
IObserver observer)
Constructs a new instance of a DeepSkyTarget. |
protected |
DeepSkyTarget(java.lang.String name,
java.lang.String datasource)
Constructs a new instance of a DeepSkyTarget. |
| Method Summary | |
|---|---|
abstract org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Target to a given parent XML DOM Element. |
protected org.w3c.dom.Element |
createXmlDeepSkyTargetElement(org.w3c.dom.Element element,
java.lang.String xsiType)
Creates a deepkSkyTarget under the target container. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
Angle |
getLargeDiameter()
Returns the large diameter of the astronomical object. |
Angle |
getSmallDiameter()
Returns the small diameter of the astronomical object. |
float |
getSurfaceBrightness()
Returns the surface brightness of the astronomical object in magnitudes per squareminute. |
float |
getVisibleMagnitude()
Returns the visible magnitude of the astronomical object. |
abstract java.lang.String |
getXSIType()
Returns the XML schema instance type of the implementation. |
boolean |
setLargeDiameter(Angle largeDiameter)
Sets the large diameter of the DeepSkyTarget. |
boolean |
setSmallDiameter(Angle smallDiameter)
Sets the small diameter of the DeepSkyTarget. |
void |
setSurfaceBrightness(float surfaceBrightness)
Sets the surface brightness of the astronomical object. |
void |
setVisibleMagnitude(float visibleMagnitude)
Sets the visible magnitude of the astronomical object. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class org.jscience.ml.om.Target |
|---|
addAliasName, addAliasNames, addAsLinkToXmlElement, createXmlTargetElement, getAliasNames, getConstellation, getDatasource, getDisplayName, getName, getObserver, getPosition, removeAliasName, setAliasNames, setConstellation, setDatasource, setName, setObserver, setPosition |
| 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 |
| Constructor Detail |
|---|
protected DeepSkyTarget(org.w3c.dom.Node targetElement,
IObserver[] observers)
throws SchemaException
observers - Array of IObserver that might be linked from this observation,
can be NULL if datasource element is settargetElement - The origin XML DOM SchemaException - if given targetElement was null
protected DeepSkyTarget(java.lang.String name,
java.lang.String datasource)
name - The name of the astronomical objectdatasource - The datasource of the astronomical object
protected DeepSkyTarget(java.lang.String name,
IObserver observer)
name - The name of the astronomical objectobserver - The observer who is the originator of the target| Method Detail |
|---|
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 DeepSkyTarget with.
true if the given Object is an instance of ITarget,
both XSI types are equal and its name is equal to this DeepSkyTargets name.Objectpublic abstract java.lang.String getXSIType()
public abstract org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
addToXmlElement in interface ITargetaddToXmlElement in class Targetparent - The parent element for this Target
null if parent was null.Element
protected org.w3c.dom.Element createXmlDeepSkyTargetElement(org.w3c.dom.Element element,
java.lang.String xsiType)
element - The element under which the the target link is createdxsiType - The XSI:Type identification of the child class
null if element was null.Elementpublic Angle getLargeDiameter()
null if the value was never setAnglepublic Angle getSmallDiameter()
null if the value was never setAnglepublic float getSurfaceBrightness()
public float getVisibleMagnitude()
public boolean setLargeDiameter(Angle largeDiameter)
largeDiameter - The large diameter to set
null or had a negative value.public boolean setSmallDiameter(Angle smallDiameter)
smallDiameter - The small diameter to set
null or had a negative value.public void setSurfaceBrightness(float surfaceBrightness)
surfaceBrightness - The surface brightness to setpublic void setVisibleMagnitude(float visibleMagnitude)
visibleMagnitude - The visible magnitude to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||