예제 #1
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self.setParameter('lookahead',15)
     self.setParameter('randomseed',time.time())
     self.setParameter('rerouteafter',1)
     self._lastroute=[]
     self._steps_to_reroute=0
예제 #2
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._NUM_TABU_ACTIONS = None
     self._NUM_TABU_STATES = None
     self._NUM_TABU_TRANSITIONS = None
     self._tabulist_action = None
     self._tabulist_state = None
     self._tabulist_transition = None
예제 #3
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._NUM_TABU_ACTIONS = None
     self._NUM_TABU_STATES = None
     self._NUM_TABU_TRANSITIONS = None
     self._tabulist_action = None
     self._tabulist_state = None
     self._tabulist_transition = None
예제 #4
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._guidances = []
     self._guidanceOpts = []
     self._covs = []
     self._currIndex = -1
     self._model = None
     self._filename = None
예제 #5
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._guidances = []
     self._guidanceOpts = []
     self._covs = []
     self._currIndex = -1
     self._model = None
     self._filename = None
예제 #6
0
 def __init__(self):
     GuidanceBase.__init__(self)
     # default parameters:
     self.setParameter("transitionweight", 0)
     self.setParameter("searchdepth", 10)
     self.setParameter("searchorder", "shortestfirst")
     self.setParameter("maxtransitions", 10000)
     self.setParameter("greedy", 0)
     self.setParameter("searchconstraint", "noloops")
예제 #7
0
 def __init__(self):
     GuidanceBase.__init__(self)
     # default parameters:
     self.setParameter("transitionweight", 0)
     self.setParameter("searchdepth", 10)
     self.setParameter("searchorder", "shortestfirst")
     self.setParameter("maxtransitions", 10000)
     self.setParameter("greedy", 0)
     self.setParameter("searchconstraint", "noloops")
예제 #8
0
    def __init__(self):
        GuidanceBase.__init__(self)
        self.setParameter('maxdepth',100)
        self.setParameter('mindepth',1)
        self.setParameter('randomseed',time.time())
        self._lastroute=[]
        self._steps_to_reroute=0

        # search front is a list of triplets: (score, path, coverage)
        # where score is a pair: (coverage_percentage, steps since
        # last change coverage_percentage). Thus, the bigger the
        # number of steps, the faster the final coverage_percentage is
        # achieved.
        self.search_front=[]
        self._thread_id=None
        self._front_shortened=0 # msg from markExecuted to thread
예제 #9
0
    def __init__(self):
        GuidanceBase.__init__(self)
        self.setParameter('maxdepth', 100)
        self.setParameter('mindepth', 1)
        self.setParameter('randomseed', time.time())
        self._lastroute = []
        self._steps_to_reroute = 0

        # search front is a list of triplets: (score, path, coverage)
        # where score is a pair: (coverage_percentage, steps since
        # last change coverage_percentage). Thus, the bigger the
        # number of steps, the faster the final coverage_percentage is
        # achieved.
        self.search_front = []
        self._thread_id = None
        self._front_shortened = 0  # msg from markExecuted to thread
예제 #10
0
	def __init__(self):
		GuidanceBase.__init__(self)

		self.began = 0

		# initializes the random number generator
		random.seed()
		
		# a list of suggestions
		# seach method appends a suggestion every time it makes a decision
		# about next chosen transition, and suggestAction pops suggestions
		# from the beginning of it. 
		self.suggestions = []
		
		# tells how many keywords there are in the suggestions list
		self.keywordsInSuggestions = 0
				
		# the lock is acquired before accessing the variables shared by
		# suggestAction and searcher threads
		self.lock = threading.Lock()
		
		# the suggestion event signals for a new suggestion added to the suggestions list
		self.suggestionEvent = threading.Event()
		
		# the state event signals for a new root state for search thread to start searching
		# next suggestions (search waits for this after a verification action)
		self.stateEvent = threading.Event()
		
		# is suggestAction waiting for suggestion?
		self.waitingForSuggestion = 0
		
		# is searcher thread waiting for verification?
		self.waitingForVerification = 0
		
		# The estimated delay after a keyword execution, is updated by suggestAction.
		self.keywordDelay = 0.1
예제 #11
0
    def __init__(self):
        GuidanceBase.__init__(self)

        self.began = 0

        # initializes the random number generator
        random.seed()

        # a list of suggestions
        # seach method appends a suggestion every time it makes a decision
        # about next chosen transition, and suggestAction pops suggestions
        # from the beginning of it.
        self.suggestions = []

        # tells how many keywords there are in the suggestions list
        self.keywordsInSuggestions = 0

        # the lock is acquired before accessing the variables shared by
        # suggestAction and searcher threads
        self.lock = threading.Lock()

        # the suggestion event signals for a new suggestion added to the suggestions list
        self.suggestionEvent = threading.Event()

        # the state event signals for a new root state for search thread to start searching
        # next suggestions (search waits for this after a verification action)
        self.stateEvent = threading.Event()

        # is suggestAction waiting for suggestion?
        self.waitingForSuggestion = 0

        # is searcher thread waiting for verification?
        self.waitingForVerification = 0

        # The estimated delay after a keyword execution, is updated by suggestAction.
        self.keywordDelay = 0.1
예제 #12
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._port = None
     self._manager = None
     self._iAmTheManagerStarter = False
     self._sgParams = []
예제 #13
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._port = None
     self._manager = None
     self._iAmTheManagerStarter = False
     self._sgParams = []
예제 #14
0
 def __init__(self):
     GuidanceBase.__init__(self)
예제 #15
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self.setParameter('randomseed',time.time())
예제 #16
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._stored_path = []
     self._random_select = random.Random(time.time()).choice
     self._sleep_ts_re = re.compile(r"SLEEPts.*")
예제 #17
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self.setParameter('randomseed', time.time())
예제 #18
0
 def __init__(self):
     GuidanceBase.__init__(self)
     self._stored_path=[]
     self._random_select=random.Random(time.time()).choice
     self._sleep_ts_re = re.compile(r"SLEEPts.*")
예제 #19
0
 def __init__(self):
     GuidanceBase.__init__(self)