|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractOperation
@Immutable public abstract class AbstractOperation
Provides descriptive information for a Coverage processing operation. The descriptive information includes such information as the name of the operation, operation description, and number of source grid coverages required for the operation.
This base class implements all methods from the Operation interface. Those methods get
the information they need from a ParameterDescriptorGroup object which must be supplied
at construction time. Every value class that
are assignable to Coverage are considered as
a source and will be included in the count returned by getNumSources().
Other parameters are "ordinary" and do not get any special processing.
This base class declares an abstract method, doOperation, which must be
implemented by subclasses. This base class makes no assumption about the kind of sources and
the kind of result that this operation works on, except that they must be at least of the
Coverage type. Subclasses will typically restrict the kind of sources to a subclasses
of Coverage, or restrict the number of spatio-temporal dimensions that the sources can
have.
| coverage/geotk-coverage (download) | View source code for this class |
| Field Summary | |
|---|---|
protected ParameterDescriptorGroup |
descriptor
The parameters descriptor. |
| Constructor Summary | |
|---|---|
protected |
AbstractOperation(ParameterDescriptorGroup descriptor)
Constructs an operation. |
| Method Summary | |
|---|---|
protected abstract Coverage |
doOperation(ParameterValueGroup parameters,
Hints hints)
Applies a process operation to a coverage. |
boolean |
equals(Object object)
Compares the specified object with this operation for equality. |
String |
getDescription()
Deprecated. Return type need to be changed, maybe to InternationalString. |
String |
getDocURL()
Deprecated. To be replaced by a method returning a Citation. |
String |
getName()
Returns the name of the processing operation. |
int |
getNumSources()
Returns the number of source coverages required for the operation. |
ParameterValueGroup |
getParameters()
Returns an initially empty set of parameters. |
String |
getVendor()
Deprecated. To be replaced by getName().getAuthority(). |
String |
getVersion()
Deprecated. Replacement to be determined. |
int |
hashCode()
Returns a hash value for this operation. |
String |
toString()
Returns a string representation of this operation. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final ParameterDescriptorGroup descriptor
| Constructor Detail |
|---|
protected AbstractOperation(ParameterDescriptorGroup descriptor)
descriptor - The parameters descriptor.| Method Detail |
|---|
public String getName()
getName in interface OperationString to Identifier.@Deprecated public String getDescription()
InternationalString.
null. The default implementation returns the descriptor
remarks.
getDescription in interface Operation@Deprecated public String getDocURL()
Citation.
null.
getDocURL in interface Operation@Deprecated public String getVersion()
getVersion in interface Operation@Deprecated public String getVendor()
getName().getAuthority().
getVendor in interface Operationpublic int getNumSources()
getNumSources in interface Operationpublic ParameterValueGroup getParameters()
getParameters in interface Operation
protected abstract Coverage doOperation(ParameterValueGroup parameters,
Hints hints)
throws IllegalArgumentException,
CoverageProcessingException
DefaultCoverageProcessor.
parameters - List of name value pairs for the parameters required for the operation.hints - A set of rendering hints, or null if none. The DefaultCoverageProcessor
may provides hints for the following keys: Hints.COORDINATE_OPERATION_FACTORY
and Hints.JAI_INSTANCE.
IllegalArgumentException - If a parameter has an illegal value.
CoverageProcessingException - if the operation can't be applied.public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with this operation.
true if the given object is equals to this operation.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||