cnrg.itx.datax
Class ChannelProperty

java.lang.Object
  |
  +--cnrg.itx.datax.ChannelProperty

public class ChannelProperty
extends java.lang.Object

Class to implement a channel property. This contains some information about the channel and the devices that are attached to it.


Field Summary
private  int channelType
          Type of the channel.
private  PropertiesCollection deviceProperties
          The list of device properties.
private  int numOutputDevices
          Number of output devices in the channel.
 
Constructor Summary
ChannelProperty(int channelType)
          Constructor for the channel property object.
 
Method Summary
 void addProperty(Property deviceProperty)
          Method to add a device property to the channel property.
 int getChannelType()
          Method to return the type of the channel
 int getNumOutputDevices()
          Method to get the number of output devices attached to this channel.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

deviceProperties

private PropertiesCollection deviceProperties
The list of device properties.

numOutputDevices

private int numOutputDevices
Number of output devices in the channel.

channelType

private int channelType
Type of the channel.
Constructor Detail

ChannelProperty

public ChannelProperty(int channelType)
Constructor for the channel property object.
Parameters:
channelType - the type of the channel(INPUT/OUTPUT)
Method Detail

addProperty

public void addProperty(Property deviceProperty)
Method to add a device property to the channel property.
Parameters:
deviceProperty - the device property to add

getNumOutputDevices

public int getNumOutputDevices()
Method to get the number of output devices attached to this channel.
Returns:
int the number of output devices attached to this channel

getChannelType

public int getChannelType()
Method to return the type of the channel
Returns:
int the type of the channel