Package jmri.util
Class PortNameMapper
- java.lang.Object
-
- jmri.util.PortNameMapper
-
public class PortNameMapper extends java.lang.Object
Class used to provide a mapping between port numbers and 'friendly' names, aimed at users of Microsoft Windows.Typically, most USB-Serial adapters have an alternate descriptive name as well as the more usual technical COMx name.
This class attempts to provide a mapping between the technical COMx name and the 'friendly' descriptive name which is stored within the Windows registry
This file is part of JMRI.JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PortNameMapper.SerialPortFriendlyName
-
Constructor Summary
Constructors Constructor Description PortNameMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getPortFromName(java.lang.String name)
static java.util.HashMap<java.lang.String,PortNameMapper.SerialPortFriendlyName>
getPortNameMap()
-
-
-
Constructor Detail
-
PortNameMapper
public PortNameMapper()
-
-
Method Detail
-
getPortFromName
public static java.lang.String getPortFromName(java.lang.String name)
-
getPortNameMap
public static java.util.HashMap<java.lang.String,PortNameMapper.SerialPortFriendlyName> getPortNameMap()
-
-