45.3 kB
carolsoto's picture
// Simulation state const simulation = { running: false, paused: false, intervalId: null, speed: 500, // ms per round // Parameters totalNodes: 100, maxRounds: 100, initialEnergy: 0.45, clusterHeads: 10, // Current state currentRound: 0, liveNodes: 100, deadNodes: Array(100).fill(false), energyLevels: 0.45, throughput: 0, nodePositions: [], baseStationPosition: [0.5, 0.5], // Add this line to track cluster heads clusterHeadNodes: [], // ... (المزيد من الخصائص) }; - Initial Deployment
17c6548 verified