|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISite
An ISite describes an observation site where an observation took place.
A site can be identified by its latitude and longitude values, but
as for processing reasons its implementation should have
more mandatory fields, such as elevation and timezone.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_ELEVATION
Constant for XML representation: Site elevation element name. |
static java.lang.String |
XML_ELEMENT_IAUCODE
Constant for XML representation: Site IAU code element name. |
static java.lang.String |
XML_ELEMENT_LATITUDE
Constant for XML representation: Site latitude element name. |
static java.lang.String |
XML_ELEMENT_LONGITUDE
Constant for XML representation: Site longitude element name. |
static java.lang.String |
XML_ELEMENT_NAME
Constant for XML representation: Site name element name. |
static java.lang.String |
XML_ELEMENT_SITE
Constant for XML representation: Site element name. |
static java.lang.String |
XML_ELEMENT_TIMEZONE
Constant for XML representation: Site timezone element name. |
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element parent)
Adds the site link to an given XML DOM Element The site element itself will be attached to given elements ownerDocument. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Site to a given parent XML DOM Element. |
float |
getElevation()
Returns the elevation of the site. |
java.lang.String |
getIAUCode()
Returns the IAU station code of the site. |
Angle |
getLatitude()
Returns the latitude of the site. |
Angle |
getLongitude()
Returns the longitude of the site. |
java.lang.String |
getName()
Returns the name of the site. |
int |
getTimezone()
Returns the timezone of the site. |
void |
setElevation(float elevation)
Sets the elevation of the site. |
void |
setIAUCode(java.lang.String IAUCode)
Sets the IAU code of the site. |
void |
setLatitude(Angle latitude)
Sets the latitude of the site. |
void |
setLongitude(Angle longitude)
Sets the longitude of the site. |
void |
setName(java.lang.String name)
Sets the name of the site. |
void |
setTimezone(int timezone)
Sets the timezone of the site. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_SITE
static final java.lang.String XML_ELEMENT_NAME
Site name goes here</name>
More stuff goes here
</site>
static final java.lang.String XML_ELEMENT_LONGITUDE
Site longitude goes here</longitude>
More stuff goes here
</site>
static final java.lang.String XML_ELEMENT_LATITUDE
Site latitude goes here</latitude>
More stuff goes here
</site>
static final java.lang.String XML_ELEMENT_ELEVATION
Site elevation goes here</elevation>
More stuff goes here
</site>
static final java.lang.String XML_ELEMENT_TIMEZONE
Sites timezone goes here</timezone>
More stuff goes here
</site>
static final java.lang.String XML_ELEMENT_IAUCODE
Sites IAU code goes here</code>
More stuff goes here
</site>
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Site
null if parent was null.Elementorg.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
parent - The element under which the the site link is created
null if element was null.ElementAngle getLatitude()
Angle getLongitude()
java.lang.String getName()
java.lang.String getIAUCode()
null as the site may not
have an IAU (International Astronomical Union) station code.
null
if no code exists, or was never set.int getTimezone()
float getElevation()
NULL if value was never setvoid setElevation(float elevation)
elevation - The new elevation for this site
void setLatitude(Angle latitude)
throws java.lang.IllegalArgumentException
latitude - The new latitude for this site
java.lang.IllegalArgumentException - if latitude is null
void setLongitude(Angle longitude)
throws java.lang.IllegalArgumentException
longitude - The new longitude for this site
java.lang.IllegalArgumentException - if longitude is null
void setName(java.lang.String name)
throws java.lang.IllegalArgumentException
name - The new name for this site
java.lang.IllegalArgumentException - if name is nullvoid setIAUCode(java.lang.String IAUCode)
IAUCode - The new IAU code for this site
void setTimezone(int timezone)
throws java.lang.IllegalArgumentException
timezone - The new timezone for this site in minutes
java.lang.IllegalArgumentException - if new timezone is greater than
720 (12*60) or lower than -720 (12*60)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||