usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LODirectProvider Class Reference

A simple (the most simple) channel provider that passes data directly to the channel manager for any given channel, without any manipulation. More...

#import <LODirectProvider.h>

Inheritance diagram for LODirectProvider:

LOScene < LOChannelProvider > < LOChannelProvider >

Public Member Functions

(id) - init
 Initilise the provider ready to be used.
(id) - initWithLastChannel:
 Initilise the provider ready to be used.
(void) - setChannel:toValue:
 Set the value of the channel.
(void) - releaseChannel:
 Release the channel in the channle manager and remove the channel value for it.
(void) - setProviderID:
 Set the provider ID to be something other that the defaulr.

Protected Attributes

LOChannelManagerchannelManager
 The channel manager.
int providerID
 The ID of this provider.

Detailed Description

A simple (the most simple) channel provider that passes data directly to the channel manager for any given channel, without any manipulation.


Member Function Documentation

- (id) init  

Initilise the provider ready to be used.

This method registeres the provider with the channel manager, but no channel data exists until the setChannel function is called. It is initilised with all channels that the channelManager holds at the time of initilisiation, and will automatically add any new channels as they are added to the channel manager.

Returns:
The initilised provider
See also:
- setChannel:toValue:

Reimplemented from LOScene.

- (id) initWithLastChannel: (unsigned)  aChannel  

Initilise the provider ready to be used.

This method registeres the provider with the channel manager, but no channel data exists until the setChannel function is called.

Parameters:
aChannel The last numbered channel that this provider will provide data for
Returns:
The initilised provider
See also:
- setChannel:toValue:

Reimplemented from LOScene.

- (void) releaseChannel: (unsigned)  aChannel  

Release the channel in the channle manager and remove the channel value for it.

Reimplemented from LOScene.

- (void) setChannel: (unsigned)  aChannel
toValue: (unsigned char)  theValue 

Set the value of the channel.

This function notifies the channel manager that there is a possible update for the main output.

Parameters:
aChannel The channel number to se
theValue The valule of the channel.

Reimplemented from LOScene.

- (void) setProviderID: (int)  theProviderID  

Set the provider ID to be something other that the defaulr.


The documentation for this class was generated from the following files: