org.robokind.api.sensor.gpio
Class RemoteGpioServiceClient<T extends SensorEventHeader>
java.lang.Object
org.jflux.api.core.util.DefaultNotifier<DeviceBoolEvent<T>>
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
| 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)
|
| 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 |
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)
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.