com.anji.floatingeye
Class MaxAffinityListener

java.lang.Object
  extended bycom.anji.floatingeye.MaxAffinityListener
All Implemented Interfaces:
AffinityListener

public class MaxAffinityListener
extends java.lang.Object
implements AffinityListener

Author:
Philip Tucker

Constructor Summary
MaxAffinityListener()
           
 
Method Summary
 double getMaxAffinity()
           
 void reset()
          reset affinity history
 java.lang.String toString()
           
 void updateAffinity(IntLocation2D pos, double value)
          current affinity while eye is at position pos is value affinity should be between 0.0 and 1.0 inclusive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxAffinityListener

public MaxAffinityListener()
Method Detail

updateAffinity

public void updateAffinity(IntLocation2D pos,
                           double value)
Description copied from interface: AffinityListener
current affinity while eye is at position pos is value affinity should be between 0.0 and 1.0 inclusive

Specified by:
updateAffinity in interface AffinityListener
Parameters:
pos -
value -
See Also:
AffinityListener.updateAffinity(com.anji.imaging.IntLocation2D, double)

getMaxAffinity

public double getMaxAffinity()
Returns:
max affinity.

reset

public void reset()
Description copied from interface: AffinityListener
reset affinity history

Specified by:
reset in interface AffinityListener
See Also:
AffinityListener.reset()

toString

public java.lang.String toString()
See Also:
Object.toString()