Packageorg.MARS.robot.sensors
Interfacepublic interface ISensor extends IElectronicDevice
ImplementorsAbstractSensor

Defines the basic sensor functionality



Public Properties
 PropertyDefined by
 InheritednumberOfPorts : Number
Get the number of IO ports in the device.
IElectronicDevice
  shape : Shape
[read-only] The shape of the sensor
ISensor
  type : Class
[read-only] The type of the sensor
ISensor
Public Methods
 MethodDefined by
 Inherited
getPort(portNumber:Number):IOPort
Get a certain IO port by its number
IElectronicDevice
  
getReading():void
The function which is called on every step of the physics engine.
ISensor
Property detail
shapeproperty
shape:Shape  [read-only]

The shape of the sensor

Implementation
    public function get shape():Shape
typeproperty 
type:Class  [read-only]

The type of the sensor

Implementation
    public function get type():Class
Method detail
getReading()method
public function getReading():void

The function which is called on every step of the physics engine. Gets the reading depending on the type of the sensor.