TrustGrapher  r52
A playabale simulator for modelling trust between agents
cu.trustGrapher.loading.LogReader Class Reference
Inheritance diagram for cu.trustGrapher.loading.LogReader:
Collaboration diagram for cu.trustGrapher.loading.LogReader:

List of all members.

Static Public Member Functions

static void startReader (TrustGrapher trustGrapher, File logFile, AreWeThereYet loadingBar)

Protected Member Functions

void done ()
ArrayList< TrustLogEventdoInBackground () throws Exception
void process (List< String > list)

Protected Attributes

TrustGrapher trustGrapher
AreWeThereYet loadingBar

Detailed Description

This takes the log file, parses it into a list of events, constructs the full graphs, and then returns the list of Events to TrustGrapher.

Author:
Andrew O'Hara

Definition at line 24 of file LogReader.java.


Member Function Documentation

ArrayList<TrustLogEvent> cu.trustGrapher.loading.LogReader.doInBackground ( ) throws Exception [protected]

Reads the logFile and parses it into a list of TrustLogEvents

Returns:
The list of TrustLogEvents
Exceptions:
ExceptionThe reader may throw an exception if an I/O error occurs

Definition at line 104 of file LogReader.java.

Here is the call graph for this function:

void cu.trustGrapher.loading.LogReader.done ( ) [protected]

Called by the background thread upon completion. Passes the log events to TrustGrapher and tell it to start the graphs

Definition at line 84 of file LogReader.java.

Here is the call graph for this function:

void cu.trustGrapher.loading.LogReader.process ( List< String >  list) [protected]

Update the loadingBar for every event that was made

Parameters:
list

Definition at line 137 of file LogReader.java.

static void cu.trustGrapher.loading.LogReader.startReader ( TrustGrapher  trustGrapher,
File  logFile,
AreWeThereYet  loadingBar 
) [static]

Creates the LogReader and runs it. Once the reader has finished parsing the events, it will call startGraph() from the TrustGrapher

Parameters:
trustGrapherNeeded to notify it that the logs have been read and parsed, and to disable the JMenuBar while loading.
logFileThe log that will be read and parsed into TrustLogEvents
loadingBarThe loading bar that will be used to display the progress of the log reading

Definition at line 50 of file LogReader.java.


Member Data Documentation

Definition at line 27 of file LogReader.java.


The documentation for this class was generated from the following file: