LOSoftPatch Class Reference
Defines soft patch parameters.
More...
#import <LOSoftPatch.h>
Detailed Description
Defines soft patch parameters.
A soft patch is the relationship between a (soft) channel controlled the by the channle manager, and a (physical) channel output by a HWBridge.
A Soft Patch deals with channel offsets because it does not know the channle numbers given to it by the channelManager, just how many channels it is looking after.
Member Function Documentation
- (void) addPatchForOffset: |
|
(unsigned) |
anOffset |
toPhysicalChannel: |
|
(unsigned) |
aChannel |
onHWBridge: |
|
(LOHWBridge *) |
aHWBridge | |
|
|
| | |
Add an additional patch to a channel offset.
If no patch has yet been done on this offset, it has the same effect as setPatchForOffset: toPhysicalChannel: onHWBridge
It is assumed that the HWBridge has already been set to tx mode
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
| aChannel | The physical channel number |
| aHWBridge | The HWBridge containing the physical channel |
Add a channel proxy for the given offset.
- Parameters:
-
| aProxy | The actuall proxy |
| anOffset | The channel offset being patched (0 indexed) |
Returns the maximum number of soft patch channels that can be held.
- Returns:
- The coutn of channels.
Get all the hw bridges used by the soft patch.
- Returns:
- An array of hw bridges
- (NSString *) identifierForOffset: |
|
(unsigned) |
anOffset |
|
|
- (NSString *) identifierWithPhysicalForOffset: |
|
(unsigned) |
anOffset |
|
|
Get the identifierr and physical channel number on the HWBridge this offset uses.
Format is identifier:physical
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
- See also:
- identifierrForOffset:
- physicalAddressForOffset:
- physicalForOffset:
- (id) initUniverseWithHWBridge: |
|
(LOHWBridge *) |
aHWBridge |
|
|
Initilise a complete DMX512 Universe.
Using the given HWBridge map a 1 to 1 soft patch for all 512 channels.
It is assumed that the HWBridge has already been set to tx mode
- Parameters:
-
| aHWBridge | The HWBridge containing the physical channels |
- (id) initWithCapacity: |
|
(unsigned) |
theCapacity |
|
|
Initilise a soft patch with a number of unpatched channels.
- Parameters:
-
| theCapacity | The number of unpatched channels to be created. |
- (BOOL) isPatchedAtOffset: |
|
(unsigned) |
anOffset |
|
|
- (NSString *) physicalAddressForOffset: |
|
(unsigned) |
anOffset |
|
|
- (unsigned) physicalForOffset: |
|
(unsigned) |
anOffset |
|
|
Get the proxy for a given offset.
- Parameters:
-
- Returns:
- the offset
Remove a specific proxy at a given offset.
This could be the primary proxy or an additional linked one. Mark the hw channle as unpatched.
In the even that this is the primary proxy, the first additional one will be made the primary, and any extra additional ones will be now additional to the new primary one.
- Parameters:
-
| proxy | The Channel proxy to remove |
| anOffset | The offset within the softpatch to remove the proxy |
- (NSString *) serialNumberForOffset: |
|
(unsigned) |
anOffset |
|
|
- (NSString *) serialNumberWithPhysicalForOffset: |
|
(unsigned) |
anOffset |
|
|
- (void) setPatchForOffset: |
|
(unsigned) |
anOffset |
toPhysicalChannel: |
|
(unsigned) |
aChannel |
onHWBridge: |
|
(LOHWBridge *) |
aHWBridge | |
|
|
| | |
Set the patch on a channel offset.
It is assumed that the HWBridge has already been set to tx mode
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
| aChannel | The channel offset being patched (0 indexed) |
| aHWBridge | The HWBridge containing the physical channel |
Set the channel proxy for the given offset.
- Parameters:
-
| aProxy | The actuall proxy |
| anOffset | The channel offset being patched (0 indexed) |
- (void) unpatchForOffset: |
|
(unsigned) |
anOffset |
|
|
Mark the hw channle(s) as unpatched for the given offset.
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
- See also:
- - isPatchedAtOffset:
- (void) updateOffset: |
|
(unsigned) |
anOffset |
withValue: |
|
(unsigned char) |
theValue | |
|
|
| | |
Set the physical channel(s) on the HWBridge to the given value.
This is the function that actually calls the set channel command on behalf of the channel manager.
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
| theValue | The new channel value |
- (NSXMLElement *) XMLForOffset: |
|
(unsigned) |
anOffset |
|
|
Get the Channel Proxy details as XML.
<interfaces>
<interface serial="1001" physical="1"/>
</interfaces>
- Parameters:
-
| anOffset | The channel offset being patched (0 indexed) |
- Returns:
- The XML Representation of the interface at the given offset
The documentation for this class was generated from the following files: