Java Doc for LatLonPoint.java in  » Science » Cougaar12_4 » org » cougaar » tools » csmart » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.tools.csmart.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.tools.csmart.util.LatLonPoint

LatLonPoint
public class LatLonPoint implements Location,Cloneable,Serializable(Code)
Courtesy of Openmap
Written by Don Dietrick, BBNT
Encapsulates latitude and longitude coordinates in decimal degrees. Normalizes the internal representation of latitude and longitude.

Normalized Latitude:
-90° <= φ <= 90°

Normalized Longitude:
-180° <= λ <= 180°
Also supports conversion to/from Cougaar core Latitude and Longitude
See Also:   Location



Field Summary
final public static  floatDATELINE
    
final public static  floatLON_RANGE
    
final public static  floatNORTH_POLE
    
final public static  floatSOUTH_POLE
    
protected  floatlat_
    
protected  floatlon_
    
public transient  floatradlat_
     Used by the projection code for read-only quick access.
public transient  floatradlon_
     Used by the projection code for read-only quick access.

Constructor Summary
public  LatLonPoint()
     Construct a default LatLonPoint.
public  LatLonPoint(float lat, float lon)
     Construct a LatLonPoint from raw float lat/lon in decimal degrees.
public  LatLonPoint(Latitude lat, Longitude lon)
    
public  LatLonPoint(float lat, float lon, boolean isRadian)
     Construct a LatLonPoint from raw float lat/lon in radians.
public  LatLonPoint(LatLonPoint pt)
     Copy construct a LatLonPoint.
public  LatLonPoint(double lat, double lon)
     Construct a LatLonPoint from raw double lat/lon.

Method Summary
public  Objectclone()
     Clone the LatLonPoint.
public  booleanequals(Object obj)
     Determines whether two LatLonPoints are equal.
public  floatgetLatitude()
     Get normalized latitude.
public  LatitudegetLatitudeObject()
     Get normalized Latitude.
public  floatgetLongitude()
     Get wrapped longitude.
public  LongitudegetLongitudeObject()
     Get wrapped longitude.
public  inthashCode()
     Hash the lat/lon value.
public static  booleanisInvalidLatitude(float lat)
     Check if latitude is bogus.
public static  booleanisInvalidLongitude(float lon)
     Check if longitude is bogus.
final public static  floatnormalize_latitude(float lat)
     Sets latitude to something sane.
public  voidread(DataInputStream s)
     Read object.
public  voidsetLatLon(float lat, float lon)
     Set latitude and longitude.
public  voidsetLatLon(float lat, float lon, boolean isRadian)
     Set latitude and longitude.
public  voidsetLatLon(LatLonPoint llpt)
     Set LatLonPoint.
public  voidsetLatitude(float lat)
     Set latitude.
public  voidsetLatitude(Latitude lat)
     Set latitude from core Latitude object.
public  voidsetLongitude(float lon)
     Set longitude.
public  voidsetLongitude(Longitude lon)
    
public  StringtoString()
     Returns a string representation of the object.
final public static  floatwrap_longitude(float lon)
     Sets longitude to something sane.
public  voidwrite(DataOutputStream s)
     Write object.

Field Detail
DATELINE
final public static float DATELINE(Code)



LON_RANGE
final public static float LON_RANGE(Code)



NORTH_POLE
final public static float NORTH_POLE(Code)



SOUTH_POLE
final public static float SOUTH_POLE(Code)



lat_
protected float lat_(Code)



lon_
protected float lon_(Code)



radlat_
public transient float radlat_(Code)
Used by the projection code for read-only quick access. This is meant for quick backdoor access by the projection library. Modify at your own risk!
See Also:   LatLonPoint.lat_



radlon_
public transient float radlon_(Code)
Used by the projection code for read-only quick access. This is meant for quick backdoor access by the projection library. Modify at your own risk!
See Also:   LatLonPoint.lon_




Constructor Detail
LatLonPoint
public LatLonPoint()(Code)
Construct a default LatLonPoint.



LatLonPoint
public LatLonPoint(float lat, float lon)(Code)
Construct a LatLonPoint from raw float lat/lon in decimal degrees.
Parameters:
  lat - latitude in decimal degrees
Parameters:
  lon - longitude in decimal degrees



LatLonPoint
public LatLonPoint(Latitude lat, Longitude lon)(Code)
Creates a new LatLonPoint from the core measures
Parameters:
  lat - a Latitude
Parameters:
  lon - a Longitude



LatLonPoint
public LatLonPoint(float lat, float lon, boolean isRadian)(Code)
Construct a LatLonPoint from raw float lat/lon in radians.
Parameters:
  lat - latitude in radians
Parameters:
  lon - longitude in radians
Parameters:
  isRadian - placeholder indicates radians



LatLonPoint
public LatLonPoint(LatLonPoint pt)(Code)
Copy construct a LatLonPoint.
Parameters:
  pt - LatLonPoint



LatLonPoint
public LatLonPoint(double lat, double lon)(Code)
Construct a LatLonPoint from raw double lat/lon.
Parameters:
  lat - latitude in decimal degrees
Parameters:
  lon - longitude in decimal degrees




Method Detail
clone
public Object clone()(Code)
Clone the LatLonPoint. clone



equals
public boolean equals(Object obj)(Code)
Determines whether two LatLonPoints are equal.
Parameters:
  obj - Object Whether the two points are equal up to a tolerance of10-5 degrees in latitude and longitude.



getLatitude
public float getLatitude()(Code)
Get normalized latitude. float latitude in decimal degrees(-90° <= φ <= 90°)



getLatitudeObject
public Latitude getLatitudeObject()(Code)
Get normalized Latitude.



getLongitude
public float getLongitude()(Code)
Get wrapped longitude. float longitude in decimal degrees(-180° <= λ <= 180°)



getLongitudeObject
public Longitude getLongitudeObject()(Code)
Get wrapped longitude. Longitude



hashCode
public int hashCode()(Code)
Hash the lat/lon value.

int hash value




isInvalidLatitude
public static boolean isInvalidLatitude(float lat)(Code)
Check if latitude is bogus. Latitude is invalid if lat > 90° or if lat < -90°.
Parameters:
  lat - latitude in decimal degrees boolean true if latitude is invalid



isInvalidLongitude
public static boolean isInvalidLongitude(float lon)(Code)
Check if longitude is bogus. Longitude is invalid if lon > 180° or if lon < -180°.
Parameters:
  lon - longitude in decimal degrees boolean true if longitude is invalid



normalize_latitude
final public static float normalize_latitude(float lat)(Code)
Sets latitude to something sane.
Parameters:
  lat - latitude in decimal degrees float normalized latitude in decimal degrees(-90° <= φ <= 90°)



read
public void read(DataInputStream s) throws IOException(Code)
Read object.
Parameters:
  s - DataInputStream



setLatLon
public void setLatLon(float lat, float lon)(Code)
Set latitude and longitude.
Parameters:
  lat - latitude in decimal degrees
Parameters:
  lon - longitude in decimal degrees



setLatLon
public void setLatLon(float lat, float lon, boolean isRadian)(Code)
Set latitude and longitude.
Parameters:
  lat - latitude in radians
Parameters:
  lon - longitude in radians
Parameters:
  isRadian - placeholder indicates radians



setLatLon
public void setLatLon(LatLonPoint llpt)(Code)
Set LatLonPoint.
Parameters:
  llpt - LatLonPoint



setLatitude
public void setLatitude(float lat)(Code)
Set latitude.
Parameters:
  lat - latitude in decimal degrees



setLatitude
public void setLatitude(Latitude lat)(Code)
Set latitude from core Latitude object.
Parameters:
  lat - Latitidue



setLongitude
public void setLongitude(float lon)(Code)
Set longitude.
Parameters:
  lon - longitude in decimal degrees



setLongitude
public void setLongitude(Longitude lon)(Code)



toString
public String toString()(Code)
Returns a string representation of the object. String representation



wrap_longitude
final public static float wrap_longitude(float lon)(Code)
Sets longitude to something sane.
Parameters:
  lon - longitude in decimal degrees float wrapped longitude in decimal degrees(-180° <= λ <= 180°)



write
public void write(DataOutputStream s) throws IOException(Code)
Write object.
Parameters:
  s - DataOutputStream



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.