ape.components.component.Component

class ape.components.component.Component

A base-class for Composite and Leaf

Component Constructor

__init__()

Component Constructor

Methods

__init__() Component Constructor
check_rep() abstract: Representation-check called by composite
Component.clean_up
log_error(error[, message]) Logs the error in bold red

Attributes

logger
return:A logging object.
check_rep()

abstract: Representation-check called by composite

Raise:ConfigurationError if representation invalid
close()

abstractmethod: called for Keyboard Interrupts to allow file-closing

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)
logger
Returns:A logging object.

Navigation