panobbgo.core.HeuristicSubprocess#

class panobbgo.core.HeuristicSubprocess(strategy: StrategyBase, name: str | None = None, cap: int | None = None)[source]#

This Heuristic is a subclass of Heuristic, which is additionally starting a subprocess, which communicates with the main thread via a pipe in a blocking communication scheme.

Parameters:

@type strategy: StrategyBase

__init__(strategy: StrategyBase, name: str | None = None, cap: int | None = None) → None[source]#
Parameters:

@type strategy: StrategyBase

Methods

__init__(strategy[, name, cap])

check_dependencies(analyzers, heuristics)

This method is called by the core initialization to assess, if the dependencies for the given module are met.

clear_output()

emit(points)

This is used to send out new search points for evaluation.

get_points([limit])

Drain the output queue until limit points are removed or it is empty.

subprocess(pipe)

overwrite this pipe.recv() & pipe.send() loop and compute something in between.

Attributes

active

This is queried by the strategy to determine, if it should still consider it.

eventbus

name

The module's name.

problem

results

strategy