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 intgetCvNum()intgetCvValue()DecoderFilegetDecoderFile()intgetDestAddr()intgetDestAddrHigh()intgetDestAddrLow()java.lang.StringgetDeviceName()RosterEntrygetRosterEntry()java.lang.StringgetRosterName()intgetSwVersion()voidsetCvNum(int num)voidsetCvValue(int val)voidsetDecoderFile(DecoderFile f)voidsetDestAddrHigh(int destAddrH)voidsetDestAddrLow(int destAddrL)Set the table view of the device's low and high address.voidsetDevName(java.lang.String s)voidsetRosterEntry(RosterEntry e)voidsetRosterName(java.lang.String s)voidsetSwVersion(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)
-
-