C# 클래스 Azavea.NijPredictivePolicing.ACSAlchemist.ImportJob

Encapsulates our command line arguments, and our main 'lifecycle' of how we imagine users will interact with the app. Ensures we have files downloaded, databases created, etc.
파일 보기 프로젝트 열기: azavea/acs-alchemist 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ArgumentLine string
Arguments Azavea.NijPredictivePolicing.Common.CmdLineArg[]

보호된 프로퍼티들

프로퍼티 타입 설명
_cancelled bool
_manager Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer.AcsDataManager
_outputFolder string
_workingFolder string

공개 메소드들

메소드 설명
Cancel ( ) : void
ExecuteJob ( ) : bool

Performs our main 'lifecycle'

FindDelimAfterWhitespace ( string str, int idx ) : int

Finds the first of any of our delimiters, but makes sure that the space before the delim contains a whitespace char

ImportJob ( ) : System
IndexOf ( string str, int idx ) : int

Replaced by 'FindDelimAfterWhitespace'

IsCancelled ( ) : bool
Load ( string args ) : bool

Takes a collection of command line arguments, and parses them / loads them onto our properties. Will also accept a single filename, and treat that as if it were provided at the command line

SaveJobFile ( string filename ) : void

Saves a nicely commented job file at the location provided

UpdateProgress ( int value ) : void

Event added so we can provide some basic feedback while this is running in a background thread

메소드 상세

Cancel() 공개 메소드

public Cancel ( ) : void
리턴 void

ExecuteJob() 공개 메소드

Performs our main 'lifecycle'
public ExecuteJob ( ) : bool
리턴 bool

FindDelimAfterWhitespace() 공개 메소드

Finds the first of any of our delimiters, but makes sure that the space before the delim contains a whitespace char
public FindDelimAfterWhitespace ( string str, int idx ) : int
str string
idx int
리턴 int

ImportJob() 공개 메소드

public ImportJob ( ) : System
리턴 System

IndexOf() 공개 메소드

Replaced by 'FindDelimAfterWhitespace'
public IndexOf ( string str, int idx ) : int
str string
idx int
리턴 int

IsCancelled() 공개 메소드

public IsCancelled ( ) : bool
리턴 bool

Load() 공개 메소드

Takes a collection of command line arguments, and parses them / loads them onto our properties. Will also accept a single filename, and treat that as if it were provided at the command line
public Load ( string args ) : bool
args string
리턴 bool

SaveJobFile() 공개 메소드

Saves a nicely commented job file at the location provided
public SaveJobFile ( string filename ) : void
filename string
리턴 void

UpdateProgress() 공개 메소드

Event added so we can provide some basic feedback while this is running in a background thread
public UpdateProgress ( int value ) : void
value int
리턴 void

프로퍼티 상세

ArgumentLine 공개적으로 프로퍼티

public string ArgumentLine
리턴 string

Arguments 공개적으로 정적으로 프로퍼티

public static CmdLineArg[],Azavea.NijPredictivePolicing.Common Arguments
리턴 Azavea.NijPredictivePolicing.Common.CmdLineArg[]

_cancelled 보호되어 있는 프로퍼티

protected bool _cancelled
리턴 bool

_manager 보호되어 있는 프로퍼티

protected AcsDataManager,Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer _manager
리턴 Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer.AcsDataManager

_outputFolder 보호되어 있는 프로퍼티

protected string _outputFolder
리턴 string

_workingFolder 보호되어 있는 프로퍼티

protected string _workingFolder
리턴 string