Package jmri.jmrix.anyma
Class AnymaDMX_TrafficController
- java.lang.Object
-
- jmri.jmrix.anyma.AnymaDMX_TrafficController
-
public class AnymaDMX_TrafficController extends java.lang.Object
Traffic controller for Anyma DMX.- Since:
- 4.9.6
-
-
Constructor Summary
Constructors Constructor Description AnymaDMX_TrafficController()
Create a new AnymaTrafficController instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectPort(AnymaDMX_UsbPortAdapter p)
Make connection to existing PortController (adapter) object.void
dispose()
Clean up threads and local storage.void
setChannelRangeValues(int from, int to, byte[] buf)
set the values for a range of channelsvoid
setChannelValue(int channel, byte value)
set a channel's value
-
-
-
Constructor Detail
-
AnymaDMX_TrafficController
public AnymaDMX_TrafficController()
Create a new AnymaTrafficController instance.
-
-
Method Detail
-
connectPort
public void connectPort(AnymaDMX_UsbPortAdapter p)
Make connection to existing PortController (adapter) object.- Parameters:
p
- the AnymaDMX_UsbPortAdapter we're connecting to
-
setChannelValue
public void setChannelValue(int channel, byte value)
set a channel's value- Parameters:
channel
- the channel (1 - 512 inclusive)value
- the value
-
setChannelRangeValues
public void setChannelRangeValues(int from, int to, byte[] buf)
set the values for a range of channels- Parameters:
from
- the beginning index (inclusive)to
- the ending index (inclusive)buf
- the data to send note: the from/to indexes are 1-512 (inclusive)
-
dispose
public void dispose()
Clean up threads and local storage.
-
-