How akeranen/the-one works
The ONE is an opportunistic-network simulator. Its main workflow is to configure and construct a scenario, advance simulated time and node movement, model connectivity and message routing, then expose simulation state and reports through text or graphical interfaces. The graph also preserves map-based movement, event input, connectivity models, and reporting as distinct capabilities. Evidence is limited to the README and the supplied excerpts and source index; unsampled subsystem links are omitted where their wiring is not established.
Main entry points: DTNHost.java DTN host · gui Graphical interface · World.java World scheduler · routing Routing strategies
Components 20
Scenario setup
- Settings
src/core/Settings.java - Scenario builder
src/core/SimScenario.java - Event input
src/input
Simulation runtime
- World scheduler
src/core/World.java - DTN host
src/core/DTNHost.java - Movement models
src/movement - Map and routes
src/movement/map - Coordinates and clock
src/core/Coord.java - Module communication
src/core/ModuleCommunicationBus.java
Network behavior
- Messages and listeners
src/core/Message.java - Network interfaces
src/core/NetworkInterface.java - Connectivity models
src/interfaces - Connections
src/core/Connection.java - Routing strategies
src/routing - Applications
src/applications
Interfaces and analysis
- Text UI
src/ui/DTNSimTextUI.java - Simulation UI
src/ui/DTNSimUI.java - Reports
src/report - Graphical interface
src/gui
Other components
- Simulation user
Connections 27
- Simulation user → Text UI: starts simulation
- Text UI → Simulation UI: delegates to
src/ui/DTNSimTextUI.java - Simulation UI → Scenario builder: creates scenario
src/ui/DTNSimUI.java - Scenario builder → Settings: reads settings
src/core/SimScenario.java - Scenario builder → Event input: uses event queues
src/core/SimScenario.java - Scenario builder → World scheduler: creates world
src/core/SimScenario.java - World scheduler → Event input: processes events
src/core/World.java - World scheduler → DTN host: updates hosts
src/core/World.java - DTN host → Movement models: delegates movement
src/core/DTNHost.java - DTN host → Routing strategies: delegates routing
src/core/DTNHost.java - DTN host → Network interfaces: holds interfaces
src/core/DTNHost.java - DTN host → Messages and listeners: stores messages
src/core/DTNHost.java - Movement models → Map and routes: uses map model
src/movement/MapBasedMovement.java - Network interfaces → Connectivity models: uses optimizer
src/core/NetworkInterface.java - Network interfaces → Connections: creates connections
src/core/NetworkInterface.java - Connections → Routing strategies: transfers messages
src/core/Connection.java - Routing strategies → Messages and listeners: buffers messages
src/routing/MessageRouter.java - Routing strategies → Applications: dispatches to apps
src/routing/MessageRouter.java - Simulation UI → Reports: loads reports
src/ui/DTNSimUI.java - Simulation UI → World scheduler: runs simulation
src/ui/DTNSimUI.java - Graphical interface → World scheduler: renders state
src/gui/playfield/PlayField.java - Graphical interface → DTN host: renders nodes
src/gui/playfield/PlayField.java - Graphical interface → Map and routes: renders map
src/gui/playfield/PlayField.java - Graphical interface → Messages and listeners: renders messages
src/gui/playfield/PlayField.java - Graphical interface → Routing strategies: shows routing info
src/gui/RoutingInfoWindow.java - DTN host → Module communication: publishes module state
src/core/DTNHost.java - DTN host → Coordinates and clock: tracks location
src/core/DTNHost.java