org.eclipse.mylar.monitor.reports
Class DelegatingUsageCollector
java.lang.Object
org.eclipse.mylar.monitor.reports.DelegatingUsageCollector
- All Implemented Interfaces:
- IUsageCollector
- Direct Known Subclasses:
- AbstractMylarUsageCollector
public class DelegatingUsageCollector
- extends java.lang.Object
- implements IUsageCollector
- Author:
- Mik Kersten
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scanners
protected java.util.List<IUsageScanner> scanners
delegates
private java.util.List<IUsageCollector> delegates
reportTitle
private java.lang.String reportTitle
DelegatingUsageCollector
public DelegatingUsageCollector()
addScanner
public void addScanner(IUsageScanner aScanner)
getDelegates
public java.util.List<IUsageCollector> getDelegates()
setDelegates
public void setDelegates(java.util.List<IUsageCollector> delegates)
consumeEvent
public void consumeEvent(org.eclipse.mylar.context.core.InteractionEvent event,
int userId)
- Specified by:
consumeEvent
in interface IUsageCollector
getReport
public java.util.List<java.lang.String> getReport()
- Description copied from interface:
IUsageCollector
- TODO: return report as HTML
- Specified by:
getReport
in interface IUsageCollector
- Returns:
- a list corresponding to all of the lines of the report
exportAsCSVFile
public void exportAsCSVFile(java.lang.String directory)
- Description copied from interface:
IUsageCollector
- Implementors will need to generate a unique filename given the directory
in which to place the file
- Specified by:
exportAsCSVFile
in interface IUsageCollector
getReportTitle
public java.lang.String getReportTitle()
- Specified by:
getReportTitle
in interface IUsageCollector
setReportTitle
public void setReportTitle(java.lang.String reportTitle)