org.robokind.api.sensor.gpio
Class RemoteGpioServiceClient<T extends SensorEventHeader>

java.lang.Object
  extended by org.jflux.api.core.util.DefaultNotifier<DeviceBoolEvent<T>>
      extended by org.robokind.api.sensor.gpio.RemoteGpioServiceClient<T>
All Implemented Interfaces:
org.jflux.api.core.Notifier<DeviceBoolEvent<T>>, GpioService<T>

public class RemoteGpioServiceClient<T extends SensorEventHeader>
extends org.jflux.api.core.util.DefaultNotifier<DeviceBoolEvent<T>>
implements GpioService<T>

Author:
Matthew Stevenson

Nested Class Summary
 class RemoteGpioServiceClient.GpioPin
           
 
Field Summary
 
Fields inherited from class org.jflux.api.core.util.DefaultNotifier
myListeners
 
Fields inherited from interface org.robokind.api.sensor.gpio.GpioService
IN, OUT
 
Constructor Summary
RemoteGpioServiceClient(org.jflux.api.core.Source<T> headerFactory, org.jflux.api.core.Source<Long> timestampFactory, org.jflux.api.core.Source<? extends DeviceBoolEvent<T>> eventFactory, org.jflux.api.core.Source<? extends GpioConfigEvent<T>> configFactory, org.jflux.api.core.Notifier<GpioConfigEvent<T>> directionSender, org.jflux.api.core.Notifier<DeviceReadPeriodEvent<T>> readPeriodSender, org.jflux.api.core.Notifier<DeviceBoolEvent<T>> outputValueSender, org.jflux.api.core.Notifier<DeviceBoolEvent<T>> inputValueReceiver, int dirSeqId, int outValSeqId, int inValSeqId, int... availablePins)
           
 
Method Summary
 Boolean getPinDirection(int channel)
           
 Boolean getPinValue(int channel)
           
 void setDirectionSender(org.jflux.api.core.Notifier<GpioConfigEvent<T>> sender)
           
 void setEventFactory(org.jflux.api.core.Source<DeviceBoolEvent<T>> eventFactory)
           
 void setHeaderFactory(org.jflux.api.core.Source<T> headerFactory)
           
 void setInputValueReceiver(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> receiver)
           
 void setOutputValueSender(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> sender)
           
 void setPinDirection(int channel, boolean direction)
           
 void setPinValue(int channel, boolean val)
           
 void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)
           
 void setTimestampFactory(org.jflux.api.core.Source<Long> timestampFactory)
           
 
Methods inherited from class org.jflux.api.core.util.DefaultNotifier
addListener, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jflux.api.core.Notifier
addListener, notifyListeners, removeListener
 

Constructor Detail

RemoteGpioServiceClient

public RemoteGpioServiceClient(org.jflux.api.core.Source<T> headerFactory,
                               org.jflux.api.core.Source<Long> timestampFactory,
                               org.jflux.api.core.Source<? extends DeviceBoolEvent<T>> eventFactory,
                               org.jflux.api.core.Source<? extends GpioConfigEvent<T>> configFactory,
                               org.jflux.api.core.Notifier<GpioConfigEvent<T>> directionSender,
                               org.jflux.api.core.Notifier<DeviceReadPeriodEvent<T>> readPeriodSender,
                               org.jflux.api.core.Notifier<DeviceBoolEvent<T>> outputValueSender,
                               org.jflux.api.core.Notifier<DeviceBoolEvent<T>> inputValueReceiver,
                               int dirSeqId,
                               int outValSeqId,
                               int inValSeqId,
                               int... availablePins)
Method Detail

getPinDirection

public Boolean getPinDirection(int channel)
Specified by:
getPinDirection in interface GpioService<T extends SensorEventHeader>

setPinDirection

public void setPinDirection(int channel,
                            boolean direction)
Specified by:
setPinDirection in interface GpioService<T extends SensorEventHeader>

getPinValue

public Boolean getPinValue(int channel)
Specified by:
getPinValue in interface GpioService<T extends SensorEventHeader>

setPinValue

public void setPinValue(int channel,
                        boolean val)
Specified by:
setPinValue in interface GpioService<T extends SensorEventHeader>

setReadPeriod

public void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)
Specified by:
setReadPeriod in interface GpioService<T extends SensorEventHeader>

setHeaderFactory

public void setHeaderFactory(org.jflux.api.core.Source<T> headerFactory)

setTimestampFactory

public void setTimestampFactory(org.jflux.api.core.Source<Long> timestampFactory)

setEventFactory

public void setEventFactory(org.jflux.api.core.Source<DeviceBoolEvent<T>> eventFactory)

setDirectionSender

public void setDirectionSender(org.jflux.api.core.Notifier<GpioConfigEvent<T>> sender)

setOutputValueSender

public void setOutputValueSender(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> sender)

setInputValueReceiver

public void setInputValueReceiver(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> receiver)


Copyright © 2011-2013. All Rights Reserved.