예제 #1
0
 def prepareForRun(self):
     nonexit="Nonexisting string"
     if self.getParameter("help", nonexit) != nonexit:
         print __doc__
         raise Exception("Asked only for help")
     GuidanceBase.prepareForRun(self)
     if len(self._requirements) != 1 :
         raise Exception("Needs exactly one requirement")
     if not self._testmodel :
         raise Exception("Model should be given")
     self._stored_path=[]
     self._to_sleep_actions =\
                self._testmodel.matchedActions(set([self._sleep_ts_re]))
     self._last_go_back = False
     self._search_state = GoodState
     self._forbiden_set = set()
     self.log("Wormguidance ready for rocking")
예제 #2
0
 def prepareForRun(self):
     nonexit = "Nonexisting string"
     if self.getParameter("help", nonexit) != nonexit:
         print __doc__
         raise Exception("Asked only for help")
     GuidanceBase.prepareForRun(self)
     if len(self._requirements) != 1:
         raise Exception("Needs exactly one requirement")
     if not self._testmodel:
         raise Exception("Model should be given")
     self._stored_path = []
     self._to_sleep_actions =\
                self._testmodel.matchedActions(set([self._sleep_ts_re]))
     self._last_go_back = False
     self._search_state = GoodState
     self._forbiden_set = set()
     self.log("Wormguidance ready for rocking")
예제 #3
0
 def prepareForRun(self):
     GuidanceBase.prepareForRun(self)
     self.search_front_lock=thread.allocate_lock()
예제 #4
0
 def prepareForRun(self):
     GuidanceBase.prepareForRun(self)
     self.search_front_lock = thread.allocate_lock()