![]() |
KENSv3
KAIST Educational Network System
|
NetworkSystem is a kind of System which has extensions for handling Packet network. More...
#include <E_Networking.hpp>
Public Member Functions | |
std::pair< std::shared_ptr< Wire >, std::pair< int, int > > | addWire (NetworkModule &left, NetworkModule &right, Time propagationDelay=1000000, Size bps=1000000000UL, bool limit_speed=true) |
Size | getWireSpeed (const ModuleID moduleID) |
![]() | |
System () | |
Nothing is needed to construct a System. | |
void | run (Time till) |
Execute all registered Module. Virtual clock will move to the end of the simulation. More... | |
Time | getCurrentTime () |
virtual void | addRunnable (std::shared_ptr< Runnable > runnable) final |
Register a Runnable interface to this System. More... | |
virtual void | delRunnable (std::shared_ptr< Runnable > runnable) final |
Unregister a Runnable interface to this System. More... | |
template<typename T , typename... Args> | |
std::shared_ptr< T > | addModule (Args &&...args) |
std::string | getModuleName (const ModuleID moduleID) |
friend | Module::Module (System &system) |
Additional Inherited Members | |
![]() | |
ModuleID | lookupModuleID (Module &module) |
![]() | |
std::unordered_map< ModuleID, std::shared_ptr< Module > > | registeredModule |
NetworkSystem is a kind of System which has extensions for handling Packet network.