@Override public boolean connectionAllowed(String eventName){
  if (!eventName.equals("instance") && !eventName.equals("dataSet") && !eventName.equals("trainingSet")&& !eventName.equals("testSet")) {
    return false;
  }
  if (m_listenee != null) {
    return false;
  }
  return true;
}

@ Override public boolean connectionAllowed ( String eventName ) { if ( ! eventName . equals ( "instance" ) && ! eventName . equals ( "dataSet" ) && ! eventName . equals ( "trainingSet" ) && ! eventName . equals ( "testSet" ) ) { return false ; } if ( m_listenee != null ) { return false ; } return true ; }
returns true if , at this time , the object will accept a connection via the named event
