public class LOCRecord extends Record
| Constructor and Description |
|---|
LOCRecord(Name name,
int dclass,
long ttl,
double latitude,
double longitude,
double altitude,
double size,
double hPrecision,
double vPrecision)
Creates an LOC Record from the given data
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns the altitude
|
double |
getHPrecision()
Returns the horizontal precision
|
double |
getLatitude()
Returns the latitude
|
double |
getLongitude()
Returns the longitude
|
double |
getSize()
Returns the diameter of the enclosing sphere
|
double |
getVPrecision()
Returns the horizontal precision
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withNamepublic LOCRecord(Name name, int dclass, long ttl, double latitude, double longitude, double altitude, double size, double hPrecision, double vPrecision)
latitude - The latitude of the center of the spherelongitude - The longitude of the center of the spherealtitude - The altitude of the center of the sphere, in msize - The diameter of a sphere enclosing the described entity, in m.hPrecision - The horizontal precision of the data, in m.vPrecision - The vertical precision of the data, in m.public double getLatitude()
public double getLongitude()
public double getAltitude()
public double getSize()
public double getHPrecision()
public double getVPrecision()