Java Doc for ClassificationFunction.java in  » GIS » GeoTools-2.4.1 » org » geotools » filter » function » 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 » GIS » GeoTools 2.4.1 » org.geotools.filter.function 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.filter.DefaultExpression
   org.geotools.filter.function.ClassificationFunction

All known Subclasses:   org.geotools.filter.function.QuantileFunction,  org.geotools.filter.function.StandardDeviationFunction,  org.geotools.filter.function.UniqueIntervalFunction,  org.geotools.filter.function.EqualIntervalFunction,
ClassificationFunction
abstract public class ClassificationFunction extends DefaultExpression implements FunctionExpression(Code)
Parent for classifiers which break a feature collection into the specified number of classes.
author:
   James Macgill
author:
   Cory Horner, Refractions Research Inc.


Field Summary
final protected static  java.util.logging.LoggerLOGGER
    
 Stringname
    
 Listparams
    
 ProgressListenerprogress
    

Constructor Summary
public  ClassificationFunction()
     Creates a new instance of ClassificationFunction.

Method Summary
public  Objectaccept(ExpressionVisitor visitor, Object extraData)
    
protected  intdecimalPlaces(double slotWidth)
     Determines the number of decimal places to truncate the interval at.
public  Objectevaluate(Feature feature)
    
abstract public  Objectevaluate(Object arg)
    
protected  doublefixRound(double value, int decimalPlaces, boolean up)
     Corrects a round off operation by incrementing or decrementing the decimal place (preferably the smallest one).
abstract public  intgetArgCount()
    
public  Expression[]getArgs()
    
public  intgetClasses()
    
public  ExpressiongetExpression()
    
public  MapgetImplementationHints()
     Returns the implementation hints.
public  StringgetName()
     Gets the name of this function.
public  intgetNumberOfClasses()
    
public  ListgetParameters()
     Returns the function parameters (the contents are Expressions, usually attribute expression and literal expression).
public  ProgressListenergetProgressListener()
    
protected  doubleround(double value, int decimalPlaces)
     Truncates a double to a certain number of decimals places.
public  voidsetArgs(Expression[] args)
    
public  voidsetClasses(int classes)
    
public  voidsetExpression(Expression e)
    
public  voidsetName(String name)
     Sets the name of the function.
public  voidsetNumberOfClasses(int classes)
    
public  voidsetParameters(List params)
     Sets the function parameters.
public  voidsetProgressListener(ProgressListener progress)
    

Field Detail
LOGGER
final protected static java.util.logging.Logger LOGGER(Code)



name
String name(Code)
function name *



params
List params(Code)
function params *



progress
ProgressListener progress(Code)




Constructor Detail
ClassificationFunction
public ClassificationFunction()(Code)
Creates a new instance of ClassificationFunction. Subclasses should call setName




Method Detail
accept
public Object accept(ExpressionVisitor visitor, Object extraData)(Code)

See Also:   org.opengis.filter.expression.Expression.accept(ExpressionVisitorObject)



decimalPlaces
protected int decimalPlaces(double slotWidth)(Code)
Determines the number of decimal places to truncate the interval at.
Parameters:
  slotWidth -



evaluate
public Object evaluate(Feature feature)(Code)



evaluate
abstract public Object evaluate(Object arg)(Code)



fixRound
protected double fixRound(double value, int decimalPlaces, boolean up)(Code)
Corrects a round off operation by incrementing or decrementing the decimal place (preferably the smallest one). This should usually be used to adjust the bounds to include a value. Example: 0.31-->0.44 where 0.44 is the maximum value and end of the range. We could just make the , round(0.31, 1)=0.3; round(0.44 max value = 0.49
Parameters:
  value -
Parameters:
  decimalPlaces -
Parameters:
  up -



getArgCount
abstract public int getArgCount()(Code)



getArgs
public Expression[] getArgs()(Code)



getClasses
public int getClasses()(Code)



getExpression
public Expression getExpression()(Code)



getImplementationHints
public Map getImplementationHints()(Code)
Returns the implementation hints. The default implementation returns an empty map.



getName
public String getName()(Code)
Gets the name of this function. the name of the function.



getNumberOfClasses
public int getNumberOfClasses()(Code)



getParameters
public List getParameters()(Code)
Returns the function parameters (the contents are Expressions, usually attribute expression and literal expression).



getProgressListener
public ProgressListener getProgressListener()(Code)



round
protected double round(double value, int decimalPlaces)(Code)
Truncates a double to a certain number of decimals places. Note: truncation at zero decimal places will still show up as x.0, since we're using the double type.
Parameters:
  value - number to round-off
Parameters:
  decimalPlaces - number of decimal places to leave the rounded value



setArgs
public void setArgs(Expression[] args)(Code)



setClasses
public void setClasses(int classes)(Code)



setExpression
public void setExpression(Expression e)(Code)



setName
public void setName(String name)(Code)
Sets the name of the function.



setNumberOfClasses
public void setNumberOfClasses(int classes)(Code)



setParameters
public void setParameters(List params)(Code)
Sets the function parameters.



setProgressListener
public void setProgressListener(ProgressListener progress)(Code)



Fields inherited from org.geotools.filter.DefaultExpression
protected short expressionType(Code)(Java Doc)
protected boolean permissiveConstruction(Code)(Java Doc)

Methods inherited from org.geotools.filter.DefaultExpression
final public void accept(FilterVisitor visitor)(Code)(Java Doc)
public Object evaluate(Feature feature)(Code)(Java Doc)
public Object evaluate(Object object)(Code)(Java Doc)
public short getType()(Code)(Java Doc)
final public Object getValue(Feature feature)(Code)(Java Doc)
protected static boolean isAttributeExpression(short expressionType)(Code)(Java Doc)
protected static boolean isExpression(short expressionType)(Code)(Java Doc)
public static boolean isFunctionExpression(short expressionType)(Code)(Java Doc)
protected static boolean isGeometryExpression(short expressionType)(Code)(Java Doc)
protected static boolean isLiteralExpression(short expressionType)(Code)(Java Doc)
protected static boolean isMathExpression(short expressionType)(Code)(Java Doc)
protected static boolean isMathExpression(org.opengis.filter.expression.Expression expression)(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.