Package edu.wpi.first.hal.sim
Class AddressableLEDSim
- java.lang.Object
-
- edu.wpi.first.hal.sim.AddressableLEDSim
-
public class AddressableLEDSim extends Object
-
-
Constructor Summary
Constructors Constructor Description AddressableLEDSim(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()booleangetInitialized()intgetLength()intgetOutputPort()booleangetRunning()CallbackStoreregisterDataCallback(ConstBufferCallback callback)CallbackStoreregisterInitializedCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterLengthCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterOutputPortCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterRunningCallback(NotifyCallback callback, boolean initialNotify)voidresetData()voidsetData(byte[] data)voidsetInitialized(boolean initialized)voidsetLength(int length)voidsetOutputPort(int outputPort)voidsetRunning(boolean running)
-
-
-
Method Detail
-
registerInitializedCallback
public CallbackStore registerInitializedCallback(NotifyCallback callback, boolean initialNotify)
-
getInitialized
public boolean getInitialized()
-
setInitialized
public void setInitialized(boolean initialized)
-
registerOutputPortCallback
public CallbackStore registerOutputPortCallback(NotifyCallback callback, boolean initialNotify)
-
getOutputPort
public int getOutputPort()
-
setOutputPort
public void setOutputPort(int outputPort)
-
registerLengthCallback
public CallbackStore registerLengthCallback(NotifyCallback callback, boolean initialNotify)
-
getLength
public int getLength()
-
setLength
public void setLength(int length)
-
registerRunningCallback
public CallbackStore registerRunningCallback(NotifyCallback callback, boolean initialNotify)
-
getRunning
public boolean getRunning()
-
setRunning
public void setRunning(boolean running)
-
registerDataCallback
public CallbackStore registerDataCallback(ConstBufferCallback callback)
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
resetData
public void resetData()
-
-