Packageorg.MARS.robot.control
Interfacepublic interface IElectronicDevice
SubinterfacesIActuator, IController, ILocomotion, ISensor
ImplementorsAbstractElectronicDevice, DifferentialSteering

Defines the minimal functionaly of an alectronic device



Public Properties
 PropertyDefined by
  numberOfPorts : Number
[read-only] Get the number of IO ports in the device.
IElectronicDevice
Public Methods
 MethodDefined by
  
getPort(portNumber:Number):IOPort
Get a certain IO port by its number
IElectronicDevice
Property detail
numberOfPortsproperty
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
Method detail
getPort()method
public function getPort(portNumber:Number):IOPort

Get a certain IO port by its number

Parameters
portNumber:Number

Returns
IOPort — IO port

Throws
— an Error when the port number is out of the range