mmf
Class MMF_StimulusDLA

Object
  extended by common:Generic
      extended by mmf:MMF_StimulusDLA
Direct Known Subclasses:
MMF_CircleStimulusDLA, MMF_RectStimulusDLA, MMF_SmartCircleStimulusDLA, MMF_SmartRectStimulusDLA

class 
Generic:MMF_StimulusDLA


Constructor Summary
MMF_StimulusDLA()
           
MMF_StimulusDLA(Generic pparent)
           
 
Method Summary
 complex Direction(float x, float y)
           
 complex GetPoint(float left, float right, float top, float bottom)
           
 float GetRange()
           
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MMF_StimulusDLA

public MMF_StimulusDLA(Generic pparent)
Parameters:
pparent - the parent, generally "this" from "DLA Inspired"

MMF_StimulusDLA

public MMF_StimulusDLA()
Method Detail

GetPoint

public complex GetPoint(float left,
                        float right,
                        float top,
                        float bottom)
Parameters:
left - The leftmost pixel of the organisms for this stimulus
right - The rightmost pixel of the organisms for this stimulus
top - The top pixel of the organisms for this stimulus
bottom - The bottom pixel of the organisms for this stimulus
Returns:
pixel x + flip(pixel y)

GetRange

public float GetRange()
Returns:
the square of the detection radius for this stimulus

Direction

public complex Direction(float x,
                         float y)
Parameters:
x - adjusted stimulus x pixel coordinate
y - adjusted stimulus y pixel coordinate
Returns:
cos+flip(sin) of the directional angle