synesketch
Class Synesthetiator

java.lang.Object
  extended by synesketch.Synesthetiator
Direct Known Subclasses:
SynesthetiatorEmotion

public abstract class Synesthetiator
extends java.lang.Object

Defines common behavior for transfering textual information into visual output and notifying Processing applet (PApplet) about that new information.

For example, SynesthetiatorEmotion is a subclass of this class, where textual information refers to the new emotion recognised in text, which is to be transfered into visual patterns.

All subclasses of Synesthetiator should redefine the 'synesthetise' method and implement the synesthesia alghoritm, the concrete way text is interpreted and transfered into visual output.

Version:
1.0
Author:
Uros Krcadinac email: uros@krcadinac.com

Constructor Summary
Synesthetiator(processing.core.PApplet parent)
          Class constructor that sets parent Processing applet (PApplet).
 
Method Summary
 void notifyPApplet(SynesketchState state)
          Notifies the parent Processing applet (PApplet) about some text event, by calling applet's method 'synesketchUpdate'.
abstract  void synesthetise(java.lang.String text)
          Defines behaviour of transferring textual information into visual information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synesthetiator

public Synesthetiator(processing.core.PApplet parent)
               throws java.lang.Exception
Class constructor that sets parent Processing applet (PApplet). Parent applet is to be notified about some text event (for example, recognition of a current emotion in text).

Parameters:
parent - PApllet, a parent Processing applet
Throws:
java.lang.Exception
Method Detail

notifyPApplet

public void notifyPApplet(SynesketchState state)
Notifies the parent Processing applet (PApplet) about some text event, by calling applet's method 'synesketchUpdate'.

Parameters:
state - a SynesketchState object, which contains the data synestheticaly interpreted from the text

synesthetise

public abstract void synesthetise(java.lang.String text)
                           throws java.lang.Exception
Defines behaviour of transferring textual information into visual information. In other words -- defines the synesthetic ablilites of the subclass.

Parameters:
text - String containing the text which is to be analyzed
Throws:
java.lang.Exception