Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.report
Class ReportSession

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.report.ReportSession

public class ReportSession
extends Object

A ReportSession contains all Reports from a session, which is currently based on a date.

Since:
2.5
Author:
Andreas Burchert
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
ReportSession(long timestamp)
          Constructor.
 
Method Summary
<M extends Message,R extends Report<M>>
void
addReport(R report)
          Add a Report to this session.
 com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getAllReports()
          Get all reports.
 long getId()
          Returns the the id of this session
 com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getReports(Class<? extends Message> messageType)
          Get all reports matching the given message type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportSession

public ReportSession(long timestamp)
Constructor. The timestamp is used as an identifier.

Parameters:
timestamp - the timestamp
Method Detail

getId

public long getId()
Returns the the id of this session

Returns:
the id

addReport

public <M extends Message,R extends Report<M>> void addReport(R report)
Add a Report to this session.

Parameters:
report - the report

getReports

public com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getReports(Class<? extends Message> messageType)
Get all reports matching the given message type

Parameters:
messageType - the message type
Returns:
report types mapped to reports

getAllReports

public com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getAllReports()
Get all reports.

Returns:
reports

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d