Inheritance diagram for Mountain:
Collaboration diagram for Mountain:Public Types | |
| enum | Unit { KILOMETERS = (6367), METERS = (6367000), MILES = (3956) } |
Public Methods | |
| Mountain () | |
| Mountain (String name, double longitude, double latitude, int elevation) | |
| String | getCategory () |
| int | getElevation () |
| double | getLongitude () |
| double | getLatitude () |
| long | calcTypeId () |
| double | getDistanceTo (IGeographicLocation other, Unit unit) |
| double | getDistanceTo (IGeographicLocation other) |
| Object | clone () throws CloneNotSupportedException |
| String | getName () |
| String | getLabel () |
| void | setLabel (String label) |
| long | getId () |
| void | setId (long id) |
Package Attributes | |
| double | latitude |
enum Unit [inherited] |
| Mountain | ( | ) |
| Mountain | ( | String | name, |
| double | longitude, | ||
| double | latitude, | ||
| int | elevation | ||
| ) |
| long calcTypeId | ( | ) | [inherited] |
Implements TypeMappingGenerator.
| Object clone | ( | ) | throws CloneNotSupportedException [inherited] |
| String getCategory | ( | ) |
Returns the category-string of this category. Note that this value is not further restricted, and different implementations might return different strings.
Reimplemented from GeographicLocation.
| double getDistanceTo | ( | IGeographicLocation | other, |
| Unit | unit | ||
| ) | [inherited] |
Calculates the Great-circle distance between this location and other, with the defined unit.
| other | |
| unit |
Implements IGeographicLocation.
| double getDistanceTo | ( | IGeographicLocation | other | ) | [inherited] |
Calculates the Great-circle distance between this location and other in kilometers.
| other | |
| unit |
Implements IGeographicLocation.
| int getElevation | ( | ) | [inherited] |
| long getId | ( | ) | [inherited] |
Returns the Id of this DataObject. Might return 0, if the object hasn't been inserted into database yet.
Implements DataObject.
| String getLabel | ( | ) | [inherited] |
Returns the label of this token, which can be any kind of string (except null), mainly used for display-reasons only. Note: Components MUST NOT assume that any kind of label (like 'word' or else) is returned by this method.
Implements ILabeledElement.
Reimplemented in TEIDramaSpeaker, TEIDramaSpeechAct, TEIDramaStage, JodaDateTime, JodaInterval, JodaPeriod, and Timex.
| double getLatitude | ( | ) | [inherited] |
Returns the latitude of the location in decimal degrees, as defined in Wikipedia:Latitude, and according to WGS 84
Implements IGeographicLocation.
| double getLongitude | ( | ) | [inherited] |
Returns the longitude of the location in decimal degrees, as defined in Wikipedia:Longitude, and according to WGS 84.
Implements IGeographicLocation.
| String getName | ( | ) | [inherited] |
Implements INamedEntity.
| void setId | ( | long | id | ) | [inherited] |
| void setLabel | ( | String | label | ) | [inherited] |
double latitude [package, inherited] |