javax.microedition.sensor
Class NXTChannel

java.lang.Object
  extended by javax.microedition.sensor.NXTChannel
All Implemented Interfaces:
Channel

public class NXTChannel
extends Object
implements Channel

Implementation of the channel interface for NXT sensor channels

Author:
Lawrie Griffiths

Constructor Summary
NXTChannel(NXTSensorConnection sensor, NXTChannelInfo channelInfo)
           
 
Method Summary
 void addCondition(ConditionListener listener, Condition condition)
           
 NXTChannelInfo getChannelInfo()
           
 String getChannelUrl()
           
 Condition[] getConditions(ConditionListener listener)
           
 NXTSensorConnection getSensor()
           
 void removeAllConditions()
           
 void removeCondition(ConditionListener listener, Condition condition)
           
 void removeConditionListener(ConditionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXTChannel

public NXTChannel(NXTSensorConnection sensor,
                  NXTChannelInfo channelInfo)
Method Detail

addCondition

public void addCondition(ConditionListener listener,
                         Condition condition)
Specified by:
addCondition in interface Channel

getChannelInfo

public NXTChannelInfo getChannelInfo()
Specified by:
getChannelInfo in interface Channel

getChannelUrl

public String getChannelUrl()
Specified by:
getChannelUrl in interface Channel

getConditions

public Condition[] getConditions(ConditionListener listener)
Specified by:
getConditions in interface Channel

removeAllConditions

public void removeAllConditions()
Specified by:
removeAllConditions in interface Channel

removeCondition

public void removeCondition(ConditionListener listener,
                            Condition condition)
Specified by:
removeCondition in interface Channel

removeConditionListener

public void removeConditionListener(ConditionListener listener)
Specified by:
removeConditionListener in interface Channel

getSensor

public NXTSensorConnection getSensor()