Skip to content

Instantly share code, notes, and snippets.

@DrDaleks
Created November 25, 2012 17:29
Show Gist options
  • Save DrDaleks/4144453 to your computer and use it in GitHub Desktop.
Save DrDaleks/4144453 to your computer and use it in GitHub Desktop.
Block interface
package plugins.adufour.blocks.lang;
import plugins.adufour.blocks.util.VarList;
/**
* Interface indicating that implementing classes can be used in a block programming context
*
* @see WorkFlow
*
* @author Alexandre Dufour
*
*/
public interface Block extends Runnable
{
/**
* Fills the specified map with all the input variables of this block
*
* @param inputMap
*/
void declareInput(final VarList inputMap);
/**
* Fills the specified map with all the output variables of this block
*
* @param outputMap
*/
void declareOutput(final VarList outputMap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment