madgui.model.match module¶
Implementation of the matching system.
Classes
|
|
|
Responsible for managing a MATCH operation. |
-
class
madgui.model.match.
Constraint
(elem, pos, axis, value)¶ Bases:
tuple
Attributes
Alias for field number 2
Alias for field number 0
Alias for field number 1
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
-
property
-
class
madgui.model.match.
Matcher
(model, rules=None)[source]¶ Bases:
object
Responsible for managing a MATCH operation.
Methods
apply
()clear
()Fill
variables
to the same length asconstraints
.match
()Match the
variables
to satisfyconstraints
.reset
()start
()stop
()Attributes
Signal<>
Signal<>
bool(x) -> bool
-
finished
¶ Signal<>
-
matched
¶ Signal<>
-
started
= False¶
-