How bounceur/cupcarbon works
Main System Components
a) User Interface Layer:
• Main GUI components (found in src/cupcarbon/)
• Components like ConsoleWindow, EnergyDrawWindow, MqttWindow, PythonWindow, and SenScriptWindow
b) Simulation Core Layer:
• Center this as the main processing unit
• Simulation engine (src/simulation/)
• To IoTSimulation and WisenSimulation components
c) Device Management Layer:
• Device hierarchy from src/device/
• Components like:
• Base stations
• Sensor nodes
• IoT nodes
• Mobile devices
d) Radio Communication Layer:
• Radio modules (src/radio_module/)
• Different protocols (LoRa, WiFi, ZigBee)
• Interference models
e) Scripting and Programming Layer:
• SenScript engine (src/senscript/)
• Command processing system
• To Python integration
Key Relationships to Highlight
a) Data Flow:
• How data flows from sensors through radio modules
• How simulation events propagate
b) Control Flow:
• How user actions translate to simulation events
• How scripts control device behavior
External Integrations
• OpenStreetMap integration (src/map/)
• MQTT broker connections
• External event handling system
• Use cloud symbols for external services
Supporting Systems
• Mathematical/geometric processing units
• Security components
• Logging and monitoring systems
Implementation Details
a) Use standardized symbols:
• Rectangles for processing units
• Hexagons for decision points
• Clouds for external services
• UI components: Blue
• Core simulation: Green
• Network components: Orange
• External services: Gray
• Security components: Red
c) Layer organization:
• In clear hierarchical layers
• Cross-cutting concerns
• Clear boundaries between subsystems
Technical Details
• Java3D visualization components
• OpenCL integration points
• Apache components integration
• Network protocol implementations
• Sensor unit implementations
Remember to indicate the asynchronous nature of IoT communications and show how the simulation engine handles concurrent events and multiple protocol implementations.
This architecture should emphasize the platform's ability to simulate IoT and WSN scenarios while showing the extensibility points for adding new devices, protocols, and simulation scenarios.