Changeset 7405


Ignore:
Timestamp:
12/13/10 12:45:39 (9 years ago)
Author:
aivar
Message:

More documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/deep-zoom-plugin/src/main/java/loci/multiinstanceplugin/AbstractPlugin.java

    r7366 r7405  
     1// 
     2// AbstractPlugin.java 
     3// 
     4 
    15/* 
    2  * To change this template, choose Tools | Templates 
    3  * and open the template in the editor. 
    4  */ 
     6Multiple instance chainable plugin framework. 
     7 
     8Copyright (c) 2010, UW-Madison LOCI 
     9All rights reserved. 
     10 
     11Redistribution and use in source and binary forms, with or without 
     12modification, are permitted provided that the following conditions are met: 
     13  * Redistributions of source code must retain the above copyright 
     14    notice, this list of conditions and the following disclaimer. 
     15  * Redistributions in binary form must reproduce the above copyright 
     16    notice, this list of conditions and the following disclaimer in the 
     17    documentation and/or other materials provided with the distribution. 
     18  * Neither the name of the UW-Madison LOCI nor the 
     19    names of its contributors may be used to endorse or promote products 
     20    derived from this software without specific prior written permission. 
     21 
     22THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
     23AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
     24IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
     25ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 
     26LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
     27CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
     28SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
     29INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
     30CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
     31ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
     32POSSIBILITY OF SUCH DAMAGE. 
     33*/ 
    534 
    635package loci.multiinstanceplugin; 
     
    1342 
    1443/** 
     44 * Abstract base class for plugin.  Starts up plugin processing, gets and 
     45 * puts images for the plugin. 
    1546 * 
    16  * @author aivar 
     47 * @author Aivar Grislis 
    1748 */ 
    1849public abstract class AbstractPlugin implements IPluginInternal, IPlugin { 
     
    2354     * Starts up processing.  Called from plugin launcher. 
    2455     * 
    25      * @param inputImages 
    26      * @param outputNames 
     56     * @param inputImages maps each input name to an image 
     57     * @param outputNames maps each output name to a unique input name for 
     58     *   the next chained plugin. 
    2759     */ 
    2860    public void start( 
     
    3264        m_outputNames = outputNames; 
    3365 
    34         process(); 
     66        try { 
     67            // do the actual work of the plugin 
     68            process(); 
     69        } 
     70        catch (Exception e) { 
     71            System.out.println("Plugin exception " + e.getMessage()); 
     72        } 
    3573 
    3674        m_inputImages = null; 
     
    77115     */ 
    78116    public void put(String outName, ImageWrapper image) { 
    79         //TODO how to check annotation? 
     117        //TODO how to check annotation?  No longer visible from here. 
    80118        /* 
    81119        if (isAnnotatedName(InputOutput.OUTPUT, outName)) { 
Note: See TracChangeset for help on using the changeset viewer.