|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.sprog.SprogSlot
public class SprogSlot
Represents information for a DCC Command Station Queue entry where each entry is a DCC packet to be transmitted to the rails
A SlotListener can be registered to hear of changes in this slot. All changes in values will result in notification.
| Constructor Summary | |
|---|---|
SprogSlot(int num)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
eStop()
|
void |
f0to4packet(int address,
boolean f0,
boolean f0Momentary,
boolean f1,
boolean f1Momentary,
boolean f2,
boolean f2Momentary,
boolean f3,
boolean f3Momentary,
boolean f4,
boolean f4Momentary)
|
void |
f5to8packet(int address,
boolean f5,
boolean f5Momentary,
boolean f6,
boolean f6Momentary,
boolean f7,
boolean f7Momentary,
boolean f8,
boolean f8Momentary)
|
void |
f9to12packet(int address,
boolean f9,
boolean f9Momentary,
boolean f10,
boolean f10Momentary,
boolean f11,
boolean f11Momentary,
boolean f12,
boolean f12Momentary)
|
int |
getAddr()
|
long |
getLastUpdateTime()
|
byte[] |
getPayload()
Get the payload of this slot. |
int |
getRepeat()
|
int |
getSlotNumber()
|
boolean |
isF0to4Packet()
|
boolean |
isF5to8Packet()
|
boolean |
isF9to12Packet()
|
boolean |
isFinished()
|
boolean |
isForward()
|
boolean |
isFree()
|
boolean |
isLongAddress()
|
boolean |
isOpsPkt()
|
boolean |
isSpeedPacket()
|
int |
locoAddr()
|
void |
set(int address,
byte[] payload,
int repeat)
Set the contents of the slot. |
void |
setAccessoryPacket(int address,
boolean closed,
int repeats)
|
void |
setAddr(int a)
|
void |
setOps(int address,
boolean longAddr,
int cv,
int val)
|
void |
setRepeat(int r)
|
void |
setSpeed(int address,
int speed,
boolean forward)
|
int |
slotStatus()
|
int |
speed()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SprogSlot(int num)
| Method Detail |
|---|
public boolean isF0to4Packet()
public boolean isF5to8Packet()
public boolean isF9to12Packet()
public void set(int address,
byte[] payload,
int repeat)
address - intpayload - byte[]repeat - int
public void setAccessoryPacket(int address,
boolean closed,
int repeats)
public boolean isSpeedPacket()
public void setSpeed(int address,
int speed,
boolean forward)
public void setOps(int address,
boolean longAddr,
int cv,
int val)
public void f5to8packet(int address,
boolean f5,
boolean f5Momentary,
boolean f6,
boolean f6Momentary,
boolean f7,
boolean f7Momentary,
boolean f8,
boolean f8Momentary)
public void f9to12packet(int address,
boolean f9,
boolean f9Momentary,
boolean f10,
boolean f10Momentary,
boolean f11,
boolean f11Momentary,
boolean f12,
boolean f12Momentary)
public void f0to4packet(int address,
boolean f0,
boolean f0Momentary,
boolean f1,
boolean f1Momentary,
boolean f2,
boolean f2Momentary,
boolean f3,
boolean f3Momentary,
boolean f4,
boolean f4Momentary)
public boolean isFinished()
public void eStop()
public void clear()
public boolean isLongAddress()
public boolean isFree()
public int slotStatus()
public int getRepeat()
public void setRepeat(int r)
public int speed()
public int locoAddr()
public int getAddr()
public void setAddr(int a)
public boolean isForward()
public boolean isOpsPkt()
public byte[] getPayload()
public int getSlotNumber()
public long getLastUpdateTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||