def get_component_tasks(self, component_id):
ret = []<EOL>for task_id, comp_id in self.task_to_component_map.items():<EOL><INDENT>if comp_id == component_id:<EOL><INDENT>ret.append(task_id)<EOL><DEDENT><DEDENT>return ret<EOL>
Returns the task ids allocated for the given component id