|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractOperation
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.
Field Summary | |
---|---|
protected ParameterDescriptorGroup |
descriptor
The parameters descriptor. |
Constructor Summary | |
---|---|
AbstractOperation(ParameterDescriptorGroup descriptor)
Constructs an operation. |
Method Summary | |
---|---|
abstract Coverage |
doOperation(ParameterValueGroup parameters,
Hints hints)
Applies a process operation to a coverage. |
protected static void |
ensureNonNull(String name,
Object object)
Makes sure that an argument is non-null. |
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. |
protected static AbstractProcessor |
getProcessor(RenderingHints hints)
Returns the AbstractProcessor instance used for an operation. |
String |
getVendor()
Deprecated. 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 |
---|
public AbstractOperation(ParameterDescriptorGroup descriptor)
descriptor
- The parameters descriptor.Method Detail |
---|
public String getName()
getName
in interface Operation
@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 Operation
public int getNumSources()
getNumSources
in interface Operation
public ParameterValueGroup getParameters()
getParameters
in interface Operation
public abstract Coverage doOperation(ParameterValueGroup parameters, Hints hints) throws CoverageProcessingException
DefaultProcessor
.
parameters
- List of name value pairs for the parameters required for the operation.hints
- A set of rendering hints, or null
if none. The DefaultProcessor
may provides hints for the following keys: Hints.COORDINATE_OPERATION_FACTORY
and Hints.JAI_INSTANCE
.
CoverageProcessingException
- if the operation can't be applied.protected static AbstractProcessor getProcessor(RenderingHints hints)
AbstractProcessor
instance used for an operation. The instance is fetch
from the rendering hints given to the doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.factory.Hints)
method. If no processor is
specified, then a default one is returned.
hints
- The rendering hints, or null
if none.
AbstractProcessor
instance in use (never null
).protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException
name
- Argument name.object
- User argument.
IllegalArgumentException
- if object
is null.public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
object
- 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 |