| Package | org.MARS.robot.control |
| Interface | public interface IElectronicDevice |
| Subinterfaces | IActuator, IController, ILocomotion, ISensor |
| Implementors | AbstractElectronicDevice, DifferentialSteering |
| Property | Defined by | ||
|---|---|---|---|
| numberOfPorts : Number [read-only]
Get the number of IO ports in the device.
| IElectronicDevice | ||
| Method | Defined by | ||
|---|---|---|---|
|
Get a certain IO port by its number
| IElectronicDevice | ||
| numberOfPorts | property |
numberOfPorts:Number [read-only]Get the number of IO ports in the device.
NOTE: the number of ports cannot be modified once the device is created
Implementation public function get numberOfPorts():Number
| getPort | () | method |
public function getPort(portNumber:Number):IOPortGet a certain IO port by its number
ParametersportNumber:Number |
IOPort —
IO port
|
— an Error when the port number is out of the range
|