TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Static Public Member Functions | |
static void | startReader (TrustGrapher trustGrapher, File logFile, AreWeThereYet loadingBar) |
Protected Member Functions | |
void | done () |
ArrayList< TrustLogEvent > | doInBackground () throws Exception |
void | process (List< String > list) |
Protected Attributes | |
TrustGrapher | trustGrapher |
AreWeThereYet | loadingBar |
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.
Definition at line 24 of file LogReader.java.
ArrayList<TrustLogEvent> cu.trustGrapher.loading.LogReader.doInBackground | ( | ) | throws Exception [protected] |
Reads the logFile and parses it into a list of TrustLogEvents
Exception | The reader may throw an exception if an I/O error occurs |
Definition at line 104 of file LogReader.java.
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.
void cu.trustGrapher.loading.LogReader.process | ( | List< String > | list | ) | [protected] |
Update the loadingBar for every event that was made
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
trustGrapher | Needed to notify it that the logs have been read and parsed, and to disable the JMenuBar while loading. |
logFile | The log that will be read and parsed into TrustLogEvents |
loadingBar | The loading bar that will be used to display the progress of the log reading |
Definition at line 50 of file LogReader.java.
AreWeThereYet cu.trustGrapher.loading.LogReader.loadingBar [protected] |
Definition at line 27 of file LogReader.java.
Definition at line 26 of file LogReader.java.