Java Doc for NamedLocationImpl.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.NamedLocationImpl

NamedLocationImpl
public class NamedLocationImpl implements NewNamedLocation(Code)
A location (as a LatLonPoint) with a name. Multiple constructors are available. Utility functions to find the distance from this location to another
See Also:   NewNamedLocation
See Also:   LatLonPoint



Constructor Summary
public  NamedLocationImpl()
    
public  NamedLocationImpl(String name)
     Creates a new NamedLocationImpl instance. This constructor will try to parse the String to find a name, lat, and long (float degrees).
public  NamedLocationImpl(LatLonPoint pos)
     Creates a new NamedLocationImpl instance.
public  NamedLocationImpl(String name, LatLonPoint pos)
     Creates a new NamedLocationImpl instance.
public  NamedLocationImpl(String name, float lat, float lon)
     Creates a new NamedLocationImpl instance.
public  NamedLocationImpl(String name, float lat, float lon, boolean isRadian)
     Creates a new NamedLocationImpl instance.
public  NamedLocationImpl(NamedLocation pt)
     Creates a new NamedLocationImpl instance.
public  NamedLocationImpl(String name, double lat, double lon)
     Creates a new NamedLocationImpl instance.

Method Summary
public  doubledistanceFrom(LatLonPoint other)
    
public  doubledistanceFrom(NamedLocation other)
    
public  floatdistanceFrom(double lat, double lon)
    
public  floatdistanceFrom(float lat, float lon)
    
public  booleanequals(Object obj)
     2 NamedLocationImpls are equals if they have the same name The position is ignored for this purpose.
public  StringgetName()
    
public  LatLonPointgetPosition()
    
public  voidsetName(String name)
    
public  voidsetPosition(LatLonPoint pos)
    
public  StringtoString()
    


Constructor Detail
NamedLocationImpl
public NamedLocationImpl()(Code)



NamedLocationImpl
public NamedLocationImpl(String name)(Code)
Creates a new NamedLocationImpl instance. This constructor will try to parse the String to find a name, lat, and long (float degrees). If it cant, it treats the String as a Name.
The 3 fields are expected to be separated with a vertical bar (|).
If there are errors parsing the lat & long, the default is 0.0 for each.
Parameters:
  name - a String location name or composite location, lat, long



NamedLocationImpl
public NamedLocationImpl(LatLonPoint pos)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  pos - a LatLonPoint position



NamedLocationImpl
public NamedLocationImpl(String name, LatLonPoint pos)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  name - a String name
Parameters:
  pos - a LatLonPoint



NamedLocationImpl
public NamedLocationImpl(String name, float lat, float lon)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  name - a String name
Parameters:
  lat - a float latitude in degrees
Parameters:
  lon - a float longitude in degrees



NamedLocationImpl
public NamedLocationImpl(String name, float lat, float lon, boolean isRadian)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  name - a String location name
Parameters:
  lat - a float latitude in radians
Parameters:
  lon - a float longitdue in radians
Parameters:
  isRadian - a boolean that should be true and is always ignored



NamedLocationImpl
public NamedLocationImpl(NamedLocation pt)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  pt - a NamedLocation to copy



NamedLocationImpl
public NamedLocationImpl(String name, double lat, double lon)(Code)
Creates a new NamedLocationImpl instance.
Parameters:
  name - a String name
Parameters:
  lat - a double latitude in degrees
Parameters:
  lon - a double longitude in degrees




Method Detail
distanceFrom
public double distanceFrom(LatLonPoint other)(Code)
Get the distance in kilometers from this point to the given point
Parameters:
  other - a LatLonPoint to find the distance to a double distance in kilometers



distanceFrom
public double distanceFrom(NamedLocation other)(Code)
Get the distance in kilometers from this point to the given point
Parameters:
  other - a NamedLocation value a double distance in kilometers



distanceFrom
public float distanceFrom(double lat, double lon)(Code)
Get the distance in kilometers from this point to the given point
Parameters:
  lat - a double latitude in degrees
Parameters:
  lon - a double longitude in degrees a float distance in kilometers



distanceFrom
public float distanceFrom(float lat, float lon)(Code)
Get the distance in kilometers from this point to the given point
Parameters:
  lat - a float latitude in degrees
Parameters:
  lon - a float longitude in degrees a float distance in kilometers



equals
public boolean equals(Object obj)(Code)
2 NamedLocationImpls are equals if they have the same name The position is ignored for this purpose.
Parameters:
  obj - an Object to compare a boolean



getName
public String getName()(Code)
Get the name of this location, possibly null a String location name, possibly null



getPosition
public LatLonPoint getPosition()(Code)
Get the position of this location a LatLonPoint



setName
public void setName(String name)(Code)
Set the name of this location, overriding any previous name
Parameters:
  name - a String location name



setPosition
public void setPosition(LatLonPoint pos)(Code)
Set the position of this location
Parameters:
  pos - a LatLonPoint



toString
public String toString()(Code)



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.