org.eclipse.mylar.internal.monitor.reports
Class ReportGenerator
java.lang.Object
org.eclipse.mylar.internal.monitor.reports.ReportGenerator
public class ReportGenerator
- extends java.lang.Object
- Author:
- Mik Kersten
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUMMARY_SEPARATOR
public static final java.lang.String SUMMARY_SEPARATOR
- See Also:
- Constant Field Values
logger
private InteractionEventLogger logger
lastParsedSummary
private UsageStatisticsSummary lastParsedSummary
userIds
private java.util.Set<java.lang.Integer> userIds
collectors
private java.util.List<IUsageCollector> collectors
scanners
private java.util.List<IUsageScanner> scanners
allUserEvents
private java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.SortedSet<org.eclipse.mylar.context.core.InteractionEvent>>> allUserEvents
saveAllUserEvents
private boolean saveAllUserEvents
ReportGenerator
public ReportGenerator(InteractionEventLogger logger,
IUsageCollector collector,
boolean saveAllUserEvents)
ReportGenerator
public ReportGenerator(InteractionEventLogger logger,
java.util.List<IUsageCollector> collectors,
boolean saveAllUserEvents)
ReportGenerator
public ReportGenerator(InteractionEventLogger logger,
IUsageCollector collector)
ReportGenerator
public ReportGenerator(InteractionEventLogger logger,
java.util.List<IUsageCollector> collectors)
ReportGenerator
public ReportGenerator(InteractionEventLogger logger,
java.util.List<IUsageCollector> collectors,
java.util.List<IUsageScanner> scanners)
setScanners
public void setScanners(java.util.List<IUsageScanner> scanners)
getStatisticsFromInteractionHistory
public UsageStatisticsSummary getStatisticsFromInteractionHistory(java.io.File source)
getStatisticsFromInteractionHistories
public UsageStatisticsSummary getStatisticsFromInteractionHistories(java.util.List<java.io.File> sources)
getLastParsedSummary
public UsageStatisticsSummary getLastParsedSummary()
getUserId
private int getUserId(java.io.File source)
- Assuming the file naming convention of --usage--.zip
getPhase
private java.lang.String getPhase(java.io.File source)
getCleanOriginId
public static java.lang.String getCleanOriginId(org.eclipse.mylar.context.core.InteractionEvent event)
formatPercentage
public static java.lang.String formatPercentage(float percentage)
getCollectors
public java.util.List<IUsageCollector> getCollectors()
getAllUsers
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.SortedSet<org.eclipse.mylar.context.core.InteractionEvent>>> getAllUsers()