jmri.util
Class ConnectionNameFromSystemName

java.lang.Object
  extended by jmri.util.ConnectionNameFromSystemName

public class ConnectionNameFromSystemName
extends Object

Common utility method for returning the System Connection Name from the System Name Prefix

Author:
Kevin Dickerson Copyright 2010

Constructor Summary
ConnectionNameFromSystemName()
           
 
Method Summary
static String getConnectionName(String prefix)
          Locates the connected systems name from a given prefix.
static String getPrefixFromName(String name)
          Locates the connected systems prefix from a given System name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionNameFromSystemName

public ConnectionNameFromSystemName()
Method Detail

getConnectionName

public static String getConnectionName(String prefix)
Locates the connected systems name from a given prefix.

Parameters:
prefix -
Returns:
The Connection System Name

getPrefixFromName

public static String getPrefixFromName(String name)
Locates the connected systems prefix from a given System name.

Parameters:
name -
Returns:
The system prefix


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads