Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 inet 模块在 omnet++ 中的模拟无线传感器网络中编写一个能够在指定时间放电和充电的电池模型。
据我所知,我确实知道我需要构建一个IBattery实现来提供电池规格,也许还有充电功能以及其他一些模块/方式来开始放电和充电周期。
IBattery
一个想法是实现IPowerControl接口,但它似乎无法控制事件的类型(例如充电或放电)
IPowerControl
我应该寻找什么?我对inet源代码维度有点不知所措,迷路了……