action = self.actions.pop(0)
self.parameters = action["parameters"]
self.current_ID = action["ID"]
self.action_name = action["name"]
l = []
for k, v in d.items():
l.append(k)
l.append(v)
l.append("")
return l
splitted = response.strip().split(": ", 1)
if len(splitted) > 1:
return splitted[1].split("\n")
else:
return []
if self.responses and self.responses[0] == expected:
if pop:
del self.responses[0]
return True
else:
return False
if self.responses and self.responses[0].startswith(expected):
if pop:
del self.responses[0]
return True
else:
return False
if isinstance(expected, list):
return self.actions and self.actions[0]["name"] in expected
else:
return self.actions and self.actions[0]["name"] == expected
if isinstance(expected, list):
return self.inputs and self.inputs[0]["name"] in expected
else:
return self.inputs and self.inputs[0]["name"] == expected
self.controller.taskname = taskname
self.actions = []
self.responses = []
self.http_clients = []
self.registered_metamodel = {}
self.inputs = []
self.finish_output_thread = False
self.modelling_operations = ['element_list', 'element_list_nice', 'types', 'read_info', 'read_attrs', 'read_defined_attrs', 'instantiate', 'delete_element', 'attr_assign', 'attr_assign_code', 'attr_delete', 'read_outgoing', 'read_incoming', 'read_association_source', 'read_association_destination', 'connections_between', 'define_attribute', 'undefine_attribute', 'all_instances', 'attr_optional', 'attr_type', 'attr_name']