org.xbill.DNS
Class LOCRecord
java.lang.Object
|
+--org.xbill.DNS.Record
|
+--org.xbill.DNS.LOCRecord
- public class LOCRecord
- extends Record
Location - describes the physical location of hosts, networks, subnets.
|
Constructor Summary |
LOCRecord(Name _name,
short _dclass,
int _ttl,
double _latitude,
double _longitude,
double _altitude,
double _size,
double _hPrecision,
double _vPrecision)
Creates an LOC Record from the given data |
| Methods inherited from class org.xbill.DNS.Record |
equals,
fromString,
fromWire,
getDClass,
getName,
getRRsetType,
getTTL,
getType,
getWireLength,
hashCode,
newRecord,
newRecord,
newRecord,
toWire,
toWireCanonical,
withName |
LOCRecord
public LOCRecord(Name _name,
short _dclass,
int _ttl,
double _latitude,
double _longitude,
double _altitude,
double _size,
double _hPrecision,
double _vPrecision)
throws IOException
- Creates an LOC Record from the given data
- Parameters:
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.
toString
public String toString()
- Convert to a String
- Overrides:
- toString in class Record
getLatitude
public double getLatitude()
- Returns the latitude
getLongitude
public double getLongitude()
- Returns the longitude
getAltitude
public double getAltitude()
- Returns the altitude
getSize
public double getSize()
- Returns the diameter of the enclosing sphere
getHPrecision
public double getHPrecision()
- Returns the horizontal precision
getVPrecision
public double getVPrecision()
- Returns the horizontal precision