The code is compilable using bazel
.
The .devcontainer
directory creates a docker container that installs bazelisk
which is a friendly launcher for Bazel. You can run the same build commands using bazel
or bazelisk
.
-
Compile everythin:
bazelisk build src/...
-
Run tests
bazelisk test src:all \ --test_output=all \ --cache_test_results=no \ --nouse_action_cache
-
Clean Bazel cache
bazelisk clean
- Hedron's Compile Commands Extractor for Bazel: This build rule adds a
compile_commands.json
file and anexternal
directory to the Bazel workspace directory so that the IDE works better with the dependency recovery.bazelisk run @hedron_compile_commands//:refresh_all
Node
class represents a point in space that breakdown has happened.NodeManager
class is responsible for creating newnodes
as the simulation progresses.- This class depends on
Node
class andRandomPositionGenerator
class.
- This class depends on
RandomPositionGenerator
creates random positions for breakdown locations.BreakdownDetector
is responsible to detect breakdowns