Package jmri.jmrix.loconet
Class CsOpSwAccess
- java.lang.Object
-
- jmri.jmrix.loconet.CsOpSwAccess
-
- All Implemented Interfaces:
java.util.EventListener
,LocoNetListener
public class CsOpSwAccess extends java.lang.Object implements LocoNetListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CsOpSwAccess.CmdStnOpSwStateType
-
Constructor Summary
Constructors Constructor Description CsOpSwAccess(LocoNetSystemConnectionMemo memo, ProgListener p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose of object's helper objects Stops the timersboolean
extractCmdStnOpSw(int cmdStnOpSwNum)
CsOpSwAccess.CmdStnOpSwStateType
getState()
(package private) void
initializeCsOpSwAccessTimer()
(package private) void
initializeCsOpSwValidTimer()
void
message(LocoNetMessage m)
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.void
readCmdStationOpSw(int cv)
void
readCsOpSw(java.lang.String opSw, ProgListener pL)
void
returnCmdStationOpSwVal(int cmdStnOpSwNum)
void
setProgrammerListener(ProgListener p)
boolean
updateCmdStnOpSw(int opSwNum, boolean val)
LocoNetMessage
updateOpSwVal(int cmdStnOpSwNum, boolean cmdStnOpSwVal)
void
writeCsOpSw(java.lang.String opSw, int val, ProgListener pL)
-
-
-
Constructor Detail
-
CsOpSwAccess
public CsOpSwAccess(@Nonnull LocoNetSystemConnectionMemo memo, @Nonnull ProgListener p)
-
-
Method Detail
-
setProgrammerListener
public void setProgrammerListener(@Nonnull ProgListener p)
-
readCsOpSw
public void readCsOpSw(java.lang.String opSw, @Nonnull ProgListener pL) throws ProgrammerException
- Throws:
ProgrammerException
-
writeCsOpSw
public void writeCsOpSw(java.lang.String opSw, int val, @Nonnull ProgListener pL) throws ProgrammerException
- Throws:
ProgrammerException
-
message
public void message(LocoNetMessage m)
Description copied from interface:LocoNetListener
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.- Specified by:
message
in interfaceLocoNetListener
- Parameters:
m
- The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
readCmdStationOpSw
public void readCmdStationOpSw(int cv)
-
returnCmdStationOpSwVal
public void returnCmdStationOpSwVal(int cmdStnOpSwNum)
-
updateCmdStnOpSw
public boolean updateCmdStnOpSw(int opSwNum, boolean val)
-
extractCmdStnOpSw
public boolean extractCmdStnOpSw(int cmdStnOpSwNum)
-
updateOpSwVal
public LocoNetMessage updateOpSwVal(int cmdStnOpSwNum, boolean cmdStnOpSwVal)
-
initializeCsOpSwAccessTimer
void initializeCsOpSwAccessTimer()
-
initializeCsOpSwValidTimer
void initializeCsOpSwValidTimer()
-
getState
public CsOpSwAccess.CmdStnOpSwStateType getState()
-
dispose
public void dispose()
Dispose of object's helper objects Stops the timers
-
-