Ejemplo n.º 1
0
 def __init__(self, domain, problem):
   """
   Constructor
   """
   p = Parser(domain, problem)
   self.actions, self.propositions = p.parseActionsAndPropositions()	  # list of all the actions and list of all the propositions                                            
   self.initialState, self.goal = p.pasreProblem() 				            # the initial state and the goal state are lists of propositions                                            
   self.createNoOps() 											                            # creates noOps that are used to propagate existing propositions from one layer to the next
   PlanGraphLevel.setActions(self.actions)
   PlanGraphLevel.setProps(self.propositions)
   self._expanded = 0
Ejemplo n.º 2
0
 def __init__(self, domain, problem):
   """
   Constructor
   """
   p = Parser(domain, problem)
   self.actions, self.propositions = p.parseActionsAndPropositions()     # list of all the actions and list of all the propositions                                            
   self.initialState, self.goal = p.pasreProblem()                             # the initial state and the goal state are lists of propositions                                            
   self.createNoOps()                                                                       # creates noOps that are used to propagate existing propositions from one layer to the next
   PlanGraphLevel.setActions(self.actions)
   PlanGraphLevel.setProps(self.propositions)
   self._expanded = 0
Ejemplo n.º 3
0
	def __init__(self,domain, problem):
		#Constructor de la clase
		self.independentActions = set()
		self.noGoods = []
		self.graph = []
		p = Parser(domain, problem)
		self.actions, self.propositions = p.parseActionsAndPropositions() #Listado de todas las acciones y estados
		self.initialState, self.goal = p.pasreProblem()	#El estado iniacial y el objetivo (que son una lista de estados)
		self.createNoOps() #Crea el noOps que se usa para propagar estados de una capa a la siguiente
		self.independent() #Crea el listado de acciones independent y actualiza self.independentActions
		PlanGraphLevel.setIndependentActions(self.independentActions)
		PlanGraphLevel.setActions(self.actions)
		PlanGraphLevel.setProps(self.propositions)
Ejemplo n.º 4
0
 def __init__(self,domain, problem):
   """
   Constructor
   """
   self.independentActions = []
   self.noGoods = []
   self.graph = []
   p = Parser(domain, problem)
   self.actions, self.propositions = p.parseActionsAndPropositions()   # list of all the actions and list of all the propositions
   self.initialState, self.goal = p.pasreProblem() 					# the initial state and the goal state are lists of propositions
   self.createNoOps() 													# creates noOps that are used to propagate existing propositions from one layer to the next
   self.independent() 													# creates independent actions list and updates self.independentActions
   PlanGraphLevel.setIndependentActions(self.independentActions)
   PlanGraphLevel.setActions(self.actions)
   PlanGraphLevel.setProps(self.propositions)
Ejemplo n.º 5
0
 def __init__(self,domain, problem):
     """
     Constructor
     """
     self.independentActions = []
     self.noGoods = []
     self.graph = []
     p = Parser(domain, problem)
     self.actions, self.propositions = p.parseActionsAndPropositions()   # list of all the actions and list of all the propositions
     self.initialState, self.goal = p.pasreProblem()                                     # the initial state and the goal state are lists of propositions
     self.createNoOps()                                                                                                  # creates noOps that are used to propagate existing propositions from one layer to the next
     self.independent()                                                                                                  # creates independent actions list and updates self.independentActions
     PlanGraphLevel.setIndependentActions(self.independentActions)
     PlanGraphLevel.setActions(self.actions)
     PlanGraphLevel.setProps(self.propositions)