kaos.robots.activmedia
Class FrontSonarRing

java.lang.Object
  extended by kaos.robots.activmedia.FrontSonarRing
All Implemented Interfaces:
Sonar

public class FrontSonarRing
extends java.lang.Object
implements Sonar


Constructor Summary
FrontSonarRing()
           
 
Method Summary
protected static double getLastSonarXNative()
           
protected static double getLastSonarYNative()
           
 java.lang.Double GetMaximumEffectiveSonarRange()
          GetSonarRange
 java.lang.Integer GetNumberOfSonarSensors()
          GetNumberOfSonarSensors
 java.lang.Double GetSonarRange(java.util.HashMap properties)
          GetSonarRange
protected static int getSonarRangeNative(int sonarNumber)
           
 SonarReading GetSonarReading(java.util.HashMap properties)
          GetSonarReading
protected static boolean isNewLastSonarNative()
           
 void SetMaxEffectiveSonarRange(java.util.HashMap properties)
          SetMaxEffectiveSonarRange
protected static void setMaxEffectiveSonarRange(int range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrontSonarRing

public FrontSonarRing()
Method Detail

GetNumberOfSonarSensors

public java.lang.Integer GetNumberOfSonarSensors()
GetNumberOfSonarSensors

Specified by:
GetNumberOfSonarSensors in interface Sonar
Parameters:
none -
Returns:
int representing the number of sensors

GetMaximumEffectiveSonarRange

public java.lang.Double GetMaximumEffectiveSonarRange()
GetSonarRange

Specified by:
GetMaximumEffectiveSonarRange in interface Sonar
Parameters:
none -
Returns:
int representing the effective range in meters

GetSonarRange

public java.lang.Double GetSonarRange(java.util.HashMap properties)
GetSonarRange

Specified by:
GetSonarRange in interface Sonar
Parameters:
int - representing the sonar to check range on
Returns:
int representing the range in meters

GetSonarReading

public SonarReading GetSonarReading(java.util.HashMap properties)
GetSonarReading

Specified by:
GetSonarReading in interface Sonar
Parameters:
int - representing the sonar to check range on
Returns:
SonarReading representing the range and position in meters

SetMaxEffectiveSonarRange

public void SetMaxEffectiveSonarRange(java.util.HashMap properties)
SetMaxEffectiveSonarRange

Specified by:
SetMaxEffectiveSonarRange in interface Sonar
Parameters:
int - representing the max range

getSonarRangeNative

protected static int getSonarRangeNative(int sonarNumber)

getLastSonarXNative

protected static double getLastSonarXNative()

getLastSonarYNative

protected static double getLastSonarYNative()

isNewLastSonarNative

protected static boolean isNewLastSonarNative()

setMaxEffectiveSonarRange

protected static void setMaxEffectiveSonarRange(int range)