sub new_for {
my ($class, $hyp, $props) = @_;
$class->new(
- current_search_state => DX::SearchState->new(
- current_hypothesis => $hyp,
- alternatives => [],
- next_step => DX::Step::InvokeNextPredicate->new(
- proposition => $props->members->[0],
- ),
- propositions => $props,
- ),
+ current_search_state => DX::SearchState->new_for($hyp, $props),
);
}
has alternatives => (is => 'ro', isa => AlternativeList, required => 1);
+has is_solution_state => (is => 'ro', required => 1);
+
sub next_proposition {
my ($self, $hyp) = @_;
$hyp ||= $self->current_hypothesis;
proposition => $props->members->[0],
),
propositions => $props,
+ is_solution_state => 0,
);
}