LOHWChannelProxy Class Reference
A channel proxy to allow a single channel to be updated on a given interface.
More...
#import <LOHWChannelProxy.h>
Detailed Description
A channel proxy to allow a single channel to be updated on a given interface.
As used by the soft patch system
Member Function Documentation
Add an additional proxy.
This additional proxy will receive the same setChannel message as this on. As many proxies can be added as desired.
- Parameters:
-
| aProxy | The additional proxy to link in. |
- See also:
- additionalProxies
- (NSArray *) additionalProxies |
|
|
|
|
Test is aProxy is an additional proxy to this one.
- Parameters:
-
Get the HW Bridge used for this proxy.
- (id) initForChannel: |
|
(unsigned int) |
theChannel |
onBridge: |
|
(LOHWBridge *) |
theHWBridge | |
|
|
| | |
Initilise the object with a HWInterface and Channel.
- Parameters:
-
| theHWBridge | The interface to be used |
| theChannel | The channel on the interface |
- (id) initWithXML: |
|
(NSXMLElement *) |
XMLElement |
|
|
Initilise the object from an XML element.
The expected format is the interface element.
If the XML contains a HWBridge that is not on the system it will call the replaceHWBridge function in LOFileManager to see what it should do.
- See also:
- - initWithXML:offsetBy:
XMLIntoElement
- (id) initWithXML: |
|
(NSXMLElement *) |
XMLElement |
offsetBy: |
|
(int) |
offset | |
|
|
| | |
Initilise the object from an XML element.
The expected format is the interface element.
If the XML contains a HWBridge that is not on the system it will call the replaceHWBridge function in LOFileManager to see what it should do.
The offset adjusts the physical channel
- See also:
- - initWithXML:
XMLIntoElement
Add an additional linked proxy.
This additional proxy will receive the same setChannel message as this on. As many proxies can be added as desired.
- Parameters:
-
| aProxy | The additional proxy to link in. |
- Deprecated:
- see addAdditionalProxy: instead
- See also:
- - linkedChannel:
- (unsigned int) physicalChannel |
|
|
|
|
Get the physical channel number used by the HWBridge.
+ (id) proxyForChannel: |
|
(unsigned int) |
theChannel |
onBridge: |
|
(LOHWBridge *) |
theHWBridge | |
|
|
| | |
Convienience method.
- Parameters:
-
| theChannel | The channel on the interface |
| theHWBridge | The interface to be used |
- (void) removeAdditionalProxyAtIndex: |
|
(unsigned) |
index |
|
|
- (void) setChannelValue: |
|
(unsigned char) |
theValue |
|
|
Set the physical channel on the HWBridge to the given value.
- Parameters:
-
| theValue | The new channel value |
- (void) XMLIntoElement: |
|
(NSXMLElement *) |
parentElement |
|
|
Get the Channel Proxy details as XML.
<parent element>
<interface serial="1001" physical="1"/>
</parent element>
Linked channels will simply include multiple interface elements. This is different from most other objects with an XML function. You need to include the parent object, this is because it needs to be passed down to the linked proxies
- Parameters:
-
| parentElement | The parent element that the inteface elements are put into |
The documentation for this class was generated from the following files: