public static boolean validSystemNameConfig(String systemName,char type,SerialTrafficController tc){
  if (!validSystemNameFormat(systemName,type)) {
    return false;
  }
  SerialNode node=(SerialNode)getNodeFromSystemName(systemName,tc);
  if (node == null) {
    return false;
  }
  int bit=getBitFromSystemName(systemName);
  if ((type == 'T') || (type == 'L')) {
    if ((bit <= 0) || (bit > (node.numOutputCards() * node.getNumBitsPerCard()))) {
      return false;
    }
  }
 else   if (type == 'S') {
    if ((bit <= 0) || (bit > (node.numInputCards() * node.getNumBitsPerCard()))) {
      return false;
    }
  }
 else {
    log.error("Invalid type specification in validSystemNameConfig call");
    return false;
  }
  return true;
}

public static boolean validSystemNameConfig ( String systemName , char type , SerialTrafficController tc ) { if ( ! validSystemNameFormat ( systemName , type ) ) { return false ; } SerialNode node = ( SerialNode ) getNodeFromSystemName ( systemName , tc ) ; if ( node == null ) { return false ; } int bit = getBitFromSystemName ( systemName ) ; if ( ( type == 'T' ) || ( type == 'L' ) ) { if ( ( bit <= 0 ) || ( bit > ( node . numOutputCards ( ) * node . getNumBitsPerCard ( ) ) ) ) { return false ; } } else if ( type == 'S' ) { if ( ( bit <= 0 ) || ( bit > ( node . numInputCards ( ) * node . getNumBitsPerCard ( ) ) ) ) { return false ; } } else { log . error ( "Invalid type specification in validSystemNameConfig call" ) ; return false ; } return true ; }
public static method to validate c / mri system name for configuration returns ' true ' if system name has a valid meaning in current configuration , else returns ' false '
