|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISession
An ISession can be used to link several observations together. Typically a session would describe an observation night, where several observations took place. Therefore an ISession requires two mandatory fields: a start date and an end date. All observations of the session should have a start date that is inbetween the sessions start and end date.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_ATTRIBUTE_LANGUAGE
Constant for XML representation: language attribute Since COMAST 1.5 it is possible to add a language description to a session element. |
static java.lang.String |
XML_ELEMENT_BEGIN
Constant for XML representation: Sessions start date element name. |
static java.lang.String |
XML_ELEMENT_COMMENTS
Constant for XML representation: Sessions comments element name. |
static java.lang.String |
XML_ELEMENT_COOBSERVER
Constant for XML representation: Sessions coObserver element name. |
static java.lang.String |
XML_ELEMENT_END
Constant for XML representation: Sessions end date element name. |
static java.lang.String |
XML_ELEMENT_EQUIPMENT
Constant for XML representation: Sessions equipment element name. |
static java.lang.String |
XML_ELEMENT_SESSION
Constant for XML representation: Sessions element name. |
static java.lang.String |
XML_ELEMENT_SITE
Constant for XML representation: Sessions site element name. |
static java.lang.String |
XML_ELEMENT_WEATHER
Constant for XML representation: Sessions weather 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 session link to an given XML DOM Element The session element itself will be attached to given elements ownerDocument. |
boolean |
addCoObserver(IObserver coObserver)
Adds a single coobserver to this session. |
boolean |
addCoObservers(java.util.List coObservers)
Adds a List of coobservers to this session. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Session to a given parent XML DOM Element. |
java.util.Calendar |
getBegin()
Returns the start date of the session. |
java.lang.String |
getComments()
Returns a comment about this session. |
java.util.List |
getCoObservers()
Returns a List of coobservers who joined this session. |
java.util.Calendar |
getEnd()
Returns the end date of the session. |
java.lang.String |
getEquipment()
Returns a string describing equipment which was used during this session. |
java.lang.String |
getLanguage()
Returns the language in which this session is described as ISO language string. |
ISite |
getSite()
Returns the site of the session. |
java.lang.String |
getWeather()
Returns a describtion of the weather conditions during the session. |
void |
setBegin(java.util.Calendar begin)
Sets the start date of the session. |
void |
setComments(java.lang.String comments)
Sets a comment to the session. |
boolean |
setCoObservers(java.util.List coObservers)
Sets a new List of coobservers to this session. |
void |
setEnd(java.util.Calendar end)
Sets the end date of the session. |
void |
setEquipment(java.lang.String equipment)
Sets a equipment description to the session. |
void |
setLanguage(java.lang.String language)
Sets the language in which this session is described. |
void |
setSite(ISite site)
Sets a site (location) where the session took place. |
void |
setWeather(java.lang.String weather)
Sets the weather conditions of the session. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_SESSION
static final java.lang.String XML_ELEMENT_BEGIN
Sessions start date goes here</begin>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_END
Sessions end date goes here</end>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_SITE
Sessions site goes here</site>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_COOBSERVER
Sessions coObserver goes here</coObserver>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_WEATHER
Sessions weather goes here</weather>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_EQUIPMENT
Sessions equipment goes here</equipment>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_COMMENTS
Sessions comments go here</comments>
More stuff goes here
</session>
static final java.lang.String XML_ELEMENT_ATTRIBUTE_LANGUAGE
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Session
null if parent was null.Elementorg.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
parent - The element under which the the Session link is created
null if element was null.Elementjava.util.Calendar getBegin()
java.util.List getCoObservers()
null if no
coobservers were added to this session.
null if
coobservers were never added.java.lang.String getComments()
null if no
comment was set to this session.
null if
no comment was set at all.java.util.Calendar getEnd()
ISite getSite()
java.lang.String getEquipment()
null if no
equipment was set to this session.
null if
no additional equipment was used at all.java.lang.String getWeather()
null if no
weather conditions were addedt to this session.
null if
no weather conditions were added at all.java.lang.String getLanguage()
null if no
language was set for this session.
null if
no language was set at all.
void setBegin(java.util.Calendar begin)
throws java.lang.IllegalArgumentException
begin - The new start date of the session.
java.lang.IllegalArgumentException - if new start date is null
void setEnd(java.util.Calendar end)
throws java.lang.IllegalArgumentException
end - The new end date of the session.
java.lang.IllegalArgumentException - if new end date is null
void setSite(ISite site)
throws java.lang.IllegalArgumentException
site - The site where the session took place.
java.lang.IllegalArgumentException - if site is nullvoid setComments(java.lang.String comments)
comments - A new comment for the sessionvoid setEquipment(java.lang.String equipment)
equipment - The new equipment of the sessionboolean setCoObservers(java.util.List coObservers)
coObservers - The new List of coobservers of the session
boolean addCoObservers(java.util.List coObservers)
coObservers - A List of coobservers which will be added to
the existing List of coobservers which is stored in the session
boolean addCoObserver(IObserver coObserver)
coObserver - A new coobserver who will be addded to the List
of coobservers
nullvoid setWeather(java.lang.String weather)
weather - A string describing the weather conditions during the
sessionvoid setLanguage(java.lang.String language)
language - ISO language string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||