|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.wkt.Formattable org.geotools.parameter.AbstractParameter org.geotools.parameter.ParameterGroup org.geotools.parameter.MatrixParameters
The values for a group of matrix parameters. This value
group is extensible, i.e. the number of "elt_row_col"
parameters depends on the "num_row"
and "num_col"
parameter values.
Consequently, this parameter value group is also its own mutable
operation parameter group.
MatrixParameterDescriptors
,
Serialized FormField Summary |
Fields inherited from class org.geotools.parameter.ParameterGroup |
EMPTY |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
MatrixParameters(MatrixParameterDescriptors descriptor)
Constructs default values for the specified matrix parameter descriptors. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this parameter group. |
org.opengis.parameter.GeneralParameterValue |
createValue()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.parameter.GeneralParameterDescriptor |
descriptor(java.lang.String name)
Returns the parameter in this group for the specified name. |
java.util.List |
descriptors()
Returns the parameters descriptors in this group. |
boolean |
equals(java.lang.Object object)
Compare this object with the specified one for equality. |
java.util.Collection |
getAlias()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.parameter.GeneralParameterDescriptor |
getDescriptor()
Returns a description of this parameter value group. |
java.util.Set |
getIdentifiers()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.referencing.operation.Matrix |
getMatrix()
Create a matrix from this group of parameters. |
int |
getMaximumOccurs()
Forward the call to the matrix parameter descriptors specified at construction time. |
int |
getMinimumOccurs()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.metadata.Identifier |
getName()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.util.InternationalString |
getRemarks()
Forward the call to the matrix parameter descriptors specified at construction time. |
org.opengis.parameter.ParameterValue |
parameter(int row,
int column)
Returns the value in this group for a matrix element at the specified index. |
org.opengis.parameter.ParameterValue |
parameter(java.lang.String name)
Returns the value in this group for the specified name. |
void |
setMatrix(org.opengis.referencing.operation.Matrix matrix)
Set all parameter values to the element value in the specified matrix. |
java.util.List |
values()
Returns the parameters values in this group. |
protected void |
write(TableWriter table)
Write the content of this parameter to the specified table. |
Methods inherited from class org.geotools.parameter.ParameterGroup |
addGroup, groups, hashCode |
Methods inherited from class org.geotools.parameter.AbstractParameter |
formatWKT, toString |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
toWKT |
Constructor Detail |
public MatrixParameters(MatrixParameterDescriptors descriptor)
Method Detail |
public org.opengis.parameter.GeneralParameterDescriptor getDescriptor()
"num_row"
and "num_col"
parameter values.
getDescriptor
in interface org.opengis.parameter.GeneralParameterValue
getDescriptor
in class AbstractParameter
public org.opengis.metadata.Identifier getName()
getName
in interface org.opengis.referencing.IdentifiedObject
public java.util.Collection getAlias()
getAlias
in interface org.opengis.referencing.IdentifiedObject
public java.util.Set getIdentifiers()
getIdentifiers
in interface org.opengis.referencing.IdentifiedObject
public org.opengis.util.InternationalString getRemarks()
getRemarks
in interface org.opengis.referencing.IdentifiedObject
public int getMinimumOccurs()
getMinimumOccurs
in interface org.opengis.parameter.GeneralParameterDescriptor
public int getMaximumOccurs()
getMaximumOccurs
in interface org.opengis.parameter.GeneralParameterDescriptor
public org.opengis.parameter.GeneralParameterDescriptor descriptor(java.lang.String name) throws org.opengis.parameter.ParameterNotFoundException
"elt_row_col"
where
"elt_"
is the prefix 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.
descriptor
in interface org.opengis.parameter.ParameterDescriptorGroup
name
- The case insensitive name of the parameter to search for.
org.opengis.parameter.ParameterNotFoundException
- if there is no parameter for the given name.public org.opengis.parameter.ParameterValue parameter(java.lang.String name) throws org.opengis.parameter.ParameterNotFoundException
"elt_row_col"
where
"elt_"
is the prefix 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.
parameter
in interface org.opengis.parameter.ParameterValueGroup
parameter
in class ParameterGroup
name
- The case insensitive name of the parameter to search for.
org.opengis.parameter.ParameterNotFoundException
- if there is no parameter for the given name.public final org.opengis.parameter.ParameterValue parameter(int row, int column) throws java.lang.IndexOutOfBoundsException
row
- The row indice.column
- The column indice
java.lang.IndexOutOfBoundsException
- if or is out of bounds.public java.util.List descriptors()
"num_row"
and "num_col"
parameters.
descriptors
in interface org.opengis.parameter.ParameterDescriptorGroup
public java.util.List values()
"num_row"
and "num_col"
parameters.
The parameter array will contains only matrix elements which have been requested at
least once by one of methods. Never requested elements
are left to their default value and omitted from the returned array.
values
in interface org.opengis.parameter.ParameterValueGroup
values
in class ParameterGroup
public org.opengis.parameter.GeneralParameterValue createValue()
createValue
in interface org.opengis.parameter.GeneralParameterDescriptor
public org.opengis.referencing.operation.Matrix getMatrix()
public void setMatrix(org.opengis.referencing.operation.Matrix matrix)
values()
will returns only the elements
different from the default value.
matrix
- The matrix to copy in this group of parameters.public boolean equals(java.lang.Object object)
equals
in class ParameterGroup
object
- The object to compare to .
public java.lang.Object clone()
clone
in interface org.opengis.parameter.ParameterValueGroup
clone
in class ParameterGroup
protected void write(TableWriter table) throws java.io.IOException
write
in class AbstractParameter
table
- The table where to format the parameter value.
java.io.IOException
- if an error occurs during output operation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |