Java Doc for GLMLocationScoringFunction.java in  » Science » Cougaar12_4 » org » cougaar » glm » 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.glm.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.cougaar.planning.ldm.plan.ScoringFunction
      org.cougaar.glm.util.GLMLocationScoringFunction

GLMLocationScoringFunction
public class GLMLocationScoringFunction extends ScoringFunction.PreferredValueScoringFunction (Code)
Represents a location scoring function - score gets worse (higher or lower?) as straight-line distance from Lat, Lon increases. ?We'd like this to be part of the COUGAAR baseline...?


Field Summary
public static  doubleEPSILON
    
protected  GLMMeasuremeasureHelper
    

Constructor Summary
public  GLMLocationScoringFunction(GeolocLocation loc, Logger logger)
     Makes an AspectLocation, which I assume to have type AspectType.POD.

Method Summary
public  GeolocLocationgetLocation()
    
public  AspectScorePointgetMaxInRange(AspectValue lowerbound, AspectValue upperbound)
     This doesn't make any sense --- there is no way to represent this.
public  AspectScorePointgetMinInRange(AspectValue lowerbound, AspectValue upperbound)
     This doesn't make any sense --- there is no way to represent this.
public  doublegetScore(AspectValue av)
     The score is based on the distance between the two points in furlongs.
public  EnumerationgetValidRanges(AspectValue lowerbound, AspectValue upperbound)
     This doesn't make any sense --- there is no way to represent this.
public static  voidmain(String[] args)
    

Field Detail
EPSILON
public static double EPSILON(Code)



measureHelper
protected GLMMeasure measureHelper(Code)




Constructor Detail
GLMLocationScoringFunction
public GLMLocationScoringFunction(GeolocLocation loc, Logger logger)(Code)
Makes an AspectLocation, which I assume to have type AspectType.POD. (It's not clear anywhere that it should be anything else...)
See Also:   org.cougaar.planning.ldm.plan.AspectLocation
See Also:   org.cougaar.planning.ldm.plan.AspectType




Method Detail
getLocation
public GeolocLocation getLocation()(Code)



getMaxInRange
public AspectScorePoint getMaxInRange(AspectValue lowerbound, AspectValue upperbound)(Code)
This doesn't make any sense --- there is no way to represent this. Geolocs are two-tuples, and so don't map onto AspectValues, which are doubles.
Parameters:
  lowerbound - (ignored)
Parameters:
  upperbound - (ignored) null



getMinInRange
public AspectScorePoint getMinInRange(AspectValue lowerbound, AspectValue upperbound)(Code)
This doesn't make any sense --- there is no way to represent this. Geolocs are two-tuples, and so don't map onto AspectValues, which are doubles.
Parameters:
  lowerbound - (ignored)
Parameters:
  upperbound - (ignored) null



getScore
public double getScore(AspectValue av)(Code)
The score is based on the distance between the two points in furlongs. There are many better measures, but this works for now. WORST if bad data only, though we should probably throw an exception



getValidRanges
public Enumeration getValidRanges(AspectValue lowerbound, AspectValue upperbound)(Code)
This doesn't make any sense --- there is no way to represent this. Geolocs are two-tuples, and so don't map onto AspectValues, which are doubles.
Parameters:
  lowerbound - (ignored)
Parameters:
  upperbound - (ignored) Enumeration



main
public static void main(String[] args)(Code)



Fields inherited from org.cougaar.planning.ldm.plan.ScoringFunction
final public static double BEST(Code)(Java Doc)
final public static double HIGH_THRESHOLD(Code)(Java Doc)
final public static double LOW_THRESHOLD(Code)(Java Doc)
final public static double NOVALUE(Code)(Java Doc)
final public static double OK(Code)(Java Doc)
final public static double WORST(Code)(Java Doc)
protected int aspectType(Code)(Java Doc)

Methods inherited from org.cougaar.planning.ldm.plan.ScoringFunction
final public static void checkValidCurve(AspectScorePoint[] curve)(Code)(Java Doc)
abstract public Object clone()(Code)(Java Doc)
final public static ScoringFunction createConstantScoringFunction(double score, int type)(Code)(Java Doc)
final public static ScoringFunction createConstantScoringFunction(AspectScorePoint score)(Code)(Java Doc)
final public static ScoringFunction createEnumerated(AspectScorePoint[] points)(Code)(Java Doc)
final public static ScoringFunction createNearOrAbove(AspectValue value, double slope)(Code)(Java Doc)
final public static ScoringFunction createNearOrBelow(AspectValue value, double slope)(Code)(Java Doc)
final public static ScoringFunction createPiecewiseLinearScoringFunction(Enumeration points)(Code)(Java Doc)
final public static ScoringFunction createPiecewiseLinearScoringFunction(AspectScorePoint[] points)(Code)(Java Doc)
final public static ScoringFunction createPreferredAtValue(AspectValue value, double slope)(Code)(Java Doc)
final public static ScoringFunction createPreferredBetweenValues(AspectValue low, AspectValue high, double slope)(Code)(Java Doc)
final public static ScoringFunction createStepScoringFunction(AspectValue changepoint, double prescore, double postscore)(Code)(Java Doc)
final public static ScoringFunction createStrictlyAtValue(AspectValue value)(Code)(Java Doc)
final public static ScoringFunction createStrictlyBetweenValues(AspectValue low, AspectValue high)(Code)(Java Doc)
final public static ScoringFunction createStrictlyBetweenWithBestValues(AspectValue low, AspectValue best, AspectValue high)(Code)(Java Doc)
final public static ScoringFunction createVScoringFunction(AspectValue low, AspectValue best, AspectValue high)(Code)(Java Doc)
final public static ScoringFunction createVScoringFunction(AspectValue low, AspectValue best, AspectValue high, double ok)(Code)(Java Doc)
abstract public AspectScorePoint getBest()(Code)(Java Doc)
public AspectScoreRange getDefinedRange()(Code)(Java Doc)
abstract public AspectScorePoint getMaxInRange(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc)
abstract public AspectScorePoint getMinInRange(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc)
abstract public double getScore(AspectValue value)(Code)(Java Doc)
abstract public Enumeration getValidRanges(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
final protected static AspectScorePoint newASP(double value, double score, int type)(Code)(Java Doc)

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.