def set_physical_plan(self, physical_plan):
if not physical_plan:<EOL><INDENT>self.physical_plan = None<EOL>self.id = None<EOL><DEDENT>else:<EOL><INDENT>self.physical_plan = physical_plan<EOL>self.id = physical_plan.topology.id<EOL><DEDENT>self.trigger_watches()<EOL>
set physical plan