org.diyefi.openlogviewer.decoder
Class AbstractDecoder

java.lang.Object
  extended by org.diyefi.openlogviewer.decoder.AbstractDecoder
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CSVTypeLog, FreeEMSBin

public abstract class AbstractDecoder
extends Object
implements Runnable

Typical constructor for this class would look like this
public CSVTypeLog(File f) {
this.setLogFile(f);
this.setDecodedLog(new GenericLog());
this.setT(new Thread(this, "CSV Type Log Loading"));
this.getT().setPriority(Thread.MAX_PRIORITY);
this.getT().start();
}

Author:
Bryan Harris

Constructor Summary
AbstractDecoder()
           
 
Method Summary
 GenericLog getDecodedLog()
          used for getting the decided log for injection to the main pieces of the program that will use it
 File getLogFile()
          get the log File
 Thread getT()
          get the thread, use this if you would like to give the thread a name such as "TYPEOFLOG Thread"
can also be used to set the thread priority after initialization of all variables required by the extended class you MUST call:
this.getT().start();
 void setDecodedLog(GenericLog decodedLog)
          sets the GenericLog
 void setLogFile(File logFile)
          set the log File
 void setT(Thread t)
          set the Thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

AbstractDecoder

public AbstractDecoder()
Method Detail

getDecodedLog

public final GenericLog getDecodedLog()
used for getting the decided log for injection to the main pieces of the program that will use it

Returns:
GenericLog

setDecodedLog

public final void setDecodedLog(GenericLog decodedLog)
sets the GenericLog

Parameters:
decodedLog -

getLogFile

public final File getLogFile()
get the log File

Returns:
File

setLogFile

public final void setLogFile(File logFile)
set the log File

Parameters:
logFile -

getT

public final Thread getT()
get the thread, use this if you would like to give the thread a name such as "TYPEOFLOG Thread"
can also be used to set the thread priority after initialization of all variables required by the extended class you MUST call:
this.getT().start();

Returns:
the thread that this decoder is running in.

setT

public final void setT(Thread t)
set the Thread

Parameters:
t -


Copyright © 2011 DIYEFI.org. All Rights Reserved.