@Override public boolean eventGeneratable(String eventName){
  if (m_listenee == null) {
    return false;
  }
  if (!eventName.equals("instance") && !eventName.equals("dataSet")) {
    return false;
  }
  if (m_listenee instanceof DataSource) {
    if (m_listenee instanceof EventConstraints) {
      EventConstraints ec=(EventConstraints)m_listenee;
      return ec.eventGeneratable(eventName);
    }
  }
  if (m_listenee instanceof TrainingSetProducer) {
    if (m_listenee instanceof EventConstraints) {
      EventConstraints ec=(EventConstraints)m_listenee;
      if (!eventName.equals("dataSet")) {
        return false;
      }
      if (!ec.eventGeneratable("trainingSet")) {
        return false;
      }
    }
  }
  if (m_listenee instanceof TestSetProducer) {
    if (m_listenee instanceof EventConstraints) {
      EventConstraints ec=(EventConstraints)m_listenee;
      if (!eventName.equals("dataSet")) {
        return false;
      }
      if (!ec.eventGeneratable("testSet")) {
        return false;
      }
    }
  }
  return true;
}

@ Override public boolean eventGeneratable ( String eventName ) { if ( m_listenee == null ) { return false ; } if ( ! eventName . equals ( "instance" ) && ! eventName . equals ( "dataSet" ) ) { return false ; } if ( m_listenee instanceof DataSource ) { if ( m_listenee instanceof EventConstraints ) { EventConstraints ec = ( EventConstraints ) m_listenee ; return ec . eventGeneratable ( eventName ) ; } } if ( m_listenee instanceof TrainingSetProducer ) { if ( m_listenee instanceof EventConstraints ) { EventConstraints ec = ( EventConstraints ) m_listenee ; if ( ! eventName . equals ( "dataSet" ) ) { return false ; } if ( ! ec . eventGeneratable ( "trainingSet" ) ) { return false ; } } } if ( m_listenee instanceof TestSetProducer ) { if ( m_listenee instanceof EventConstraints ) { EventConstraints ec = ( EventConstraints ) m_listenee ; if ( ! eventName . equals ( "dataSet" ) ) { return false ; } if ( ! ec . eventGeneratable ( "testSet" ) ) { return false ; } } } return true ; }
returns true if , at the current time , the named event could be generated .
