aws-samples / aws-ambit-scenario-designer-ue4
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 326 units with 11,034 lines of code in units (81.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (839 lines of code)
    • 8 medium complex units (1,662 lines of code)
    • 30 simple units (3,252 lines of code)
    • 287 very simple units (5,281 lines of code)
0% | 7% | 15% | 29% | 47%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp0% | 7% | 15% | 30% | 46%
h0% | 0% | 0% | 0% | 100%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Ambit/Source/AWSUE4Module/Private0% | 74% | 0% | 3% | 22%
Ambit/Source/Ambit/Utils0% | 0% | 56% | 13% | 29%
Ambit/Source/Ambit/Mode0% | 0% | 6% | 32% | 60%
Ambit/Source/Ambit/Actors0% | 0% | 6% | 49% | 44%
Ambit/Source/Ambit/Vehicle0% | 0% | 38% | 0% | 61%
Ambit/Source/AmbitUtils0% | 0% | 0% | 0% | 100%
Ambit/Source/Ambit0% | 0% | 0% | 0% | 100%
Ambit/Source/AWSUE4Module0% | 0% | 0% | 0% | 100%
Ambit/Source/AWSUE4Module/Public0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void S3UEClientSpec::Define()
in Ambit/Source/AWSUE4Module/Private/S3UEClient.spec.cpp
839 44 0
void AmbitWorldHelpersSpec::Define()
in Ambit/Source/Ambit/Utils/AmbitWorldHelpers.spec.cpp
1079 24 0
void ASpawnerBase::SpawnActorsAtTransforms()
in Ambit/Source/Ambit/Actors/Spawners/SpawnerBase.cpp
107 18 2
void AAmbitWheeledVehicleAIController::Tick()
in Ambit/Source/Ambit/Vehicle/AmbitWheeledVehicleAIController.cpp
97 18 1
void FScenarioDefinition::DeserializeFromJson()
in Ambit/Source/Ambit/Mode/ScenarioDefinition.cpp
96 17 1
FReply UConfigImportExport::OnExportGltf()
in Ambit/Source/Ambit/Mode/ConfigImportExport.cpp
86 15 0
void ASpawnWithHoudini::RandomizeActor()
in Ambit/Source/Ambit/Actors/Spawners/SpawnWithHoudini.cpp
98 14 1
bool UConfigImportExport::WriteJsonFile()
in Ambit/Source/Ambit/Mode/ConfigImportExport.cpp
63 11 4
TArray AmbitWorldHelpers::GetActorsByMatchBy()
in Ambit/Source/Ambit/Utils/AmbitWorldHelpers.cpp
36 11 4
FReply UConfigImportExport::OnReadFromS3Bucket()
in Ambit/Source/Ambit/Mode/ConfigImportExport.cpp
77 10 0
void FBulkScenarioConfiguration::DeserializeFromJson()
in Ambit/Source/Ambit/Mode/BulkScenarioConfiguration.cpp
43 10 1
void FSpawnVehiclePathConfig::DeserializeFromJson()
in Ambit/Source/Ambit/Actors/SpawnerConfigs/SpawnVehiclePathConfig.cpp
84 10 1
void ASpawnWithHoudini::GenerateObstacles()
in Ambit/Source/Ambit/Actors/Spawners/SpawnWithHoudini.cpp
48 9 0
bool ASpawnWithHoudini::ClearObstacles()
in Ambit/Source/Ambit/Actors/Spawners/SpawnWithHoudini.cpp
26 9 0
TSharedPtr FSpawnVehiclePathConfig::SerializeToJson()
in Ambit/Source/Ambit/Actors/SpawnerConfigs/SpawnVehiclePathConfig.cpp
73 9 0
void FVehicleTraffic::DeserializeFromJson()
in Ambit/Source/Ambit/Mode/VehicleTraffic.cpp
39 8 1
void FPedestrianTraffic::DeserializeFromJson()
in Ambit/Source/Ambit/Mode/PedestrianTraffic.cpp
39 8 1
TArray AmbitWorldHelpers::GenerateRandomLocationsFromBox()
in Ambit/Source/Ambit/Utils/AmbitWorldHelpers.cpp
57 8 8
void SpawnOnPathConfig::Define()
in Ambit/Source/Ambit/Actors/Spawners/SpawnOnPath.spec.cpp
305 8 0
TSharedPtr FSpawnerBaseConfig::SerializeToJson()
in Ambit/Source/Ambit/Actors/SpawnerConfigs/SpawnerBaseConfig.cpp
49 8 0