Resource Standard Metrics for C, C++ and Java Visual Metrics Version 6.01 License Type: Shareware Evaluation License Licensed To : Shareware End User - Distribute Freely License No. : SW1380 License Date: Sat Dec 05 12:31:28 1998 (C) 2001 M Squared Technologies Run Date: Fri Jun 22 19:31:57 2001 ________________________________________________________________________ ~~ Total Metrics For 10 Files ~~ ------------------------------------------------------------------------ ~~ Project Functional Metrics ~~ No Sort Method Function: Seahunt::Sub::Abstract Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1 Function: Seahunt::Target::Get_armor Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 Function: Seahunt::Target::Target Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4 Function: Seahunt::Cell::Cell Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7 Function: Seahunt::Cell::Cell Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7 Function: Seahunt::Cell::~Cell Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3 Function: Seahunt::Cell::Set_xyz Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 LOC 3 eLOC 1 lLOC 3 Comment 0 Lines 3 Function: Seahunt::Cell::Get_x Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Cell::Get_y Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Cell::Get_z Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Cell::Set_target Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 LOC 9 eLOC 5 lLOC 4 Comment 0 Lines 9 Function: Seahunt::Cell::Get_target Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Cell::Hit Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27 Function: main Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44 Function: Seahunt::Game::Game Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 15 eLOC 9 lLOC 7 Comment 0 Lines 15 Function: Seahunt::Game::~Game Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 12 eLOC 6 lLOC 4 Comment 0 Lines 12 Function: Seahunt::Game::Play Complexity Param 0 Return 1 Cyclo Vg 10 Total 11 LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65 Function: Seahunt::Ocean::Ocean Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 8 eLOC 6 lLOC 4 Comment 0 Lines 8 Function: Seahunt::Ocean::Init Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 LOC 18 eLOC 8 lLOC 8 Comment 1 Lines 20 Function: Seahunt::Ocean::~Ocean Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 13 eLOC 7 lLOC 4 Comment 1 Lines 14 Function: Seahunt::Ocean::PlaceTarget Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 13 eLOC 7 lLOC 4 Comment 0 Lines 13 Function: Seahunt::Ocean::TargetPlacement Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28 Function: Seahunt::Ocean::Hit Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21 Function: Seahunt::Ocean::Show Complexity Param 0 Return 1 Cyclo Vg 6 Total 7 LOC 36 eLOC 20 lLOC 16 Comment 0 Lines 37 Function: Seahunt::Ocean::ShowTargets Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 17 eLOC 11 lLOC 5 Comment 0 Lines 17 Function: Seahunt::Ocean::Get_target_count Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Ocean::Get_active_targets Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: Seahunt::Ocean::Get_destroyed_targets Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: main Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20 Total: Functions LOC 357 eLOC 209 lLOC 162 InCmp 36 CycloCmp 70 ------------------------------------------------------------------------ ~~ Project Functional Analysis ~~ Total Functions .......: 29 Total Physical Lines ..: 397 Total LOC .............: 357 Total eLOC ............: 209 Total lLOC ............: 162 Total Cyclomatic Comp. : 70 Total Interface Comp. .: 36 Total Parameters ......: 7 Total Return Points ...: 29 Total Comment Lines ...: 12 Total Blank Lines .....: 30 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 13.69 Avg LOC ...............: 12.31 Avg eLOC ..............: 7.21 Avg lLOC ..............: 5.59 Avg Cyclomatic Comp. ..: 2.41 Avg Interface Comp. ...: 1.24 Avg Parameters ........: 0.24 Avg Return Points .....: 1.00 Avg Comment Lines .....: 0.41 ------ ----- ----- ------ ------ ----- Max LOC ...............: 53 Max eLOC ..............: 31 Max lLOC ..............: 21 Max Cyclomatic Comp. ..: 10 Max Interface Comp. ...: 4 Max Parameters ........: 3 Max Return Points .....: 1 Max Comment Lines .....: 4 Max Total Lines .......: 65 ------ ----- ----- ------ ------ ----- Min LOC ...............: 1 Min eLOC ..............: 0 Min lLOC ..............: 0 Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 Min Parameters ........: 0 Min Return Points .....: 1 Min Comment Lines .....: 0 Min Total Lines .......: 1 ------------------------------------------------------------------------ ~~ Project Class/Struct Metrics ~~ No Sort Method Class: Seahunt::Cell Attributes Publ 0 Prot 0 Private 5 Total 5 Methods Publ 9 Prot 0 Private 1 Total 10 Complexity Param 5 Return 10 Cyclo Vg 14 Total 29 LOC 86 eLOC 52 lLOC 45 Comment 7 Lines 87 Class: Seahunt::Game Attributes Publ 0 Prot 0 Private 3 Total 3 Methods Publ 4 Prot 0 Private 0 Total 4 Complexity Param 0 Return 3 Cyclo Vg 16 Total 19 LOC 93 eLOC 57 lLOC 40 Comment 2 Lines 104 Class: Seahunt::Ocean Attributes Publ 0 Prot 0 Private 6 Total 6 Methods Publ 9 Prot 0 Private 2 Total 11 Complexity Param 1 Return 11 Cyclo Vg 31 Total 43 LOC 186 eLOC 116 lLOC 89 Comment 2 Lines 189 Class: Seahunt::Player Attributes Publ 0 Prot 0 Private 5 Total 5 Methods Publ 11 Prot 0 Private 0 Total 11 Complexity Param 0 Return 0 Cyclo Vg 0 Total 0 LOC 20 eLOC 18 lLOC 16 Comment 0 Lines 20 Class: Seahunt::Sub Inheritance: Target Attributes Publ 0 Prot 0 Private 0 Total 0 Methods Publ 6 Prot 0 Private 1 Total 7 Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 11 eLOC 9 lLOC 6 Comment 0 Lines 10 Class: Seahunt::Target Attributes Publ 0 Prot 5 Private 0 Total 5 Methods Publ 10 Prot 0 Private 1 Total 11 Complexity Param 1 Return 2 Cyclo Vg 2 Total 5 LOC 29 eLOC 25 lLOC 16 Comment 8 Lines 42 Class: Seahunt::Utility Attributes Publ 0 Prot 0 Private 0 Total 0 Methods Publ 6 Prot 0 Private 0 Total 6 Complexity Param 0 Return 0 Cyclo Vg 0 Total 0 LOC 11 eLOC 9 lLOC 7 Comment 2 Lines 12 Total: All Classes/Structs Attributes Publ 0 Prot 5 Private 19 Total 24 Methods Publ 55 Prot 0 Private 5 Total 60 Complexity Param 7 Return 27 Cyclo Vg 64 Total 98 LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464 ------------------------------------------------------------------------ ~~ Project Class/Struct Analysis ~~ Total Classes/Structs .: 7 Total Methods .........: 60 Total Public Methods ..: 55 Total Public Attributes: 0 Total Protected Methods: 0 Total Protected Attrib.: 5 Total Private Methods .: 5 Total Private Attrib. .: 19 Total Physical Lines ..: 464 Total LOC .............: 436 Total eLOC ............: 286 Total lLOC ............: 219 Total Cyclomatic Comp. : 64 Total Interface Comp. .: 34 Total Parameters ......: 7 Total Return Points ...: 27 Total Comment Lines ...: 21 Total Blank Lines .....: 22 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 66.29 Avg Methods ...........: 8.57 Avg Public Methods ....: 7.86 Avg Public Attributes .: 0.00 Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 0.71 Avg Private Methods ...: 0.71 Avg Private Attributes : 2.71 Avg LOC ...............: 62.29 Avg eLOC ..............: 40.86 Avg lLOC ..............: 31.29 Avg Cyclomatic Comp. ..: 9.14 Avg Interface Comp. ...: 4.86 Avg Parameters ........: 1.00 Avg Return Points .....: 3.86 Avg Comment Lines .....: 3.00 ------ ----- ----- ------ ------ ----- Max Physical Lines ....: 189 Max Methods ...........: 11 Max Public Methods ....: 11 Max Public Attributes .: 0 Max Protected Methods .: 0 Max Protected Attrib. .: 5 Max Private Methods ...: 2 Max Private Attributes : 6 Max LOC ...............: 186 Max eLOC ..............: 116 Max lLOC ..............: 89 Max Cyclomatic Comp. ..: 31 Max Interface Comp. ...: 15 Max Parameters ........: 5 Max Return Points .....: 11 Max Comment Lines .....: 8 ------ ----- ----- ------ ------ ----- Min Physical Lines ....: 10 Min Methods ...........: 4 Min Public Methods ....: 4 Min Public Attributes .: 0 Min Protected Methods .: 0 Min Protected Attrib. .: 0 Min Private Methods ...: 0 Min Private Attributes : 0 Min LOC ...............: 11 Min eLOC ..............: 9 Min lLOC ..............: 6 Min Cyclomatic Comp. ..: 0 Min Interface Comp. ...: 0 Min Parameters ........: 0 Min Return Points .....: 0 Min Comment Lines .....: 0 ------------------------------------------------------------------------ ~~ Class Inheritance Tree ~~ D - Depth where base class depth = 0 C - Number of direct child classes P - Number of direct parents, Multiple Inheritance > 1 + Seahunt::Cell [D0.C0]
+ Seahunt::Game [D0.C0]
+ Seahunt::Ocean [D0.C0]
+ Seahunt::Player [D0.C0]
+ Seahunt::Target [D0.C1]
- Seahunt::Sub [D1.C0.P1]
+ Seahunt::Utility [D0.C0]
Total Classes : 7 Total Base Classes : 6 Total Derived Classes: 1 Derived/Based Ratio : 0.17 Maximum Depth of Inheritance: 1 Average Depth of Inheritance: 0.14 Maximum Number of Direct Child Classes: 1 Average Number of Direct Child Classes: 0.14 ------------------------------------------------------------------------ ~~ Project Namespace/Package Metrics ~~ No Sort Method Namespace/Package: Seahunt Total Classses 7 Total Functions 60 Avg Func/Class 8.57 Attributes Publ 0 Prot 5 Private 19 Total 24 Methods Publ 55 Prot 0 Private 5 Total 60 Complexity Param 7 Return 27 Cyclo Vg 64 Total 98 LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464 Total: All Namespaces/Packages Total Classses 7 Total Functions 60 Avg Func/Class 8.57 Attributes Publ 0 Prot 5 Private 19 Total 24 Methods Publ 55 Prot 0 Private 5 Total 60 Complexity Param 7 Return 27 Cyclo Vg 64 Total 98 LOC 436 eLOC 286 lLOC 219 Comment 21 Lines 464 ------------------------------------------------------------------------ ~~ Project Namespace/Package Analysis ~~ Total Namespace/Package: 1 Total Classes/Structs .: 7 Total Methods .........: 60 Total Public Methods ..: 55 Total Public Attributes: 0 Total Protected Methods: 0 Total Protected Attrib.: 5 Total Private Methods .: 5 Total Private Attrib. .: 19 Total Physical Lines ..: 464 Total LOC .............: 436 Total eLOC ............: 286 Total lLOC ............: 219 Total Cyclomatic Comp. : 64 Total Interface Comp. .: 34 Total Parameters ......: 7 Total Return Points ...: 27 Total Comment Lines ...: 21 Total Blank Lines .....: 22 ------ ----- ----- ------ ------ ----- Avg Classes/Structs ...: 7.00 Avg Methods ...........: 60.00 Avg Public Methods ....: 55.00 Avg Public Attributes .: 0.00 Avg Protected Methods .: 0.00 Avg Protected Attrib. .: 5.00 Avg Private Methods ...: 5.00 Avg Private Attributes : 19.00 Avg LOC ...............: 436.00 Avg eLOC ..............: 286.00 Avg lLOC ..............: 219.00 Avg Cyclomatic Comp. ..: 64.00 Avg Interface Comp. ...: 34.00 Avg Parameters ........: 7.00 Avg Return Points .....: 27.00 Avg Comment Lines .....: 21.00 ------ ----- ----- ------ ------ ----- Max Classes/Struct ....: 7 Max Methods ...........: 60 Max Public Methods ....: 55 Max Public Attributes .: 0 Max Protected Methods .: 0 Max Protected Attrib. .: 5 Max Private Methods ...: 5 Max Private Attributes : 19 Max LOC ...............: 436 Max eLOC ..............: 286 Max lLOC ..............: 219 Max Cyclomatic Comp. ..: 64 Max Interface Comp. ...: 34 Max Parameters ........: 7 Max Return Points .....: 27 Max Comment Lines .....: 21 ------ ----- ----- ------ ------ ----- Min Classes/Structs ...: 7 Min Methods ...........: 60 Min Public Methods ....: 55 Min Public Attributes .: 0 Min Protected Methods .: 0 Min Protected Attrib. .: 5 Min Private Methods ...: 5 Min Private Attributes : 19 Min LOC ...............: 436 Min eLOC ..............: 286 Min lLOC ..............: 219 Min Cyclomatic Comp. ..: 64 Min Interface Comp. ...: 34 Min Parameters ........: 7 Min Return Points .....: 27 Min Comment Lines .....: 21 ------------------------------------------------------------------------ ~~ Project Quality Profile ~~ Type Count Percent Quality Notice ________________________________________________________________________ 7 6 13.04 Pre-increment operator '++' identified 16 2 4.35 Function white space less than 1.0% 17 22 47.83 Function comment content less than 1.0% 31 4 8.70 Class/Struct comments are less than 1.0% 34 4 8.70 Class specification contains a pointer to data 36 5 10.87 Class specification contains protected data 43 3 6.52 Keyword 'continue' has been identified ________________________________________________________________________ 46 100.00 Total Quality Notices ~~ Quality Notice Density ~~ Basis: 1000 (K) Quality Notices/K LOC = 72.4 ( 7.24%) Quality Notices/K eLOC = 101.1 ( 10.11%) Quality Notices/K lLOC = 177.6 ( 17.76%) ------------------------------------------------------------------------ ~~ Total Project Summary ~~ LOC 635 eLOC 455 lLOC 259 Comment 66 Lines 823 ------------------------------------------------------------------------ ~~ File Summary ~~ C Source Files *.c ....: 0 C/C++ Include Files *.h: 7 C++ Source Files *.c* .: 3 C++ Include Files *.h* : 0 Other Source Files ....: 0 Java Source File *.jav*: 0 Total File Count ......: 10 Shareware evaluation licenses process only 10 files. Paid licenses enable wild cards and file/project totals. ________________________________________________________________________