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.


Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
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
 
Method Summary
 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
 String toString()
          Convert to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 sphere
longitude - The longitude of the center of the sphere
altitude - The altitude of the center of the sphere, in m
size - 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.
Method Detail

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