madgui.model.match module

Implementation of the matching system.

Classes

Constraint(elem, pos, axis, value)

Matcher(model[, rules])

Responsible for managing a MATCH operation.

MatchTransform()

class madgui.model.match.Constraint(elem, pos, axis, value)

Bases: tuple

Attributes

axis

Alias for field number 2

elem

Alias for field number 0

pos

Alias for field number 1

value

Alias for field number 3

property axis

Alias for field number 2

property elem

Alias for field number 0

property pos

Alias for field number 1

property value

Alias for field number 3

class madgui.model.match.MatchTransform[source]

Bases: object

class madgui.model.match.Matcher(model, rules=None)[source]

Bases: object

Responsible for managing a MATCH operation.

Methods

apply()

clear()

detect_variables()

Fill variables to the same length as constraints.

match()

Match the variables to satisfy constraints.

next_best_variable()

reset()

start()

stop()

Attributes

finished

Signal<>

matched

Signal<>

started

bool(x) -> bool

apply()[source]
clear()[source]
detect_variables()[source]

Fill variables to the same length as constraints.

finished

Signal<>

match()[source]

Match the variables to satisfy constraints.

matched

Signal<>

next_best_variable()[source]
reset()[source]
start()[source]
started = False
stop()[source]