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


java.lang.Object
   org.geotools.coverage.processing.AbstractProcessor

All known Subclasses:   org.geotools.coverage.processing.DefaultProcessor,  org.geotools.coverage.processing.BufferedProcessor,
AbstractProcessor
abstract public class AbstractProcessor (Code)
Base class for processor implementations.
since:
   2.2
version:
   $Id: AbstractProcessor.java 27862 2007-11-12 19:51:19Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final public static  LoggerLOGGER
     The logger for coverage processing operations.
final public static  LevelOPERATION
     The logging level for reporting coverage operations.

Constructor Summary
public  AbstractProcessor()
     Constructs a coverage processor.

Method Summary
abstract public  CoveragedoOperation(ParameterValueGroup parameters)
     Applies an operation.
Parameters:
  parameters - Parameters required for the operation.
static  voidensureNonNull(String name, Object object)
     Makes sure that an argument is non-null.
public static synchronized  AbstractProcessorgetInstance()
     Returns a default processor instance.
public  LocalegetLocale()
     The locale for logging message or reporting errors.
abstract public  OperationgetOperation(String name)
     Returns the operation for the specified name.
Parameters:
  name - Name of the operation.
static  StringgetOperationName(ParameterValueGroup parameters)
     Returns the operation name for the specified parameters.
abstract public  CollectiongetOperations()
     Retrieves grid processing operations information.
static  CoveragegetPrimarySource(ParameterValueGroup parameters)
     Returns the primary source coverage from the specified parameters, or null if none.
public  voidlistOperations(Writer out)
     Lists a summary of all operations to the specified stream.
final  voidlog(Coverage source, Coverage result, String operationName, boolean fromCache)
     Logs a message for an operation.
public static  voidmain(String[] args)
     Dumps to the a list of operations for the default processor.
public  voidprintOperations(Writer out, String[] names)
     Prints a description of operations to the specified stream.
 voidsetAsDefault()
     Notifies this processor that it is going to be used as the application-wide default processor.

Field Detail
LOGGER
final public static Logger LOGGER(Code)
The logger for coverage processing operations.



OPERATION
final public static Level OPERATION(Code)
The logging level for reporting coverage operations. This level is equals or slightly lower than Level.INFO .




Constructor Detail
AbstractProcessor
public AbstractProcessor()(Code)
Constructs a coverage processor.




Method Detail
doOperation
abstract public Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException(Code)
Applies an operation.
Parameters:
  parameters - Parameters required for the operation. The result as a coverage.
throws:
  OperationNotFoundException - if there is no operation for the parameter group name.



ensureNonNull
static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)
Makes sure that an argument is non-null.
Parameters:
  name - Argument name.
Parameters:
  object - User argument.
throws:
  IllegalArgumentException - if object is null.



getInstance
public static synchronized AbstractProcessor getInstance()(Code)
Returns a default processor instance.

Note: this is a temporary method, until we have GeoAPI interface for coverage processor and a factory finder for their implementations.




getLocale
public Locale getLocale()(Code)
The locale for logging message or reporting errors. The default implementations returns the . Subclasses can override this method if a different locale is wanted.



getOperation
abstract public Operation getOperation(String name) throws OperationNotFoundException(Code)
Returns the operation for the specified name.
Parameters:
  name - Name of the operation. The operation for the given name.
throws:
  OperationNotFoundException - if there is no operation for the specified name.



getOperationName
static String getOperationName(ParameterValueGroup parameters)(Code)
Returns the operation name for the specified parameters.



getOperations
abstract public Collection getOperations()(Code)
Retrieves grid processing operations information. Each operation information contains the name of the operation as well as a list of its parameters.



getPrimarySource
static Coverage getPrimarySource(ParameterValueGroup parameters)(Code)
Returns the primary source coverage from the specified parameters, or null if none.



listOperations
public void listOperations(Writer out) throws IOException(Code)
Lists a summary of all operations to the specified stream.
Parameters:
  out - The destination stream.
throws:
  IOException - if an error occured will writing to the stream.



log
final void log(Coverage source, Coverage result, String operationName, boolean fromCache)(Code)
Logs a message for an operation. The message will be logged only if the source grid coverage is different from the result (i.e. if the operation did some work).
Parameters:
  source - The source grid coverage.
Parameters:
  result - The resulting grid coverage.
Parameters:
  operationName - the operation name.
Parameters:
  fromCache - true if the result has been fetch from the cache.



main
public static void main(String[] args)(Code)
Dumps to the a list of operations for the default processor. If no argument is provided, then only a summary of operations is printed. If arguments are provided, then the operation parameters are printed for all operation names given in arguments. This method can been invoked from the command line. For example:
 java org.geotools.coverage.processing.DefaultProcessor Interpolate
 
Note for Windows users: If the output contains strange symbols, try to supply an " -encoding " argument. Example:
 java org.geotools.coverage.processing.DefaultProcessor -encoding Cp850
 
The codepage number (850 in the previous example) can be fetch from the DOS command line by entering the " chcp " command with no arguments.



printOperations
public void printOperations(Writer out, String[] names) throws OperationNotFoundException, IOException(Code)
Prints a description of operations to the specified stream. If the names array is non-null, then only the specified operations are printed. Otherwise, all operations are printed. The description details include operation names and lists of parameters.
Parameters:
  out - The destination stream.
Parameters:
  names - The operation to print, or an empty array for none, or null for all.
throws:
  IOException - if an error occured will writing to the stream.
throws:
  OperationNotFoundException - if an operation named in names was not found.



setAsDefault
void setAsDefault()(Code)
Notifies this processor that it is going to be used as the application-wide default processor.



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.