@Test public final void dispose() { Assert.assertNotNull(testedObject.getOutput()); testedObject.dispose(true); testedObject.dispose(true); try { testedObject.getOutput(); Assert.assertTrue(false); } catch (Exception e) { } }
public synchronized void dispose(boolean force) { if (disposed) return; if (output != null) output.dispose(force); final Iterator<CoverageProcessingNode>it = sources.iterator(); while (it.hasNext()) { final CoverageProcessingNode source = it.next(); source.removeSink(this); } sources.clear(); sinks.clear(); disposed = true; if(LOGGER.isLoggable(Level.FINE)) LOGGER.fine("disposed node \n" + this.toString()); }
BaseCoverageProcessingNode implements
		CoverageProcessingNode { public synchronized void dispose(boolean force) { if (disposed) return; if (output != null) output.dispose(force); final Iterator<CoverageProcessingNode>it = sources.iterator(); while (it.hasNext()) { final CoverageProcessingNode source = it.next(); source.removeSink(this); } sources.clear(); sinks.clear(); disposed = true; if(LOGGER.isLoggable(Level.FINE)) LOGGER.fine("disposed node \n" + this.toString()); } }
BaseCoverageProcessingNode implements
		CoverageProcessingNode { public synchronized void dispose(boolean force) { if (disposed) return; if (output != null) output.dispose(force); final Iterator<CoverageProcessingNode>it = sources.iterator(); while (it.hasNext()) { final CoverageProcessingNode source = it.next(); source.removeSink(this); } sources.clear(); sinks.clear(); disposed = true; if(LOGGER.isLoggable(Level.FINE)) LOGGER.fine("disposed node \n" + this.toString()); } BaseCoverageProcessingNode(InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, Hints hints,
			InternationalString name, InternationalString description); }
BaseCoverageProcessingNode implements
		CoverageProcessingNode { public synchronized void dispose(boolean force) { if (disposed) return; if (output != null) output.dispose(force); final Iterator<CoverageProcessingNode>it = sources.iterator(); while (it.hasNext()) { final CoverageProcessingNode source = it.next(); source.removeSink(this); } sources.clear(); sinks.clear(); disposed = true; if(LOGGER.isLoggable(Level.FINE)) LOGGER.fine("disposed node \n" + this.toString()); } BaseCoverageProcessingNode(InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, Hints hints,
			InternationalString name, InternationalString description); synchronized void dispose(boolean force); synchronized GridCoverage2D getOutput(); synchronized void addSink(CoverageProcessingNode sink); synchronized boolean addSource(CoverageProcessingNode source); synchronized CoverageProcessingNode getSink(int index); synchronized List<CoverageProcessingNode> getSinks(); synchronized CoverageProcessingNode getSource(int index); synchronized List<CoverageProcessingNode> getSources(); synchronized boolean removeSink(CoverageProcessingNode sink); synchronized CoverageProcessingNode removeSink(int index); synchronized boolean removeSource(CoverageProcessingNode source); synchronized Hints getHints(); int getMaximumNumberOfSources(); GridCoverageFactory getCoverageFactory(); synchronized int getNumberOfSinks(); synchronized int getNumberOfSources(); InternationalString getDescription(); InternationalString getName(); synchronized CoverageProcessingNode removeSource(int index); String toString(); synchronized boolean isDisposed(); synchronized boolean isExecuted(); }
BaseCoverageProcessingNode implements
		CoverageProcessingNode { public synchronized void dispose(boolean force) { if (disposed) return; if (output != null) output.dispose(force); final Iterator<CoverageProcessingNode>it = sources.iterator(); while (it.hasNext()) { final CoverageProcessingNode source = it.next(); source.removeSink(this); } sources.clear(); sinks.clear(); disposed = true; if(LOGGER.isLoggable(Level.FINE)) LOGGER.fine("disposed node \n" + this.toString()); } BaseCoverageProcessingNode(InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, InternationalString name,
			InternationalString description);  BaseCoverageProcessingNode(int maxSources, Hints hints,
			InternationalString name, InternationalString description); synchronized void dispose(boolean force); synchronized GridCoverage2D getOutput(); synchronized void addSink(CoverageProcessingNode sink); synchronized boolean addSource(CoverageProcessingNode source); synchronized CoverageProcessingNode getSink(int index); synchronized List<CoverageProcessingNode> getSinks(); synchronized CoverageProcessingNode getSource(int index); synchronized List<CoverageProcessingNode> getSources(); synchronized boolean removeSink(CoverageProcessingNode sink); synchronized CoverageProcessingNode removeSink(int index); synchronized boolean removeSource(CoverageProcessingNode source); synchronized Hints getHints(); int getMaximumNumberOfSources(); GridCoverageFactory getCoverageFactory(); synchronized int getNumberOfSinks(); synchronized int getNumberOfSources(); InternationalString getDescription(); InternationalString getName(); synchronized CoverageProcessingNode removeSource(int index); String toString(); synchronized boolean isDisposed(); synchronized boolean isExecuted();  }