org.eclipse.mylar.internal.monitor.reports.collectors
Class CommandUsageCollector

java.lang.Object
  extended by org.eclipse.mylar.internal.monitor.reports.collectors.CommandUsageCollector
All Implemented Interfaces:
IUsageCollector

public class CommandUsageCollector
extends java.lang.Object
implements IUsageCollector

Author:
Mik Kersten and Leah Findlater

Field Summary
private  InteractionByTypeSummary commands
           
private  java.util.Set<java.lang.Integer> userIdSet
           
 
Constructor Summary
CommandUsageCollector()
           
 
Method Summary
 void consumeEvent(org.eclipse.mylar.context.core.InteractionEvent event, int userId)
           
 void exportAsCSVFile(java.lang.String directoryName)
          Implementors will need to generate a unique filename given the directory in which to place the file
 InteractionByTypeSummary getCommands()
           
 java.util.List<java.lang.String> getReport()
          TODO: return report as HTML
 java.lang.String getReportTitle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

private InteractionByTypeSummary commands

userIdSet

private java.util.Set<java.lang.Integer> userIdSet
Constructor Detail

CommandUsageCollector

public CommandUsageCollector()
Method Detail

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

getReportTitle

public java.lang.String getReportTitle()
Specified by:
getReportTitle in interface IUsageCollector

exportAsCSVFile

public void exportAsCSVFile(java.lang.String directoryName)
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

getCommands

public InteractionByTypeSummary getCommands()