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 int
getFilterIndex()
boolean
getInitialized()
boolean
getIsInput()
double
getPulseLength()
boolean
getValue()
CallbackStore
registerFilterIndexCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerIsInputCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerPulseLengthCallback(NotifyCallback callback, boolean initialNotify)
CallbackStore
registerValueCallback(NotifyCallback callback, boolean initialNotify)
void
resetData()
void
setFilterIndex(int filterIndex)
void
setInitialized(boolean initialized)
void
setIsInput(boolean isInput)
void
setPulseLength(double pulseLength)
void
setValue(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()
-
-