C# Class 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.
Afficher le fichier Open project: azavea/acs-alchemist Class Usage Examples

Méthodes publiques

Свойство Type Description
ArgumentLine string
Arguments Azavea.NijPredictivePolicing.Common.CmdLineArg[]

Protected Properties

Свойство Type Description
_cancelled bool
_manager Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer.AcsDataManager
_outputFolder string
_workingFolder string

Méthodes publiques

Méthode Description
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

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

ExecuteJob() public méthode

Performs our main 'lifecycle'
public ExecuteJob ( ) : bool
Résultat bool

FindDelimAfterWhitespace() public méthode

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
Résultat int

ImportJob() public méthode

public ImportJob ( ) : System
Résultat System

IndexOf() public méthode

Replaced by 'FindDelimAfterWhitespace'
public IndexOf ( string str, int idx ) : int
str string
idx int
Résultat int

IsCancelled() public méthode

public IsCancelled ( ) : bool
Résultat bool

Load() public méthode

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
Résultat bool

SaveJobFile() public méthode

Saves a nicely commented job file at the location provided
public SaveJobFile ( string filename ) : void
filename string
Résultat void

UpdateProgress() public méthode

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

Property Details

ArgumentLine public_oe property

public string ArgumentLine
Résultat string

Arguments public_oe static_oe property

public static CmdLineArg[],Azavea.NijPredictivePolicing.Common Arguments
Résultat Azavea.NijPredictivePolicing.Common.CmdLineArg[]

_cancelled protected_oe property

protected bool _cancelled
Résultat bool

_manager protected_oe property

protected AcsDataManager,Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer _manager
Résultat Azavea.NijPredictivePolicing.ACSAlchemistLibrary.Transfer.AcsDataManager

_outputFolder protected_oe property

protected string _outputFolder
Résultat string

_workingFolder protected_oe property

protected string _workingFolder
Résultat string