main
Class WebFace

java.lang.Object
  extended by main.WebFace

public class WebFace
extends java.lang.Object

Programa que representa la capa web del sistema de segmentacion RSS.

Este programa permite invocar al sistema desde consola, y entregando un conjunto de resultados en formato XML. Esta clase representa una capa para encapsular los objetos retornados por los metodos principales.

Author:
Daniel Gomez M.

Constructor Summary
WebFace()
           
 
Method Summary
static void clusteringBatch(java.lang.String source)
          clustering batch: realiza el clustering inicial de la coleccion.
static void clusteringVector(int article_id)
          clustering online: agrega un nuevo articulo a la coleccion.
static java.lang.String getClusters(int numclusters, int deltaT)
          consulta por los top-k clusters
static java.lang.String getRelated(int id_cluster, int numrelateds)
          consulta por los k articulos relacionados a un cluster
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebFace

public WebFace()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

clusteringBatch

public static void clusteringBatch(java.lang.String source)
                            throws java.lang.Exception
clustering batch: realiza el clustering inicial de la coleccion.

Throws:
java.lang.Exception

clusteringVector

public static void clusteringVector(int article_id)
                             throws java.lang.Exception
clustering online: agrega un nuevo articulo a la coleccion.

Throws:
java.lang.Exception

getClusters

public static java.lang.String getClusters(int numclusters,
                                           int deltaT)
                                    throws java.lang.Exception
consulta por los top-k clusters

Parameters:
numclusters - cantidad de clusters a entregar
deltaT - ventana de tiempo (dias) a considerar
Returns:
el XML que contiene los primeros k topicos de la coleccion
Throws:
java.lang.Exception

getRelated

public static java.lang.String getRelated(int id_cluster,
                                          int numrelateds)
consulta por los k articulos relacionados a un cluster

Parameters:
id_cluster - identificador del cluster a obtener
numrelateds - cantidad de articulos a entregar