logo


pixelsources
Interface PixelSource

All Known Implementing Classes:
TriLife

public interface PixelSource

Abstract interface for modules that can deliver pixes to Perceptron. Note : it may be good to have all PixelSources share a buffer. This might be implemented as either an interface method that provides a drawing buffer, Or an enforced constructor or generator that takes a buffer.


Method Summary
 java.awt.image.BufferedImage getSource()
          Returns a BufferedImage
 void keyPressed(java.awt.event.KeyEvent e)
          Tells the modules to process a keystroke
 void step()
          Informs the module to advance frames
 

Method Detail

getSource

java.awt.image.BufferedImage getSource()
Returns a BufferedImage

Returns:

step

void step()
Informs the module to advance frames


keyPressed

void keyPressed(java.awt.event.KeyEvent e)
Tells the modules to process a keystroke

Parameters:
e - a KeyEvent