public static String makeSystemName(String type,int nAddress,int bitNum){
  String nName="";
  if ((!type.equals("S")) && (!type.equals("L")) && (!type.equals("T"))) {
    log.error("illegal type character proposed for system name");
    return (nName);
  }
  if ((nAddress < 0) || (nAddress > 127)) {
    log.error("illegal node adddress proposed for system name");
    return (nName);
  }
  if ((bitNum < 1) || (bitNum > 2048)) {
    log.error("illegal bit number proposed for system name");
    return (nName);
  }
  if (bitNum < 1000) {
    nName="C" + type + Integer.toString((nAddress * 1000) + bitNum);
  }
 else {
    nName="C" + type + Integer.toString(nAddress)+ "B"+ Integer.toString(bitNum);
  }
  return (nName);
}

public static String makeSystemName ( String type , int nAddress , int bitNum ) { String nName = "" ; if ( ( ! type . equals ( "S" ) ) && ( ! type . equals ( "L" ) ) && ( ! type . equals ( "T" ) ) ) { log . error ( "illegal type character proposed for system name" ) ; return ( nName ) ; } if ( ( nAddress < 0 ) || ( nAddress > 127 ) ) { log . error ( "illegal node adddress proposed for system name" ) ; return ( nName ) ; } if ( ( bitNum < 1 ) || ( bitNum > 2048 ) ) { log . error ( "illegal bit number proposed for system name" ) ; return ( nName ) ; } if ( bitNum < 1000 ) { nName = "C" + type + Integer . toString ( ( nAddress * 1000 ) + bitNum ) ; } else { nName = "C" + type + Integer . toString ( nAddress ) + "B" + Integer . toString ( bitNum ) ; } return ( nName ) ; }
public static method to construct a c / mri system name from type character , node address , and bit number < p > this routine returns a system name in the clnnnxxx , ctnnnxxx , or csnnnxxx format if the bit number is 1 - 999 . if the bit number is 1000 - 2048 , the system name is returned in the clnnnbxxxx , ctnnnbxxxx , or csnnnbxxxx format . the returned name is normalized . < p > if the supplied character is not valid , or the node address is out of the 0 - 127 range , or the bit number is out of the 1 - 2048 range , an error message is logged and the null string " " is returned .
