de.ukn.hci.squidy.manager
Interface IProcessable<P extends IProcessable<?>>

All Superinterfaces:
ILaunchable
All Known Implementing Classes:
AbstractNode, EmptyNode, Node, Pipe, Pipeline, Piping, Processable, Workspace

public interface IProcessable<P extends IProcessable<?>>
extends ILaunchable

IProcessable.

 Date: Feb 11, 2008
 Time: 1:24:22 AM
 

Version:
$Id: IProcessable.java 30 2009-09-18 22:23:35Z nitsche $$
Author:
Roman Rädle, Roman. Raedle@uni-konstanz.de, University of Konstanz

Method Summary
 void addSubProcessable(P processable)
          Adds a sub processable to this processable.
 boolean isProcessing()
          Whether the processing is already processing.
 IDataContainer process(IDataContainer dataContainer)
          Processes the data container and returns the processed result of the data container.
 void publish(IData... data)
          Publishs data objects to connected processables.
 void publish(IDataContainer dataContainer)
          Publishs a data container to connected processables.
 void removeSubProcessable(P processable)
          Removes a sub processable of the sub processable collection.
 
Methods inherited from interface de.ukn.hci.squidy.manager.ILaunchable
delete, publishFailure, resolveFailure, start, stop
 

Method Detail

isProcessing

boolean isProcessing()
Whether the processing is already processing.

Returns:
True if the processable is processing data.

addSubProcessable

void addSubProcessable(P processable)
Adds a sub processable to this processable.

Parameters:
processable - The sub processable.

removeSubProcessable

void removeSubProcessable(P processable)
Removes a sub processable of the sub processable collection.

Parameters:
processable - The sub processable that should be removed of the sub processable collection.

process

IDataContainer process(IDataContainer dataContainer)
Processes the data container and returns the processed result of the data container.

Parameters:
dataContainer - The data container to be processed.
Returns:
The result of the process.

publish

void publish(IData... data)
Publishs data objects to connected processables.

Parameters:
data - The data objects to be published.

publish

void publish(IDataContainer dataContainer)
Publishs a data container to connected processables.

Parameters:
data - The data container to be published.


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.