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


org.geotools.referencing.AbstractIdentifiedObject
   org.geotools.parameter.AbstractParameterDescriptor
      org.geotools.parameter.DefaultParameterDescriptorGroup
         org.geotools.parameter.MatrixParameterDescriptors

MatrixParameterDescriptors
public class MatrixParameterDescriptors extends DefaultParameterDescriptorGroup (Code)
A parameter group for elements. The amount of is extensible, i.e. it can grown or shrink according the value of "num_row" and "num_col" parameters. The parameters format may vary according the information provided to the constructor, but it is typically as below:
 num_row
 num_col
 elt_0_0
 elt_0_1
 ...
 elt_0_<num_col-1>
 elt_1_0
 elt_1_1
 ...
 elt_<num_row-1>_<num_col-1>
 

since:
   2.1
version:
   $Id: MatrixParameterDescriptors.java 20874 2006-08-07 10:00:01Z jgarnett $
author:
   Martin Desruisseaux
See Also:   MatrixParameters


Field Summary
final public static  intDEFAULT_MATRIX_SIZE
     The default matrix size for the .
final protected  ParameterDescriptornumCol
     The descriptor for the "num_col" parameter.
final protected  ParameterDescriptornumRow
     The descriptor for the "num_row" parameter.
final protected  Stringprefix
     The prefix to insert in front of parameter name for each matrix elements.
final protected  charseparator
     The separator between the row and the column index in parameter names.

Constructor Summary
public  MatrixParameterDescriptors(Map properties)
     Constructs a parameter group with default name format matching Well Known Text usages.
Parameters:
  properties - Set of properties.
public  MatrixParameterDescriptors(Map properties, ParameterDescriptor[] parameters, String prefix, char separator)
     Constructs a parameter group.

Method Summary
static  voidcheckIndice(String name, int index, int upper)
     Verify that the specified index is included in the expected range of values.
Parameters:
  name - The parameter name.
public  GeneralParameterValuecreateValue()
     Creates a new instance of with elements initialized to the 1 on the diagonal, and 0 everywere else.
final public  GeneralParameterDescriptordescriptor(String name)
     Returns the parameter in this group for the specified name.
final  GeneralParameterDescriptordescriptor(String name, int numRow, int numCol)
     Implementation of the MatrixParameterDescriptors.descriptor(String) method.
Parameters:
  name - The case insensitive name of the parameter to search for.
Parameters:
  numRow - The maximum number of rows.
Parameters:
  numCol - The maximum number of columns.
final public  ParameterDescriptordescriptor(int row, int column)
     Returns the parameter in this group for a matrix element at the specified index.
final  ParameterDescriptordescriptor(int row, int column, int numRow, int numCol)
     Implementation of the MatrixParameterDescriptors.descriptor(int,int) method.
Parameters:
  row - The row indice.
Parameters:
  column - The column indice
Parameters:
  numRow - The maximum number of rows.
Parameters:
  numCol - The maximum number of columns.
final public  Listdescriptors()
     Returns the parameters in this group.
final  Listdescriptors(int numRow, int numCol)
     Implementation of the MatrixParameterDescriptors.descriptors() method. Returns the parameters in this group for a matrix of the specified size.
Parameters:
  numRow - The number of rows.
Parameters:
  numCol - The number of columns.
public  booleanequals(AbstractIdentifiedObject object, boolean compareMetadata)
     Compares the specified object with this parameter group for equality.
Parameters:
  object - The object to compare to this .
Parameters:
  compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
public  MatrixgetMatrix(ParameterValueGroup parameters)
     Constructs a matrix from a group of parameters.
Parameters:
  parameters - The group of parameters.
public  inthashCode()
     Returns a hash value for this parameter. The hash code value.

Field Detail
DEFAULT_MATRIX_SIZE
final public static int DEFAULT_MATRIX_SIZE(Code)
The default matrix size for the .



numCol
final protected ParameterDescriptor numCol(Code)
The descriptor for the "num_col" parameter.



numRow
final protected ParameterDescriptor numRow(Code)
The descriptor for the "num_row" parameter.



prefix
final protected String prefix(Code)
The prefix to insert in front of parameter name for each matrix elements.



separator
final protected char separator(Code)
The separator between the row and the column index in parameter names.




Constructor Detail
MatrixParameterDescriptors
public MatrixParameterDescriptors(Map properties)(Code)
Constructs a parameter group with default name format matching Well Known Text usages.
Parameters:
  properties - Set of properties. Should contains at least "name".



MatrixParameterDescriptors
public MatrixParameterDescriptors(Map properties, ParameterDescriptor[] parameters, String prefix, char separator)(Code)
Constructs a parameter group. The properties map is given unchanged to the . The parameters array should contains parameters other than matrix elements. The first parameter is assumed to be the number of rows, and the second parameter the number of columns. All extra parameters are ignored.
Parameters:
  properties - Set of properties. Should contains at least "name".
Parameters:
  parameters - The "num_row" and "num_col" parameters.
Parameters:
  prefix - The prefix to insert in front of parameter name for each matrix elements.
Parameters:
  separator - The separator between the row and the column index in parameter names.




Method Detail
checkIndice
static void checkIndice(String name, int index, int upper) throws IndexOutOfBoundsException(Code)
Verify that the specified index is included in the expected range of values.
Parameters:
  name - The parameter name. To be used for formatting error message.
Parameters:
  index - The indice to check.
Parameters:
  upper - The upper range value, exclusive.
throws:
  IndexOutOfBoundsException - if index is outside the expected range.



createValue
public GeneralParameterValue createValue()(Code)
Creates a new instance of with elements initialized to the 1 on the diagonal, and 0 everywere else. The returned parameter group is extensible, i.e. the number of elements will depends upon the value associated to the MatrixParameterDescriptors.numRow and MatrixParameterDescriptors.numCol numCol parameters.



descriptor
final public GeneralParameterDescriptor descriptor(String name) throws ParameterNotFoundException(Code)
Returns the parameter in this group for the specified name. The name can be a matrix element if it uses the following syntax: "elt_row_col" where "elt_" is the for all matrix elements, and row and col are row and column indices respectively. For example "elt_2_1" is the element name for the value at line 2 and row 1. The row and column index are 0 based.
Parameters:
  name - The case insensitive name of the parameter to search for. The parameter for the given name.
throws:
  ParameterNotFoundException - if there is no parameter for the given name.



descriptor
final GeneralParameterDescriptor descriptor(String name, int numRow, int numCol) throws ParameterNotFoundException(Code)
Implementation of the MatrixParameterDescriptors.descriptor(String) method.
Parameters:
  name - The case insensitive name of the parameter to search for.
Parameters:
  numRow - The maximum number of rows.
Parameters:
  numCol - The maximum number of columns. The parameter for the given name.
throws:
  ParameterNotFoundException - if there is no parameter for the given name.



descriptor
final public ParameterDescriptor descriptor(int row, int column) throws IndexOutOfBoundsException(Code)
Returns the parameter in this group for a matrix element at the specified index. row and column indices are 0 based. Indices must be lower that the given to the MatrixParameterDescriptors.numRow and MatrixParameterDescriptors.numCol parameters.
Parameters:
  row - The row indice.
Parameters:
  column - The column indice The parameter descriptor for the specified matrix element.
throws:
  IndexOutOfBoundsException - if row or column is out of bounds.



descriptor
final ParameterDescriptor descriptor(int row, int column, int numRow, int numCol) throws IndexOutOfBoundsException(Code)
Implementation of the MatrixParameterDescriptors.descriptor(int,int) method.
Parameters:
  row - The row indice.
Parameters:
  column - The column indice
Parameters:
  numRow - The maximum number of rows.
Parameters:
  numCol - The maximum number of columns. The parameter descriptor for the specified matrix element.
throws:
  IndexOutOfBoundsException - if row or column is out of bounds.



descriptors
final public List descriptors()(Code)
Returns the parameters in this group. The number or elements is inferred from the given to the MatrixParameterDescriptors.numRow and MatrixParameterDescriptors.numCol parameters. The matrix parameters, including all elements.



descriptors
final List descriptors(int numRow, int numCol)(Code)
Implementation of the MatrixParameterDescriptors.descriptors() method. Returns the parameters in this group for a matrix of the specified size.
Parameters:
  numRow - The number of rows.
Parameters:
  numCol - The number of columns. The matrix parameters, including all elements.



equals
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)
Compares the specified object with this parameter group for equality.
Parameters:
  object - The object to compare to this .
Parameters:
  compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal.



getMatrix
public Matrix getMatrix(ParameterValueGroup parameters) throws InvalidParameterNameException(Code)
Constructs a matrix from a group of parameters.
Parameters:
  parameters - The group of parameters. A matrix constructed from the specified group of parameters.
throws:
  InvalidParameterNameException - if a parameter name was not recognized.



hashCode
public int hashCode()(Code)
Returns a hash value for this parameter. The hash code value. This value doesn't need to be the samein past or future versions of this class.



Methods inherited from org.geotools.parameter.DefaultParameterDescriptorGroup
public GeneralParameterValue createValue()(Code)(Java Doc)
public GeneralParameterDescriptor descriptor(String name) throws ParameterNotFoundException(Code)(Java Doc)
public List descriptors()(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
public int getMaximumOccurs()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)

Methods inherited from org.geotools.parameter.AbstractParameterDescriptor
abstract public GeneralParameterValue createValue()(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
protected String formatWKT(Formatter formatter)(Code)(Java Doc)
abstract public int getMaximumOccurs()(Code)(Java Doc)
public int getMinimumOccurs()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)

Fields inherited from org.geotools.referencing.AbstractIdentifiedObject
final public static GenericName[] EMPTY_ALIAS_ARRAY(Code)(Java Doc)
final public static ReferenceIdentifier[] EMPTY_IDENTIFIER_ARRAY(Code)(Java Doc)
final public static Comparator IDENTIFIER_COMPARATOR(Code)(Java Doc)
final public static Comparator NAME_COMPARATOR(Code)(Java Doc)
final public static Comparator REMARKS_COMPARATOR(Code)(Java Doc)

Methods inherited from org.geotools.referencing.AbstractIdentifiedObject
protected static Set asSet(Object[] array)(Code)(Java Doc)
protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
final public boolean equals(Object object)(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc)
public Collection getAlias()(Code)(Java Doc)
public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc)
public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public Set getIdentifiers()(Code)(Java Doc)
public ReferenceIdentifier getName()(Code)(Java Doc)
public String getName(Citation authority)(Code)(Java Doc)
public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public static Map getProperties(IdentifiedObject info)(Code)(Java Doc)
public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public InternationalString getRemarks()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean nameMatches(String name)(Code)(Java Doc)
public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc)
public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(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.