public void assignTunerConfiguration(TunerConfiguration configToAssign){
  if (configToAssign != null) {
    List<TunerConfiguration> configs=getTunerConfigurations(configToAssign.getTunerType(),configToAssign.getUniqueID());
    for (    TunerConfiguration config : configs) {
      if (config.isAssigned()) {
        config.setAssigned(false);
        int index=mTunerConfigurations.indexOf(config);
        fireTableCellUpdated(index,ASSIGNED);
        broadcast(new TunerConfigurationEvent(config,Event.CHANGE));
      }
    }
    configToAssign.setAssigned(true);
    int index=mTunerConfigurations.indexOf(configToAssign);
    fireTableCellUpdated(index,ASSIGNED);
    broadcast(new TunerConfigurationEvent(configToAssign,Event.CHANGE));
  }
}

public void assignTunerConfiguration ( TunerConfiguration configToAssign ) { if ( configToAssign != null ) { List < TunerConfiguration > configs = getTunerConfigurations ( configToAssign . getTunerType ( ) , configToAssign . getUniqueID ( ) ) ; for ( TunerConfiguration config : configs ) { if ( config . isAssigned ( ) ) { config . setAssigned ( false ) ; int index = mTunerConfigurations . indexOf ( config ) ; fireTableCellUpdated ( index , ASSIGNED ) ; broadcast ( new TunerConfigurationEvent ( config , Event . CHANGE ) ) ; } } configToAssign . setAssigned ( true ) ; int index = mTunerConfigurations . indexOf ( configToAssign ) ; fireTableCellUpdated ( index , ASSIGNED ) ; broadcast ( new TunerConfigurationEvent ( configToAssign , Event . CHANGE ) ) ; } }
designates the configuration argument as the currently assigned configuration and unassigns any other configurations with the same tuner type and unique id .
