|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IScope
An IScope describes an optical instrument which can be
used for astronomical observations.
An IScope must have an aperture and a model name, as well
as either a magnification or a focalLength.
(magnification should be set if the optical instrument
does not allow to change eyepieces).
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_APERTURE
Constant for XML representation: Scopes aperture element name. |
static java.lang.String |
XML_ELEMENT_FOCALLENGTH
Constant for XML representation: Scopes focalLength element name. |
static java.lang.String |
XML_ELEMENT_LIGHTGRASP
Constant for XML representation: Scopes lightGrasp element name. |
static java.lang.String |
XML_ELEMENT_MAGNIFICATION
Constant for XML representation: Scopes magnification element name. |
static java.lang.String |
XML_ELEMENT_MODEL
Constant for XML representation: Scopes model element name. |
static java.lang.String |
XML_ELEMENT_ORENTATION
Constant for XML representation: Orientation of scope. |
static java.lang.String |
XML_ELEMENT_ORENTATION_ATTRIBUTE_ERECT
Constant for XML representation: Orientation attribute erect. |
static java.lang.String |
XML_ELEMENT_ORENTATION_ATTRIBUTE_TRUESIDED
Constant for XML representation: Orientation attribute truesided. |
static java.lang.String |
XML_ELEMENT_SCOPE
Constant for XML representation: IScope element name. |
static java.lang.String |
XML_ELEMENT_TRUEFIELD
Constant for XML representation: If magnification is given, the true field of view can be passed additionally. |
static java.lang.String |
XML_ELEMENT_TYPE
Constant for XML representation: Scopes type element name. |
static java.lang.String |
XML_ELEMENT_VENDOR
Constant for XML representation: Scopes vendor element name. |
static java.lang.String |
XML_XSI_TYPE
Constant for XML Schema Instance type. |
| 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 scope link to an given XML DOM Element The scope element itself will be attached to given elements ownerDocument. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Scope to a given parent XML DOM Element. |
float |
getAperture()
Returns the aperture of the scope. |
float |
getFocalLength()
Returns the focal length of the scope. |
float |
getLightGrasp()
Returns the light grasp value of the scope. |
float |
getMagnification()
Returns the magnification of the scope. |
java.lang.String |
getModel()
Returns the scopes model name. |
Angle |
getTrueFieldOfView()
Returns the true field of view, if set. |
java.lang.String |
getType()
Returns the scope type. |
java.lang.String |
getVendor()
Returns the scope's vendor name. |
boolean |
isOrientationErected()
Returns the scopes picture vertical orientation. |
boolean |
isOrientationTruesided()
Returns the scopes picture horizontal orientation. |
void |
setAperture(float aperture)
Sets the aperture of the scope. |
void |
setFocalLength(float focalLength)
Sets the focal length of the scope. |
boolean |
setLightGrasp(float lightGrasp)
Sets the light grasp value of the scope. |
void |
setMagnification(float magnification)
Sets the magnification of the scope. |
void |
setModel(java.lang.String model)
Sets the model name of the scope. |
void |
setOrientation(boolean errected,
boolean truesided)
Sets the orientation of the scope. |
void |
setTrueFieldOfView(Angle tfov)
Sets the true field of view, if magnification is given. |
void |
setType(java.lang.String type)
Sets the type of the scope. |
void |
setVendor(java.lang.String vendor)
Sets the vendor name of the scope. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_XSI_TYPE
String getXSIType() (which we can't do here)
we define this constant again in IScope.
static final java.lang.String XML_ELEMENT_SCOPE
static final java.lang.String XML_ELEMENT_MODEL
Scopes model name goes here</model>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_TYPE
Scopes type goes here</type>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_VENDOR
Scopes vendor goes here</vendor>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_APERTURE
Scopes aperture goes here</aperture>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_FOCALLENGTH
Scopes focalLength goes here</focalLength>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_MAGNIFICATION
Scopes magnification goes here</magnification>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_LIGHTGRASP
Scopes lightGrasp goes here</lightGrasp>
More stuff goes here
</scope>
static final java.lang.String XML_ELEMENT_ORENTATION
static final java.lang.String XML_ELEMENT_ORENTATION_ATTRIBUTE_ERECT
static final java.lang.String XML_ELEMENT_ORENTATION_ATTRIBUTE_TRUESIDED
static final java.lang.String XML_ELEMENT_TRUEFIELD
Scopes magnification goes here</magnification>
<trueField>True field of view goes here</trueField>
More stuff goes here
</scope>
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Scope
null if parent was null.Elementorg.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
parent - The element under which the the scope link is created
null if element was null.Elementfloat getAperture()
float getFocalLength()
Float.NaN
in case the focal length is not set for this
scope. In that case the magnification
must return a value.
float getLightGrasp()
Float.NaN
in case the light grasp was never set.
float getMagnification()
Float.NaN
in case the magnification is not set for this
scope. In that case the focal length
must return a value.
java.lang.String getModel()
java.lang.String getType()
null
if the type was never set.
null
if the type was never set.Angle getTrueFieldOfView()
NULL as the field is optional only if
magnification is set.
NULL if the value was never set.java.lang.String getVendor()
null
if the vendor was never set.
null if the type was never set.
boolean isOrientationErected()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if orientation was not set by the user,
so the class cannot return true or false
boolean isOrientationTruesided()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if orientation was not set by the user,
so the class cannot return true or false
void setTrueFieldOfView(Angle tfov)
throws java.lang.IllegalArgumentException
tfov - The true field of view of the scope
java.lang.IllegalArgumentException - if focal length is set.
void setAperture(float aperture)
throws java.lang.IllegalArgumentException
aperture - The new aperture of the scope
java.lang.IllegalArgumentException - if the given aperture
is smaller or equal 0.0 or if the aperture is Float.NaN
void setFocalLength(float focalLength)
throws java.lang.IllegalArgumentException
focalLength - The new focal length of the scope
java.lang.IllegalArgumentException - if the given focal length
is smaller or equal 0.0 or if the new focal length is Float.NaN
while magnification is also Float.NaN. Or magnification is already set.boolean setLightGrasp(float lightGrasp)
lightGrasp - The new light grasp value of the scope
void setMagnification(float magnification)
throws java.lang.IllegalArgumentException
magnification - The new magnification value of the scope
java.lang.IllegalArgumentException - if the given focal length
is Float.NaN while focal length is not set. Or focal length is
already set.
void setModel(java.lang.String model)
throws java.lang.IllegalArgumentException
null.
model - The new model name of the scope
java.lang.IllegalArgumentException - if the given model name
is nullvoid setType(java.lang.String type)
type - The new type of the scopevoid setVendor(java.lang.String vendor)
vendor - The new vendor name of the scope
void setOrientation(boolean errected,
boolean truesided)
errected - true if the scope produces errected picturestruesided - true if the scope produces truesided pictures
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||