|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReportService
Report service interface
Method Summary | ||
---|---|---|
|
addReport(R report)
Adds a report |
|
void |
addReportListener(ReportListener<?,?> listener)
Adds a report listener |
|
void |
deleteAllReports()
Deletes all reports. |
|
Collection<ReportSession> |
getAllSessions()
Get all saved sessions. |
|
com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> |
getCurrentReports()
Get all current reports. |
|
long |
getCurrentSessionDescription()
Get the current session description. |
|
com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> |
getReports(Class<? extends Message> messageType)
Get all reports matching the given message type |
|
void |
loadReport(File file)
Load a specific report log file. |
|
void |
loadReportsOnStartup()
Try to reload previous saved reports and their session at program startup. |
|
void |
removeReportListener(ReportListener<?,?> listener)
Removes a report listener |
|
boolean |
saveCurrentReports(File file)
Saves all reports from ReportService to a specific file. |
|
void |
saveReportsOnShutdown()
Saves all reports with there corresponding session on program shutdown. |
|
void |
updateCurrentSessionDescription()
Update the session description. |
Method Detail |
---|
<M extends Message,R extends Report<M>> void addReport(R report)
M
- the message typeR
- the report typereport
- the report to addvoid addReportListener(ReportListener<?,?> listener)
listener
- the report listener to addvoid removeReportListener(ReportListener<?,?> listener)
listener
- the report listener to removecom.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getReports(Class<? extends Message> messageType)
messageType
- the message type
com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getCurrentReports()
void deleteAllReports()
boolean saveCurrentReports(File file) throws IOException
ReportService
to a specific file.
file
- the file to save
IOException
- an exception if IO failsCollection<ReportSession> getAllSessions()
void loadReportsOnStartup()
void saveReportsOnShutdown()
void loadReport(File file) throws org.eclipse.jface.bindings.keys.ParseException
file
- report log file
org.eclipse.jface.bindings.keys.ParseException
- if a parse error
occurredlong getCurrentSessionDescription()
void updateCurrentSessionDescription()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |