C# Class Encog.App.Analyst.CSV.Basic.BasicFile

Many of the Encog quant CSV processors are based upon this class. This class is not useful on its own. However, it does form the foundation for most Encog CSV file processing.
Inheritance: QuantTask
Datei anzeigen Open project: encog/encog-silverlight-core

Public Methods

Method Description
AppendSeparator ( StringBuilder line, CSVFormat format ) : void

Append a separator. The separator will only be appended if the line is not empty. This is used to build comma(or other) separated lists.

BasicFile ( ) : System

Construct the object, and set the defaults.

PerformBasicCounts ( ) : void

Perform a basic analyze of the file. This method is used mostly internally.

PrepareOutputFile ( FileInfo outputFile ) : StreamWriter

Prepare the output file, write headers if needed.

ReadHeaders ( ReadCSV csv ) : void

Read the headers from a CSV file. Used mostly internally.

ReportDone ( String task ) : void

Report that we are done. Used internally.

ReportDone ( bool isAnalyzing ) : void

Report that we are done. Used internally.

RequestStop ( ) : void

Request a stop.

ResetStatus ( ) : void

Reset the reporting stats. Used internally.

ShouldStop ( ) : bool
ToString ( ) : String
UpdateStatus ( String task ) : void

Report the current status.

UpdateStatus ( bool isAnalyzing ) : void

Update the status. Used internally.

ValidateAnalyzed ( ) : void

Validate that the file has been analyzed. Throw an error, if it has not.

WriteRow ( StreamWriter tw, LoadedRow row ) : void

Write a row to the output file.

Method Details

AppendSeparator() public static method

Append a separator. The separator will only be appended if the line is not empty. This is used to build comma(or other) separated lists.
public static AppendSeparator ( StringBuilder line, CSVFormat format ) : void
line StringBuilder The line to append to.
format Encog.Util.CSV.CSVFormat The format to use.
return void

BasicFile() public method

Construct the object, and set the defaults.
public BasicFile ( ) : System
return System

PerformBasicCounts() public method

Perform a basic analyze of the file. This method is used mostly internally.
public PerformBasicCounts ( ) : void
return void

PrepareOutputFile() public method

Prepare the output file, write headers if needed.
public PrepareOutputFile ( FileInfo outputFile ) : StreamWriter
outputFile System.IO.FileInfo The name of the output file.
return System.IO.StreamWriter

ReadHeaders() public method

Read the headers from a CSV file. Used mostly internally.
public ReadHeaders ( ReadCSV csv ) : void
csv Encog.Util.CSV.ReadCSV The CSV file to read from.
return void

ReportDone() public method

Report that we are done. Used internally.
public ReportDone ( String task ) : void
task String The message.
return void

ReportDone() public method

Report that we are done. Used internally.
public ReportDone ( bool isAnalyzing ) : void
isAnalyzing bool True if we are analyzing.
return void

RequestStop() public method

Request a stop.
public RequestStop ( ) : void
return void

ResetStatus() public method

Reset the reporting stats. Used internally.
public ResetStatus ( ) : void
return void

ShouldStop() public method

public ShouldStop ( ) : bool
return bool

ToString() public final method

public final ToString ( ) : String
return String

UpdateStatus() public method

Report the current status.
public UpdateStatus ( String task ) : void
task String The string to report.
return void

UpdateStatus() public method

Update the status. Used internally.
public UpdateStatus ( bool isAnalyzing ) : void
isAnalyzing bool True if we are in the process of analyzing.
return void

ValidateAnalyzed() public method

Validate that the file has been analyzed. Throw an error, if it has not.
public ValidateAnalyzed ( ) : void
return void

WriteRow() public method

Write a row to the output file.
public WriteRow ( StreamWriter tw, LoadedRow row ) : void
tw System.IO.StreamWriter The output stream.
row LoadedRow The row to write out.
return void