public static String makeSystemName(String type,int bitNum){
  String nName="";
  if ((!type.equals("S")) && (!type.equals("L")) && (!type.equals("T"))) {
    log.error("illegal type character proposed for system name - " + type);
    return (nName);
  }
  if ((bitNum < 1) || ((type.equals("S")) && (bitNum > 1000)) || (bitNum > 8000)) {
    log.error("illegal address range proposed for system name - " + bitNum);
    return (nName);
  }
  nName="K" + type + Integer.toString(bitNum);
  return (nName);
}

public static String makeSystemName ( String type , int bitNum ) { String nName = "" ; if ( ( ! type . equals ( "S" ) ) && ( ! type . equals ( "L" ) ) && ( ! type . equals ( "T" ) ) ) { log . error ( "illegal type character proposed for system name - " + type ) ; return ( nName ) ; } if ( ( bitNum < 1 ) || ( ( type . equals ( "S" ) ) && ( bitNum > 1000 ) ) || ( bitNum > 8000 ) ) { log . error ( "illegal address range proposed for system name - " + bitNum ) ; return ( nName ) ; } nName = "K" + type + Integer . toString ( bitNum ) ; return ( nName ) ; }
public static method to construct a system name from type character and bit number < p > this routine returns a system name in the clxxxx , ctxxxx , or csxxxx format . the returned name is normalized . < p > if the supplied character is not valid , or the bit number is out of the 1 - 9000 range , an error message is logged and the null string " " is returned .
