Package concurrent_tree_crawler :: Module abstract_cmdln_navigators_creator :: Class AbstractCmdLnNavigatorsCreator
[hide private]
[frames] | no frames]

Class AbstractCmdLnNavigatorsCreator

source code


Instance Methods [hide private]
list of AbstractTreeNavigators
create(self, args, navigators_count)
Create navigators based on arguments from command-line.
source code
 
fill_parser(self, parser)
Fill the given parser object with command-line arguments needed to initialize navigators which are created in create method.
source code
 
on_exit(self)
This method is called before the program exit.
source code
Method Details [hide private]

create(self, args, navigators_count)

source code 

Create navigators based on arguments from command-line.

Parameters:
  • args (argparse.Namespace) - result of calling the parser.parse_args() function. Contains results of parsing of the arguments defined in fill_parser method.
  • navigators_count - number of AbstractTreeNavigators to create
Returns: list of AbstractTreeNavigators
navigators that will be used by the crawler threads. Each navigator will be used by a single thread.

fill_parser(self, parser)

source code 

Fill the given parser object with command-line arguments needed to initialize navigators which are created in create method.

Parameters:
  • parser (argparse.ArgumentParser)

on_exit(self)

source code 

This method is called before the program exit. This is the place to do some cleanup.