|
| | World (std::uint64_t seed) |
| | An empty world; seed derives every random stream in it.
|
| |
| void | setArea (double x, double y, double z) |
| | Field size in metres (z > 0 enables altitude).
|
| |
| void | setDiskChannel (double range) |
| | Unit-disk links of radius range metres.
|
| |
| void | setUrbanChannel (double range, int blocksX, int blocksY, double streetWidth) |
| | Unit disk cut by the buildings of a blocksX x blocksY street grid.
|
| |
| void | setIslChannel () |
| | Links only where addIslLink() says, delay tracking distance.
|
| |
| void | addIslLink (int a, int b) |
| | Add an inter-satellite link (ChannelKind::Isl).
|
| |
| void | setBitrate (double bps) |
| | Transmitter bit rate (default 2 Mbit/s).
|
| |
| void | setLossProbability (double p) |
| | Independent per-reception loss probability (default 0).
|
| |
| int | addNode (double x, double y, double z) |
| | Add a node at (x, y, z); returns its address.
|
| |
| void | setMobility (int node, const Mobility &m) |
| | Give node a mobility model (Manhattan snaps it to an intersection).
|
| |
| int | addFlow (int src, int dst, double rate, double start, double stop) |
| | Add a CBR flow; returns its index.
|
| |
| anthocnet::core::Config & | config () |
| | The protocol Config every node is built with – the core defaults.
|
| |
| void | start () |
| | Build the nodes' core logic and arm their timers and the flows.
|
| |
| void | advanceTo (double t) |
| | Process every event up to simulated time t (starts if needed).
|
| |
| double | now () const |
| | Current simulated time (s).
|
| |
| std::uint64_t | seed () const |
| | The seed this world was built from.
|
| |
| void | moveNode (int node, double x, double y, double z) |
| | Drag node to (x, y, z) and pin it there (it stops moving).
|
| |
| void | setNodeUp (int node, bool up) |
| | Switch node off (its held packets are dropped) or back on.
|
| |
| void | cutIslLink (int a, int b) |
| | Remove an inter-satellite link.
|
| |
| int | nodeCount () const |
| | Number of nodes.
|
| |
| Vec3 | position (int node) const |
| | Where node is now.
|
| |
| bool | nodeUp (int node) const |
| | Whether node is switched on.
|
| |
| bool | linkUp (int a, int b) const |
| | Whether a and b can hear each other now.
|
| |
| const Node & | node (int i) const |
| | Node i (for read-only inspection of its core state).
|
| |
| const std::vector< Flow > & | flows () const |
| | The flows and their running totals.
|
| |
| int | pendingCount (int node) const |
| | Data packets node holds waiting for a route.
|
| |
| const std::vector< LogEvent > & | log () const |
| | Events since the last clearLog().
|
| |
| void | clearLog () |
| | Forget the logged events (the front end drains them every frame).
|
| |
| std::uint64_t | antTransmissions () const |
| | Ant transmissions so far (control overhead).
|
| |
| int | urbanBlocksX () const |
| | Street grid blocks along x (Urban).
|
| |
| int | urbanBlocksY () const |
| | Street grid blocks along y (Urban).
|
| |
| double | streetWidth () const |
| | Street width in metres (Urban).
|
| |
| double | range () const |
| | Radio range in metres (Disk, Urban).
|
| |
| ChannelKind | channel () const |
| | The link rule in use.
|
| |
| Vec3 | area () const |
| | Field size in metres.
|
| |
The whole simulation: nodes, radio, mobility, traffic and the event queue.
Definition at line 221 of file sim.h.