Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 502 Bytes

File metadata and controls

24 lines (20 loc) · 502 Bytes

Soloen-Electric-Meter-System-Simulation

I. Design:

  • Electric Meter CPU uses C++ as its embedded language. Then, data structures in this simulation are inspired by C++ data structures, e.g., Struct, List,...

  • Data structure of the practical packet:

struct E_LevelID {
	int level;
	int id;
}

struct E_NodeID {
	E_LevelID* levelID;
	string iPAddress;
}

struct E_Packet {
	E_NodeID* startingNodeID;
	E_NodeID* destinationNodeID;
	string: data;
	E_NodeID* routing;
}