MCPcopy Create free account
hub / github.com/BabitMF/bmf / get_status

Method get_status

bmf/engine/c_engine/src/node.cpp:574–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572std::string Node::get_type() { return type_; }
573
574std::string Node::get_status() {
575 switch (state_) {
576 case NodeState::PENDING:
577 return "PENDING";
578 case NodeState::NOT_INITED:
579 return "NOT_INITED";
580 case NodeState::RUNNING:
581 return "RUNNING";
582 case NodeState::CLOSED:
583 return "CLOSE";
584 case NodeState::PAUSE_DONE:
585 return "PAUSE_DONE";
586 }
587 return "UNKNOWN";
588}
589
590void Node::set_status(NodeState state) {
591 mutex_.lock();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected