public static boolean validSystemNameConfig(String systemName,char type){
  if (!validSystemNameFormat(systemName,type)) {
    log.warn(systemName + " invalid; bad format");
    return false;
  }
  SerialNode node=getNodeFromSystemName(systemName);
  if (node == null) {
    log.warn(systemName + " invalid; no such node");
    return false;
  }
  int bit=getBitFromSystemName(systemName);
  if ((type == 'T') || (type == 'L')) {
    if ((bit <= 0) || (bit > SerialNode.outputBits[node.nodeType])) {
      log.warn(systemName + " invalid; bad bit number");
      return false;
    }
  }
 else   if (type == 'S') {
    if ((bit <= 0) || (bit > SerialNode.inputBits[node.nodeType])) {
      log.warn(systemName + " invalid; bad bit number");
      return false;
    }
  }
 else {
    log.error("Invalid type specification in validSystemNameConfig call");
    return false;
  }
  return true;
}

public static boolean validSystemNameConfig ( String systemName , char type ) { if ( ! validSystemNameFormat ( systemName , type ) ) { log . warn ( systemName + " invalid; bad format" ) ; return false ; } SerialNode node = getNodeFromSystemName ( systemName ) ; if ( node == null ) { log . warn ( systemName + " invalid; no such node" ) ; return false ; } int bit = getBitFromSystemName ( systemName ) ; if ( ( type == 'T' ) || ( type == 'L' ) ) { if ( ( bit <= 0 ) || ( bit > SerialNode . outputBits [ node . nodeType ] ) ) { log . warn ( systemName + " invalid; bad bit number" ) ; return false ; } } else if ( type == 'S' ) { if ( ( bit <= 0 ) || ( bit > SerialNode . inputBits [ node . nodeType ] ) ) { log . warn ( systemName + " invalid; bad bit number" ) ; return false ; } } else { log . error ( "Invalid type specification in validSystemNameConfig call" ) ; return false ; } return true ; }
public static method to validate system name for configuration returns ' true ' if system name has a valid meaning in current configuration , else returns ' false '
