Implement the ‘world state’, you’ll be adding/moving devices, adding/removing satellites, and printing out where objects are in the world,
Simulation
A simulation is an incremental process starting with an initial world state, say WorldState_00. We add a specified time interval of 1 minute and calculate the new positions of all the satellites after the minute. We then go and update all the connections accordingly to derive the next world state WorldState_01. Similarly, we derive WorldState_02 from WorldState_01, WorldState_03 from WorldState_02, and so on. This act of feeding a world state into the next forms a sort of state machine, akin to Conway’s Game of Life in a way.
There are three tasks:
- Implement the ‘world state’, you’ll be adding/moving devices, adding/removing satellites, and printing out where objects are in the world, you WON’T be simulating them yet.
- Implement activation periods (where devices try to connect to satellites) and simulating the ‘world state’ i.e. moving the satellites around, and updating connections accordingly.
- Implement special devices.
In this problem, we are going to have to make some assumptions. We will assume that:
We will only look at a single ring.
The ring is hollow.
Its radius is 3000 metres / 3 kilometres ( r ).
The ring does not rotate.
Answer preview for Implement the ‘world state’, you’ll be adding/moving devices, adding/removing satellites, and printing out where objects are in the world,
487 Words