@Override public boolean connectionAllowed(String eventName){
  if (eventName.compareTo("trainingSet") == 0 && (m_trainingProvider != null || m_dataProvider != null || m_instanceProvider != null)) {
    return false;
  }
  if (eventName.compareTo("testSet") == 0 && m_testProvider != null) {
    return false;
  }
  if (eventName.compareTo("instance") == 0 && m_instanceProvider != null || m_trainingProvider != null || m_dataProvider != null) {
    return false;
  }
  return true;
}

@ Override public boolean connectionAllowed ( String eventName ) { if ( eventName . compareTo ( "trainingSet" ) == 0 && ( m_trainingProvider != null || m_dataProvider != null || m_instanceProvider != null ) ) { return false ; } if ( eventName . compareTo ( "testSet" ) == 0 && m_testProvider != null ) { return false ; } if ( eventName . compareTo ( "instance" ) == 0 && m_instanceProvider != null || m_trainingProvider != null || m_dataProvider != null ) { return false ; } return true ; }
returns true if , at this time , the object will accept a connection according to the supplied event name
