Class StyleVisitorCoverageProcessingNodeAdapter
Object
StyleVisitorAdapter
StyleVisitorCoverageProcessingNodeAdapter
- All Implemented Interfaces:
StyleVisitor,CoverageProcessingNode
- Direct Known Subclasses:
SubchainStyleVisitorCoverageProcessingAdapter
public abstract class StyleVisitorCoverageProcessingNodeAdapter
extends StyleVisitorAdapter
implements StyleVisitor, CoverageProcessingNode
This class implements an adapter to allow a
CoverageProcessingNode to feed itself by visiting an SLD
Style .
This class can be used to tie together CoverageProcessingNode s built from a chains as specified by the
RasterSymbolizer SLd element.
- Author:
- Simone Giannecchini, GeoSolutions
-
Constructor Summary
ConstructorsConstructorDescriptionStyleVisitorCoverageProcessingNodeAdapter(int maxSources, InternationalString name, InternationalString description) Default constructor that gives users the possibilityStyleVisitorCoverageProcessingNodeAdapter(int maxSources, Hints hints, InternationalString name, InternationalString description) Default constructor that gives users the possibilityStyleVisitorCoverageProcessingNodeAdapter(InternationalString name, InternationalString description) Default constructor forStyleVisitorCoverageProcessingNodeAdapter -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a sinkCoverageProcessingNodeto the list of sinks for thisCoverageProcessingNode.booleanaddSource(CoverageProcessingNode source) Adds a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.voiddispose(boolean force) Disposes all the resources used by thisCoverageProcessingNode.protected abstract GridCoverageexecute()protected CoverageProcessingNodeAllows subclasses to access theCoverageProcessingNodewe are adapting.TheGridCoverageFactorywe will internally use for build intermediate and outputGridCoverage2D.Retrieves the description for thisCoverageProcessingNodegetHints()Getter forHints.getName()Retrieves the name for thisCoverageProcessingNodeintReturns the number of sinks for thisCoverageProcessingNode.intReturns the number of sources for thisCoverageProcessingNode.Forces this node to create the output coverage for the operation represented by this node.getSink(int index) getSinks()Retrieves theListof sinks for thisCoverageProcessingNode.getSource(int index) Retrieves theListof source for thisCoverageProcessingNode.removeSink(int index) Removes a sinkCoverageProcessingNodefrom the list of sinks for thisCoverageProcessingNode.booleanRemoves a sinkCoverageProcessingNodefrom the list of sinks for thisCoverageProcessingNode.removeSource(int index) Removes a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.booleanremoveSource(CoverageProcessingNode source) Removes a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.toString()Provides a descriptive description for thisCoverageProcessingNode.Methods inherited from class StyleVisitorAdapter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
StyleVisitorCoverageProcessingNodeAdapter
- Parameters:
adaptee-
-
StyleVisitorCoverageProcessingNodeAdapter
public StyleVisitorCoverageProcessingNodeAdapter(InternationalString name, InternationalString description) Default constructor forStyleVisitorCoverageProcessingNodeAdapter -
StyleVisitorCoverageProcessingNodeAdapter
public StyleVisitorCoverageProcessingNodeAdapter(int maxSources, InternationalString name, InternationalString description) Default constructor that gives users the possibility- Parameters:
maxSources- maximum number of sources allowed for this node.
-
StyleVisitorCoverageProcessingNodeAdapter
public StyleVisitorCoverageProcessingNodeAdapter(int maxSources, Hints hints, InternationalString name, InternationalString description) Default constructor that gives users the possibility- Parameters:
maxSources- maximum number of sources allowed for this node.hints- instance ofHintsclass to control creation of internal factories. It can benull.
-
-
Method Details
-
getAdaptee
Allows subclasses to access theCoverageProcessingNodewe are adapting.- Returns:
- the adaptee
- UML property:
- name="adaptee"
-
execute
- See Also:
-
addSink
Description copied from interface:CoverageProcessingNodeAdds a sinkCoverageProcessingNodeto the list of sinks for thisCoverageProcessingNode.- Specified by:
addSinkin interfaceCoverageProcessingNode- Parameters:
sink- theCoverageProcessingNodeto add to theListof sinks for thisCoverageProcessingNode.
-
addSource
Description copied from interface:CoverageProcessingNodeAdds a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.- Specified by:
addSourcein interfaceCoverageProcessingNode- Parameters:
source- theCoverageProcessingNodeto add to theListof sources for thisCoverageProcessingNode.- Returns:
trueif everything goes fine,falseotherwise.
-
getOutput
Description copied from interface:CoverageProcessingNodeForces this node to create the output coverage for the operation represented by this node.- Specified by:
getOutputin interfaceCoverageProcessingNode- Returns:
- the
Coveragewhich represents the output for thisCoverageProcessingNode.
-
getSink
Description copied from interface:CoverageProcessingNode- Specified by:
getSinkin interfaceCoverageProcessingNode- Parameters:
index- is the zero-based index for the source we want to access.- Returns:
- the
CoverageProcessingNodewhich represents the source at indexindexfor thisCoverageProcessingNode.
-
getSinks
Description copied from interface:CoverageProcessingNodeRetrieves theListof sinks for thisCoverageProcessingNode. Each sink MUST be aCoverageProcessingNode.- Specified by:
getSinksin interfaceCoverageProcessingNode- Returns:
- a
ListofCoverageProcessingNodewhich represents the sinks for thisCoverageProcessingNode.
-
getSource
Description copied from interface:CoverageProcessingNode- Specified by:
getSourcein interfaceCoverageProcessingNode- Parameters:
index- is the zero-based index for the sink we want to get.- Returns:
- the
CoverageProcessingNodewhich represents the sink at indexindexfor thisCoverageProcessingNode.
-
getSources
Description copied from interface:CoverageProcessingNodeRetrieves theListof source for thisCoverageProcessingNode. Each source MUST be aCoverageProcessingNode.- Specified by:
getSourcesin interfaceCoverageProcessingNode- Returns:
- a
ListofCoverageProcessingNodewhich represents the sources for thisCoverageProcessingNode.
-
removeSink
Description copied from interface:CoverageProcessingNodeRemoves a sinkCoverageProcessingNodefrom the list of sinks for thisCoverageProcessingNode.- Specified by:
removeSinkin interfaceCoverageProcessingNode- Parameters:
sink- theCoverageProcessingNodeto remove from theListof sinks for thisCoverageProcessingNode.- Returns:
truein case we remove something,falseotherwise.
-
removeSink
Description copied from interface:CoverageProcessingNodeRemoves a sinkCoverageProcessingNodefrom the list of sinks for thisCoverageProcessingNode.- Specified by:
removeSinkin interfaceCoverageProcessingNode- Parameters:
index- the index at which we want to remove a sink from theListof sinks for thisCoverageProcessingNode.- Returns:
- the
CoverageProcessingNodewe actually remove from the sinks list.
-
removeSource
Description copied from interface:CoverageProcessingNodeRemoves a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.- Specified by:
removeSourcein interfaceCoverageProcessingNode- Parameters:
source- theCoverageProcessingNodeto remove from theListof sources for thisCoverageProcessingNode.- Returns:
truein case we remove something,falseotherwise.
-
removeSource
Description copied from interface:CoverageProcessingNodeRemoves a sourceCoverageProcessingNodeto the list of sources for thisCoverageProcessingNode.- Specified by:
removeSourcein interfaceCoverageProcessingNode- Parameters:
index- the index at which we want to remove a source from theListof sources for thisCoverageProcessingNode.- Returns:
- the
CoverageProcessingNodewe actually remove from the sources list.
-
dispose
public void dispose(boolean force) Description copied from interface:CoverageProcessingNodeDisposes all the resources used by thisCoverageProcessingNode.- Specified by:
disposein interfaceCoverageProcessingNode- Parameters:
force-trueto force disposal,falseto suggest disposal.
-
getHints
Description copied from interface:CoverageProcessingNodeGetter forHints.- Specified by:
getHintsin interfaceCoverageProcessingNode- Returns:
Hintsprovided at construction time to controlGridCoverageFactorycreation.
-
getNumberOfSinks
public int getNumberOfSinks()Description copied from interface:CoverageProcessingNodeReturns the number of sinks for thisCoverageProcessingNode.- Specified by:
getNumberOfSinksin interfaceCoverageProcessingNode- Returns:
- the number of sinks for this
CoverageProcessingNode.
-
getNumberOfSources
public int getNumberOfSources()Description copied from interface:CoverageProcessingNodeReturns the number of sources for thisCoverageProcessingNode.- Specified by:
getNumberOfSourcesin interfaceCoverageProcessingNode- Returns:
- the number of sources for this
CoverageProcessingNode.
-
getDescription
Description copied from interface:CoverageProcessingNodeRetrieves the description for thisCoverageProcessingNode- Specified by:
getDescriptionin interfaceCoverageProcessingNode- Returns:
- the description for this
CoverageProcessingNode
-
getName
Description copied from interface:CoverageProcessingNodeRetrieves the name for thisCoverageProcessingNode- Specified by:
getNamein interfaceCoverageProcessingNode- Returns:
- the name for this
CoverageProcessingNode
-
toString
Description copied from interface:CoverageProcessingNodeProvides a descriptive description for thisCoverageProcessingNode.- Specified by:
toStringin interfaceCoverageProcessingNode- Overrides:
toStringin classObject- Returns:
- a descriptive description for this
CoverageProcessingNode
-
getCoverageFactory
Description copied from interface:CoverageProcessingNodeTheGridCoverageFactorywe will internally use for build intermediate and outputGridCoverage2D.- Specified by:
getCoverageFactoryin interfaceCoverageProcessingNode- Returns:
- a
GridCoverageFactorywe will internally use for build intermediate and outputGridCoverage2D.
-