Package edu.wpi.first.hal.sim
Class DIOSim
- java.lang.Object
-
- edu.wpi.first.hal.sim.DIOSim
-
public class DIOSim extends Object
-
-
Constructor Summary
Constructors Constructor Description DIOSim(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFilterIndex()booleangetInitialized()booleangetIsInput()doublegetPulseLength()booleangetValue()CallbackStoreregisterFilterIndexCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterInitializedCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterIsInputCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterPulseLengthCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterValueCallback(NotifyCallback callback, boolean initialNotify)voidresetData()voidsetFilterIndex(int filterIndex)voidsetInitialized(boolean initialized)voidsetIsInput(boolean isInput)voidsetPulseLength(double pulseLength)voidsetValue(boolean value)
-
-
-
Method Detail
-
registerInitializedCallback
public CallbackStore registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
-
getInitialized
public boolean getInitialized()
-
setInitialized
public void setInitialized(boolean initialized)
-
registerValueCallback
public CallbackStore registerValueCallback(NotifyCallback callback, boolean initialNotify)
-
getValue
public boolean getValue()
-
setValue
public void setValue(boolean value)
-
registerPulseLengthCallback
public CallbackStore registerPulseLengthCallback(NotifyCallback callback, boolean initialNotify)
-
getPulseLength
public double getPulseLength()
-
setPulseLength
public void setPulseLength(double pulseLength)
-
registerIsInputCallback
public CallbackStore registerIsInputCallback(NotifyCallback callback, boolean initialNotify)
-
getIsInput
public boolean getIsInput()
-
setIsInput
public void setIsInput(boolean isInput)
-
registerFilterIndexCallback
public CallbackStore registerFilterIndexCallback(NotifyCallback callback, boolean initialNotify)
-
getFilterIndex
public int getFilterIndex()
-
setFilterIndex
public void setFilterIndex(int filterIndex)
-
resetData
public void resetData()
-
-