MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / _reset_gate_state

Method _reset_gate_state

masfactory/core/node.py:261–265  ·  view source on GitHub ↗

Reset node gate and all incoming edge gates to open.

(self)

Source from the content-addressed store, hash-verified

259 for out_edge in self.out_edges:
260 out_edge.close()
261 def _reset_gate_state(self):
262 """Reset node gate and all incoming edge gates to open."""
263 self._gate = Gate.OPEN
264 for in_edge in self.in_edges:
265 in_edge.open()
266 @masf_hook(Hook.EXECUTE)
267 def execute(self, outer_env:dict[str,object]|None=None):
268 """Execute one node step."""

Callers 2

executeMethod · 0.95
executeMethod · 0.80

Calls 1

openMethod · 0.80

Tested by

no test coverage detected