예제 #1
0
  /**
   * @see org.apromore.service.ClusterService#cluster(org.apromore.service.model.ClusterSettings)
   *     {@inheritDoc}
   */
  @Override
  @Transactional(readOnly = false)
  @Event(message = HistoryEnum.CLUSTERING_COMPUTATION)
  public void cluster(ClusterSettings settings) throws RepositoryException {
    LOGGER.debug("Create the Clusters");
    clearClusters();

    if (DBSCAN.equals(settings.getAlgorithm())) {
      dbscanClusterer.clusterRepository(settings);
    } else if (HAC.equals(settings.getAlgorithm())) {
      hacCluster.clusterRepository(settings);
    }
    LOGGER.debug("Completed the creation the Clusters.");
  }