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 classCsOpSwAccess.CmdStnOpSwStateType
-
Constructor Summary
Constructors Constructor Description CsOpSwAccess(LocoNetSystemConnectionMemo memo, ProgListener p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose of object's helper objects Stops the timersbooleanextractCmdStnOpSw(int cmdStnOpSwNum)CsOpSwAccess.CmdStnOpSwStateTypegetState()(package private) voidinitializeCsOpSwAccessTimer()(package private) voidinitializeCsOpSwValidTimer()voidmessage(LocoNetMessage m)Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.voidreadCmdStationOpSw(int cv)voidreadCsOpSw(java.lang.String opSw, ProgListener pL)voidreturnCmdStationOpSwVal(int cmdStnOpSwNum)voidsetProgrammerListener(ProgListener p)booleanupdateCmdStnOpSw(int opSwNum, boolean val)LocoNetMessageupdateOpSwVal(int cmdStnOpSwNum, boolean cmdStnOpSwVal)voidwriteCsOpSw(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:LocoNetListenerMember function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.- Specified by:
messagein 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
-
-