def __init__(self, **args):
        Controller.__init__(self, **args)
        self.workspace.SetItems(farg_flags.FargFlags.left,
                                farg_flags.FargFlags.right)

        from farg.apps.bongard.codelet_families.all import CF_HorribleHack
        self.AddCodelet(family=CF_HorribleHack, urgency=100)
Example #2
0
 def __init__(self, get_input_from_flags=True, **args):
     Controller.__init__(self, **args)
     if get_input_from_flags:
         self.SetInput(farg_flags.FargFlags.sequence,
                       farg_flags.FargFlags.unrevealed_terms)
     # Add the codelet to focus on the first object.
     if self.workspace.KnownElementCount() > 0:
         self.AddCodelet(
             family=CF_FocusOnObject,
             urgency=100,
             arguments_dict=dict(focus=self.workspace.GetFirstElement()))
Example #3
0
 def __init__(self, get_input_from_flags=True, **args):
   Controller.__init__(self, **args)
   if get_input_from_flags:
     self.SetInput(farg_flags.FargFlags.sequence,
                   farg_flags.FargFlags.unrevealed_terms)
   # Add the codelet to focus on the first object.
   if self.workspace.KnownElementCount() > 0:
     self.AddCodelet(
         family=CF_FocusOnObject,
         urgency=100,
         arguments_dict=dict(focus=self.workspace.GetFirstElement()))
Example #4
0
 def __init__(self, **args):
   Controller.__init__(self, **args)
   self.workspace.InsertElements(FLAGS.sequence)
   self.unrevealed_terms = FLAGS.unrevealed_terms
Example #5
0
 def __init__(self, items=None):
   Controller.__init__(self, ui=BatchUI(controller_class=Controller))
   workspace = self.workspace = Workspace()
   self.ltm = LTMGraph(empty_ok_for_test=True)
   if items:
     workspace.InsertElements(items)
Example #6
0
 def __init__(self, **args):
     logging.info("Initializing Seqsee controller")
     Controller.__init__(self, **args)
     self.workspace.InsertElements(farg_flags.FargFlags.sequence)
     self.unrevealed_terms = farg_flags.FargFlags.unrevealed_terms
Example #7
0
 def __init__(self, **args):
   logging.info("Initializing Seqsee controller")
   Controller.__init__(self, **args)
   self.workspace.InsertElements(farg_flags.FargFlags.sequence)
   self.unrevealed_terms = farg_flags.FargFlags.unrevealed_terms
Example #8
0
 def __init__(self, items=None):
     Controller.__init__(self, ui=BatchUI(controller_class=Controller))
     workspace = self.workspace = Workspace()
     self.ltm = LTMGraph()
     if items:
         workspace.InsertElements(items)
Example #9
0
  def __init__(self, **args):
    Controller.__init__(self, **args)
    self.workspace.SetItems(farg_flags.FargFlags.left, farg_flags.FargFlags.right)

    from farg.apps.bongard.codelet_families.all import CF_HorribleHack
    self.AddCodelet(family=CF_HorribleHack, urgency=100)