Package jmri.jmrix.loconet.lnsvf1
Class Lnsv1Device
- java.lang.Object
-
- jmri.jmrix.loconet.lnsvf1.Lnsv1Device
-
public class Lnsv1Device extends java.lang.Object
A class to hold LocoNet LNSVf1 (LocoIO) device identity information. See jmri.jmrix.loconet.swing.lnsv1prog.Lnsv1ProgPane
-
-
Constructor Summary
Constructors Constructor Description Lnsv1Device(int addressL, int addressH, int lastCv, int lastVal, java.lang.String deviceName, java.lang.String rosterName, int swVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCvNum()
int
getCvValue()
DecoderFile
getDecoderFile()
int
getDestAddr()
int
getDestAddrHigh()
int
getDestAddrLow()
java.lang.String
getDeviceName()
RosterEntry
getRosterEntry()
java.lang.String
getRosterName()
int
getSwVersion()
void
setCvNum(int num)
void
setCvValue(int val)
void
setDecoderFile(DecoderFile f)
void
setDestAddrHigh(int destAddrH)
void
setDestAddrLow(int destAddrL)
Set the table view of the device's low and high address.void
setDevName(java.lang.String s)
void
setRosterEntry(RosterEntry e)
void
setRosterName(java.lang.String s)
void
setSwVersion(int version)
-
-
-
Constructor Detail
-
Lnsv1Device
public Lnsv1Device(int addressL, int addressH, int lastCv, int lastVal, java.lang.String deviceName, java.lang.String rosterName, int swVersion)
-
-
Method Detail
-
getDestAddr
public int getDestAddr()
-
getDestAddrLow
public int getDestAddrLow()
-
getDestAddrHigh
public int getDestAddrHigh()
-
getDeviceName
public java.lang.String getDeviceName()
-
getRosterName
public java.lang.String getRosterName()
-
getSwVersion
public int getSwVersion()
-
setDestAddrLow
public void setDestAddrLow(int destAddrL)
Set the table view of the device's low and high address. This routine does _not_ program the device's destination address.- Parameters:
destAddrL
- device low address
-
setDestAddrHigh
public void setDestAddrHigh(int destAddrH)
-
setDevName
public void setDevName(java.lang.String s)
-
setRosterName
public void setRosterName(java.lang.String s)
-
setSwVersion
public void setSwVersion(int version)
-
getDecoderFile
public DecoderFile getDecoderFile()
-
setDecoderFile
public void setDecoderFile(DecoderFile f)
-
getRosterEntry
public RosterEntry getRosterEntry()
-
setRosterEntry
public void setRosterEntry(RosterEntry e)
-
getCvNum
public int getCvNum()
-
setCvNum
public void setCvNum(int num)
-
getCvValue
public int getCvValue()
-
setCvValue
public void setCvValue(int val)
-
-