add is_solution_state flag on SearchState
[scpubgit/DX.git] / lib / DX / SearchState.pm
index dcfb606..ee6a1b5 100644 (file)
@@ -13,6 +13,8 @@ has propositions => (is => 'ro', isa => PropositionSequence, required => 1);
 
 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;
@@ -30,6 +32,7 @@ sub new_for {
       proposition => $props->members->[0],
     ),
     propositions => $props,
+    is_solution_state => 0,
   );
 }