6 """Contains methods used to transform Objects into InputProgram."""
10 if PDDLMapper.__instance:
11 raise(
"Instance already exists")
12 super(PDDLMapper, self).__init__()
16 """Return the instance of PDDLMapper."""
21 def _get_actual_string(self, predicate, parameters_map):
24 def _get_id(self, action):
25 """Return a string representing a predicate."""
26 if action.index(
'(') != 0:
27 raise (
"Wrong format")
29 return action[1:action.index(
" ")]
31 def _get_param(self, action):
32 """Return a set of parameters."""
33 return PDDLParser.parse(action).get_parameters()