public class StatisticsControllerImpl extends Object implements StatisticsController
| Constructor and Description |
|---|
StatisticsControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Statistics statistics)
Executes
statistics in the current thread. |
void |
execute(Statistics statistics,
LongTaskListener listener)
Execute the statistics algorithm in a background thread and notify
listener when finished. |
StatisticsBuilder |
getBuilder(Class<? extends Statistics> statisticsClass)
Finds the builder from the statistics class.
|
StatisticsModelImpl |
getModel()
Returns the current
StatisticsModel, from the current
workspace |
StatisticsModel |
getModel(Workspace workspace)
Returns the
StatisticsModel for workspace |
public void execute(Statistics statistics, LongTaskListener listener)
StatisticsControllerlistener when finished. The statistics should
implement LongTask.execute in interface StatisticsControllerstatistics - the statistics algorithm instancelistener - a listener that is notified when execution finishedpublic void execute(Statistics statistics)
StatisticsControllerstatistics in the current thread.execute in interface StatisticsControllerstatistics - the statistics to executepublic StatisticsBuilder getBuilder(Class<? extends Statistics> statisticsClass)
StatisticsControllergetBuilder in interface StatisticsControllerstatisticsClass - the statistics classnull if not foundpublic StatisticsModelImpl getModel()
StatisticsControllerStatisticsModel, from the current
workspacegetModel in interface StatisticsControllerStatisticsModelpublic StatisticsModel getModel(Workspace workspace)
StatisticsControllerStatisticsModel for workspacegetModel in interface StatisticsControllerworkspace - the workspace to return the model forStatisticsModel associated to
workspaceCopyright © 2007–2017. All rights reserved.