ape.plugins.apeplugin.OperatorConfiguration

class ape.plugins.apeplugin.OperatorConfiguration(source)

Extracts arguments for operators from the configuration

Operator Configuration constructor

Param:
  • source: name of configuration file
__init__(source)

Operator Configuration constructor

Param:
  • source: name of configuration file

Methods

__init__(source) Operator Configuration constructor
initialize_file_storage() This has to be called before the plugins are built so the path will be set
save_configuration(filename) saves the configuration map to disk

Attributes

configspec OperatorConfigspec
configuration ConfigObj built from source
countdown_timer CountdownTimer built from the configuration for the operator
operation_configurations Generator of Operation Configurations
operation_timer A countdown timer for operations to share (None if end_time not set)
operator Operator composite built from the configuration
quartermaster QuarterMaster built with external_modules
settings SETTINGS section from the configuration
initialize_file_storage()

This has to be called before the plugins are built so the path will be set

Postcondition:file-storage singleton with sub-folder from default section added as path
log_error(error, message='')

Logs the error in bold red

Param:
  • error: error type (prefix in red and bold)
  • message: descriptive message (red but not bold)
save_configuration(filename)

saves the configuration map to disk

Param:
  • filename: name of original file to save to disk
configspec

OperatorConfigspec

configuration

ConfigObj built from source

countdown_timer

CountdownTimer built from the configuration for the operator

logger
Returns:A logging object.
operation_configurations

Generator of Operation Configurations

operation_timer

A countdown timer for operations to share (None if end_time not set)

operator

Operator composite built from the configuration

quartermaster

QuarterMaster built with external_modules

Side-effect:file storage singleton initialized
settings

SETTINGS section from the configuration

Navigation