node.cpp
来自「RFID reader 语 tag 模拟器」· C++ 代码 · 共 54 行
CPP
54 行
#include "node.hpp" #include "simulator.hpp" Node::Node(const Location& location, const NodeId& nodeId) : m_location(location), m_nodeId(nodeId) { } /* Node::Node(const Node& rhs) : m_location(rhs.m_location), m_nodeId(rhs.m_nodeId) { } */ Node::~Node() { } /* NodePtr Node::clone() const { NodePtr p(new Node(*this)); return p; } */ SimTime Node::currentTime() const { // If local clock drift is desired, it could be added // here. return Simulator::instance()->currentTime(); } bool Node::scheduleEvent(EventPtr eventToSchedule, const SimTime& eventDelay) { return Simulator::instance()->scheduleEvent( eventToSchedule, eventDelay); } bool Node::cancelEvent(EventPtr eventToCancel) { return Simulator::instance()->cancelEvent(eventToCancel); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?