|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.dialog.app.calo.topic.classification.mit.GibbsSamplerService
public class GibbsSamplerService
A service providing the Gibbs sampler used in the MIT/Brown topic model. Newly imported meetings can be added to a queue, and processed in batch mode.
| Constructor Summary | |
|---|---|
GibbsSamplerService()
|
|
| Method Summary | |
|---|---|
boolean |
addMeeting(String meeting)
Add a meeting to the set (queue) of meetings to process |
void |
clear()
Clear the queue and the record of meetings done, and any temporary files |
JPanel |
getGui()
Get a Swing JPanel which provides a GUI to this service. |
static GibbsSamplerService |
getInstance()
|
Set<String> |
getMeetingsDone()
|
Set<String> |
getMeetingsToDo()
|
double |
getMinutesToNextRun()
|
String |
getTitle()
Get the name of this service as it should appear in the GUI. |
boolean |
isBusy()
|
boolean |
isServiceAlive()
Is the service happy and alive? |
boolean |
runSampler()
The main piece of action: write the data, run the sampler, write the .dat files |
boolean |
runSampler(boolean evenIfQueueEmpty)
The main piece of action: write the data, run the sampler, write the .dat files |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GibbsSamplerService()
| Method Detail |
|---|
public static GibbsSamplerService getInstance()
public Set<String> getMeetingsDone()
public Set<String> getMeetingsToDo()
public boolean isBusy()
public boolean addMeeting(String meeting)
meeting -
public double getMinutesToNextRun()
public boolean runSampler()
public boolean runSampler(boolean evenIfQueueEmpty)
evenIfQueueEmpty - if true, run even if meetingsToDo is empty
public void clear()
public JPanel getGui()
Service
getGui in interface Servicepublic String getTitle()
Service
getTitle in interface Servicepublic boolean isServiceAlive()
Service
isServiceAlive in interface Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||