| 1 | 1 | ▶ | use Renard::Incunabula::Common::Setup; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Intertangle::Punchcard::Backend::Kiwisolver::Solver; | ||
| 3 | # ABSTRACT: Solver wrapper for Kiwisolver | ||
| 4 | 1 | $Intertangle::Punchcard::Backend::Kiwisolver::Solver::VERSION = '0.002'; | |
| 5 | 1 | ▶ | use Mu; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Graphics::Layout::Kiwisolver; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Renard::Incunabula::Common::Types qw(InstanceOf); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | has _delegate => ( | |
| 10 | is => 'ro', | ||
| 11 | isa => InstanceOf['Graphics::Layout::Kiwisolver::Solver'], | ||
| 12 | 1 | ▶ | default => method() { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 13 | 1 | Graphics::Layout::Kiwisolver::Solver->new; | |
| 14 | 1 | }, | |
| 15 | ); | ||
| 16 | |||
| 17 | 36 | ▶ | method add_constraint($constraint) { |
|
Subroutine
add_constraint: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 36 | $self->_delegate->addConstraint($constraint->_delegate); | |
| 19 | 1 | } | |
| 20 | |||
| 21 | 1 | ▶ | method update() { |
|
Subroutine
update: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | 1 | $self->_delegate->updateVariables; | |
| 23 | 1 | } | |
| 24 | |||
| 25 | 2 | ▶ | method add_edit_variable($variable, $strength) { |
|
Subroutine
add_edit_variable: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 2 | $self->_delegate->addEditVariable($variable->_delegate, $strength); | |
| 27 | 1 | } | |
| 28 | |||
| 29 | 2 | ▶ | method suggest_value($variable, $value) { |
|
Subroutine
suggest_value: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | 2 | $self->_delegate->suggestValue($variable->_delegate, $value); | |
| 31 | 1 | } | |
| 32 | |||
| 33 | 1 | 1; | |
| 34 | |||
| 35 | __END__ | ||