Examples of TrustLogEvent


Examples of cu.trustGrapher.eventplayer.TrustLogEvent

     * @return The list of TrustLogEvents
     * @throws Exception The reader may throw an exception if an I/O error occurs
     */
    @Override
    protected ArrayList<TrustLogEvent> doInBackground() throws Exception {
        TrustLogEvent event = null;
        int totalLines = findTotalLines(logFile);
        ArrayList<TrustLogEvent> logEvents = new ArrayList<TrustLogEvent>(totalLines);
        loadingBar.loadingStarted(totalLines, "Log Events");
        BufferedReader logReader = new BufferedReader(new FileReader(logFile));
        skipToData(logReader);

        logEvents.add(null); //Adding an empty event the start.  This is to signify that no feedback has been given yet
        //reading logFile
        for (int i = 0; i < totalLines; i++) {
            event = new TrustLogEvent(logReader.readLine()); //Read the next line in the
            logEvents.add(event); //add this log event to the list
            for (SimAbstractGraph graph : trustGrapher.getGraphs()) {
                graph.graphConstructionEvent(event); //Build any necessary entities referenced by the event
            }
            publish("progress");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.