C# 클래스 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.
상속: QuantTask
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
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.

메소드 상세

AppendSeparator() 공개 정적인 메소드

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.
리턴 void

BasicFile() 공개 메소드

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

PerformBasicCounts() 공개 메소드

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

PrepareOutputFile() 공개 메소드

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

ReadHeaders() 공개 메소드

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.
리턴 void

ReportDone() 공개 메소드

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

ReportDone() 공개 메소드

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

RequestStop() 공개 메소드

Request a stop.
public RequestStop ( ) : void
리턴 void

ResetStatus() 공개 메소드

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

ShouldStop() 공개 메소드

public ShouldStop ( ) : bool
리턴 bool

ToString() 공개 최종 메소드

public final ToString ( ) : String
리턴 String

UpdateStatus() 공개 메소드

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

UpdateStatus() 공개 메소드

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

ValidateAnalyzed() 공개 메소드

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

WriteRow() 공개 메소드

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.
리턴 void