Watchmaker Framework for Evolutionary Computation API
(Version 0.7.1)

org.uncommons.watchmaker.framework.interactive
Interface Renderer<T,S>

Type Parameters:
T - The input type for the renderer.
S - The output type for the renderer.
All Known Implementing Classes:
ObjectSwingRenderer, RendererAdapter

public interface Renderer<T,S>

Maps objects of one type to objects of a different type. For example, this class could be used to render dates as Strings or to render arrays as GUI list components.

Author:
Daniel Dyer

Method Summary
 S render(T entity)
          Renders an object of one type as an instance of another.
 

Method Detail

render

S render(T entity)
Renders an object of one type as an instance of another. For example, if the generic types of this renderer are Date and String, this method would return a String representation of a Date.

Parameters:
entity - An object to render as a different type.
Returns:
A rendering of the parameter.

Watchmaker Framework for Evolutionary Computation API
(Version 0.7.1)