devs.musicpackage
Class Translator

java.lang.Object
  extended by biocell.BioCell
      extended by devs.musicpackage.Translator
All Implemented Interfaces:
BioDeviceListener, BioSensorListener

public class Translator
extends BioCell
implements BioSensorListener

Author:
nabhoth

Constructor Summary
Translator(NNS nns)
           
 
Method Summary
 void bioEvent(BioDeviceEvent bdE)
           
 void process(java.lang.String motionData)
           
 void sensorCRLPercieved(BioSensorEvent event)
           
 void sensorPercieved(BioSensorEvent event)
           
 void shiftVal(int[] val, int[][] destination)
           
 
Methods inherited from class biocell.BioCell
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translator

public Translator(NNS nns)
Parameters:
nns -
Method Detail

sensorCRLPercieved

public void sensorCRLPercieved(BioSensorEvent event)
Specified by:
sensorCRLPercieved in interface BioSensorListener
Parameters:
event - - must be overriden to allow CRL parsed commands

sensorPercieved

public void sensorPercieved(BioSensorEvent event)
Specified by:
sensorPercieved in interface BioSensorListener
Parameters:
event - - must be overriden to provide command access

bioEvent

public void bioEvent(BioDeviceEvent bdE)
Specified by:
bioEvent in interface BioDeviceListener

process

public void process(java.lang.String motionData)
Parameters:
motionDirection -

shiftVal

public void shiftVal(int[] val,
                     int[][] destination)
Parameters:
val -