| Package | org.MARS.robot.sensors |
| Interface | public interface ISensor extends IElectronicDevice |
| Implementors | AbstractSensor |
| Property | Defined by | ||
|---|---|---|---|
![]() | numberOfPorts : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
Get a certain IO port by its number
| IElectronicDevice | |
|
getReading():void
The function which is called on every step of the physics engine.
| ISensor | ||
| shape | property |
| type | property |
type:Class [read-only]The type of the sensor
Implementation public function get type():Class
| getReading | () | method |
public function getReading():voidThe function which is called on every step of the physics engine. Gets the reading depending on the type of the sensor.