Packagefunnel
Classpublic class IOSystem
InheritanceIOSystem Inheritance flash.events.EventDispatcher
SubclassesArduino, Fio, Gainer, MatrixLED, XBee

複数のI/Oモジュールから構成されるシステムを表現するためのクラスです。



Public Properties
 PropertyDefined by
  autoUpdate : Boolean
出力ポートを手動で更新する場合はfalseにします。
IOSystem
  samplingInterval : int
サンプリング間隔
IOSystem
Public Methods
 MethodDefined by
  
IOSystem(configs:Array, host:String = "localhost", portNum:Number = 9000, samplingInterval:int = 33)
IOSystem
  
ioModule(moduleNum:uint):IOModule
moduleNumで指定した番号のI/Oモジュールを取得します。
IOSystem
  
sendSysex(moduleNum:uint, command:uint, sysexMessage:Array):void
IOSystem
  
update():void
全ての出力ポートの値を更新します。通常、autoUpdateをfalseに設定して利用します。
IOSystem
Events
 EventSummaryDefined by
   指定したコンフィギュレーションの設定に失敗したとき送出されます。 IOSystem
   エラーが起きたとき送出されます。 IOSystem
   This event will be sent when I2C power pins of an I/O module is ready IOSystem
   This event will be sent when an I/O module is ready IOSystem
   I/Oモジュールの再起動に失敗したとき送出されます。 IOSystem
Protected Constants
 ConstantDefined by
  I2C_POWER_PINS_STARTUP_TIME : uint = 500
[static]
IOSystem
Property detail
autoUpdateproperty
public var autoUpdate:Boolean

出力ポートを手動で更新する場合はfalseにします。

The default value is true.

samplingIntervalproperty 
samplingInterval:int  [read-write]

サンプリング間隔

The default value is 33.

Implementation
    public function get samplingInterval():int
    public function set samplingInterval(value:int):void
Constructor detail
IOSystem()constructor
public function IOSystem(configs:Array, host:String = "localhost", portNum:Number = 9000, samplingInterval:int = 33)

Parameters
configs:Array — Configuration配列
 
host:String (default = "localhost") — ホスト名
 
portNum:Number (default = 9000) — ポート番号
 
samplingInterval:int (default = 33) — サンプリング間隔(ms)
Method detail
ioModule()method
public function ioModule(moduleNum:uint):IOModule

moduleNumで指定した番号のI/Oモジュールを取得します。

Parameters
moduleNum:uint — I/Oモジュールの番号。このIDは、Configuration#moduleIDと同じものを指定します。

Returns
IOModule — moduleNumで指定したIOModuleオブジェクト

See also

sendSysex()method 
public function sendSysex(moduleNum:uint, command:uint, sysexMessage:Array):voidParameters
moduleNum:uint
 
command:uint
 
sysexMessage:Array
update()method 
public function update():void

全ての出力ポートの値を更新します。通常、autoUpdateをfalseに設定して利用します。

See also

Event detail
configurationErrorevent 
Event object type: FunnelErrorEvent

指定したコンフィギュレーションの設定に失敗したとき送出されます。

errorevent  
Event object type: FunnelErrorEvent

エラーが起きたとき送出されます。

i2cPowerPinsReadyevent  
Event object type: FunnelEvent

This event will be sent when I2C power pins of an I/O module is ready

readyevent  
Event object type: FunnelEvent

This event will be sent when an I/O module is ready

rebootErrorevent  
Event object type: FunnelErrorEvent

I/Oモジュールの再起動に失敗したとき送出されます。

Constant detail
I2C_POWER_PINS_STARTUP_TIMEconstant
protected static const I2C_POWER_PINS_STARTUP_TIME:uint = 500