Resource Standard Metrics for C, C++ and Java
Visual Metrics Version 5.53
License Type: Site Multi-Network License - 10000 Users
Licensed To : M Squared Technologies
License No. : ST1000 License Date: Fri Jun 25 06:09:01 1999
(C) 2000 M Squared Technologies Run Date: Tue Oct 10 21:45:36 2000
________________________________________________________________________
~~ Total Metrics For 15 Files ~~
------------------------------------------------------------------------
~~ Project Functional Metrics ~~
Sorted By Name
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::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::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::Hit
Complexity Param 0 Return 1 Cyclo Vg 4 Total 5
LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27
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::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::~Cell
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
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::Play
Complexity Param 0 Return 1 Cyclo Vg 10 Total 11
LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65
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::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: 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::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21
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 1 Total 2
LOC 8 eLOC 6 lLOC 4 Comment 0 Lines 8
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::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::TargetPlacement
Complexity Param 1 Return 1 Cyclo Vg 4 Total 6
LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28
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::Player::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_number_hits
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_number_tries
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Get_score
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Hit
Complexity Param 1 Return 1 Cyclo Vg 2 Total 4
LOC 10 eLOC 6 lLOC 5 Comment 0 Lines 10
Function: Seahunt::Player::Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Player::Player
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function: Seahunt::Player::Score
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function: Seahunt::Player::Set_name
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Player::Show
Complexity Param 0 Return 1 Cyclo Vg 2 Total 3
LOC 18 eLOC 14 lLOC 10 Comment 0 Lines 18
Function: Seahunt::Player::~Player
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
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::Sub::Create
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 11
Function: Seahunt::Sub::Create
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
Function: Seahunt::Sub::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 11 eLOC 5 lLOC 3 Comment 0 Lines 11
Function: Seahunt::Sub::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
Function: Seahunt::Sub::Sub
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
Function: Seahunt::Sub::~Sub
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
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::Get_depth_limit
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Get_name
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Get_status
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Target::Hit
Complexity Param 0 Return 1 Cyclo Vg 3 Total 4
LOC 21 eLOC 11 lLOC 7 Comment 0 Lines 21
Function: Seahunt::Target::Reset
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
Function: Seahunt::Target::Show
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 1 Comment 0 Lines 6
Function: Seahunt::Target::Target
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 11 eLOC 9 lLOC 7 Comment 0 Lines 11
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::Target::~Target
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function: Seahunt::Utility::ClearScreen
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function: Seahunt::Utility::UserEntry
Complexity Param 4 Return 1 Cyclo Vg 8 Total 13
LOC 37 eLOC 21 lLOC 15 Comment 0 Lines 37
Function: Seahunt::Utility::UserEntry
Complexity Param 3 Return 1 Cyclo Vg 1 Total 5
LOC 6 eLOC 4 lLOC 4 Comment 1 Lines 6
Function: Seahunt::Utility::WaitKey
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
Function: Seahunt::Utility::dtos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
Function: Seahunt::Utility::itos
Complexity Param 1 Return 1 Cyclo Vg 1 Total 3
LOC 7 eLOC 5 lLOC 5 Comment 1 Lines 7
Function: main
Complexity Param 0 Return 1 Cyclo Vg 5 Total 6
LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 8 eLOC 6 lLOC 6 Comment 0 Lines 10
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 6 eLOC 4 lLOC 4 Comment 0 Lines 6
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 15
Function: main
Complexity Param 0 Return 1 Cyclo Vg 1 Total 2
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 16
Total: Functions
LOC 622 eLOC 374 lLOC 297 InCmp 93 CycloCmp 118
------------------------------------------------------------------------
~~ Project Functional Analysis ~~
Total Functions .......: 64
Total Physical Lines ..: 673 Total LOC .............: 622
Total eLOC ............: 374 Total lLOC ............: 297
Total Cyclomatic Comp. : 118 Total Interface Comp. .: 93
Total Parameters ......: 29 Total Return Points ...: 64
Total Comment Lines ...: 16 Total Blank Lines .....: 40
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 10.52
Avg LOC ...............: 9.72 Avg eLOC ..............: 5.84
Avg lLOC ..............: 4.64 Avg Cyclomatic Comp. ..: 1.84
Avg Interface Comp. ...: 1.45 Avg Parameters ........: 0.45
Avg Return Points .....: 1.00 Avg Comment Lines .....: 0.25
------ ----- ----- ------ ------ -----
Max LOC ...............: 53
Max eLOC ..............: 31 Max lLOC ..............: 21
Max Cyclomatic Comp. ..: 10 Max Interface Comp. ...: 5
Max Parameters ........: 4 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 Metrics ~~
Sorted By Name
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 87 eLOC 53 lLOC 45 Comment 7 Lines 89
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 94 eLOC 58 lLOC 40 Comment 2 Lines 106
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 187 eLOC 117 lLOC 89 Comment 2 Lines 191
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
Complexity Param 4 Return 11 Cyclo Vg 13 Total 28
LOC 86 eLOC 58 lLOC 48 Comment 1 Lines 88
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 6 Return 7 Cyclo Vg 9 Total 22
LOC 53 eLOC 35 lLOC 25 Comment 0 Lines 53
Class: Seahunt::Target
Attributes Publ 0 Prot 5 Private 0 Total 5
Methods Publ 10 Prot 0 Private 1 Total 11
Complexity Param 4 Return 10 Cyclo Vg 12 Total 26
LOC 87 eLOC 59 lLOC 38 Comment 8 Lines 101
Class: Seahunt::Utility
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 0 Total 6
Complexity Param 9 Return 6 Cyclo Vg 13 Total 28
LOC 77 eLOC 49 lLOC 40 Comment 5 Lines 79
Total: All Classes
Attributes Publ 0 Prot 5 Private 19 Total 24
Methods Publ 55 Prot 0 Private 5 Total 60
Complexity Param 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
------------------------------------------------------------------------
~~ Project Class Analysis ~~
Total Classes .........: 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 ..: 707 Total LOC .............: 671
Total eLOC ............: 429 Total lLOC ............: 325
Total Cyclomatic Comp. : 108 Total Interface Comp. .: 87
Total Parameters ......: 29 Total Return Points ...: 58
Total Comment Lines ...: 25 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Physical Lines ....: 101.00 Avg Methods ...........: 8.57
Avg Public Methods ....: 7.86 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 0.71
Avg Private Methods ...: 0.71 Avg Private Attributes : 2.71
Avg LOC ...............: 95.86 Avg eLOC ..............: 61.29
Avg lLOC ..............: 46.43 Avg Cyclomatic Comp. ..: 15.43
Avg Interface Comp. ...: 12.43 Avg Parameters ........: 4.14
Avg Return Points .....: 8.29 Avg Comment Lines .....: 3.57
------ ----- ----- ------ ------ -----
Max Physical Lines ....: 191 Max Methods ...........: 11
Max Public Methods ....: 11 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Arrtib. .: 5
Max Private Methods ...: 2 Max Private Attributes : 6
Max LOC ...............: 187 Max eLOC ..............: 117
Max lLOC ..............: 89 Max Cyclomatic Comp. ..: 31
Max Interface Comp. ...: 15 Max Parameters ........: 9
Max Return Points .....: 11 Max Comment Lines .....: 8
------ ----- ----- ------ ------ -----
Min Physical Lines ....: 53 Min Methods ...........: 4
Min Public Methods ....: 4 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Arrtib. .: 0
Min Private Methods ...: 0 Min Private Attributes : 0
Min LOC ...............: 53 Min eLOC ..............: 35
Min lLOC ..............: 25 Min Cyclomatic Comp. ..: 9
Min Interface Comp. ...: 3 Min Parameters ........: 0
Min Return Points .....: 3 Min Comment Lines .....: 0
------------------------------------------------------------------------
~~ Class Inheritance Tree ~~
D - Depth where base class depth = 0
C - Number of direct child classes
+ Seahunt::Cell [D0.C0]
+ Seahunt::Game [D0.C0]
+ Seahunt::Ocean [D0.C0]
+ Seahunt::Player [D0.C0]
+ Seahunt::Target [D0.C1]
- Seahunt::Sub [D1.C0]
+ 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 Child Classes: 1
Average Number of Child Classes: 0.14
------------------------------------------------------------------------
~~ Project Namespace/Package Metrics ~~
Sorted By Name
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 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
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 29 Return 58 Cyclo Vg 108 Total 195
LOC 671 eLOC 429 lLOC 325 Comment 25 Lines 707
------------------------------------------------------------------------
~~ Project Namespace/Package Analysis ~~
Total Namespace/Package: 1
Total Classes .........: 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 ..: 707 Total LOC .............: 671
Total eLOC ............: 429 Total lLOC ............: 325
Total Cyclomatic Comp. : 108 Total Interface Comp. .: 87
Total Parameters ......: 29 Total Return Points ...: 58
Total Comment Lines ...: 25 Total Blank Lines .....: 22
------ ----- ----- ------ ------ -----
Avg Classes ...........: 7.00 Avg Methods ...........: 60.00
Avg Public Methods ....: 55.00 Avg Public Attributes .: 0.00
Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 5.00
Avg Private Methods ...: 5.00 Avg Private Attributes : 19.00
Avg LOC ...............: 671.00 Avg eLOC ..............: 429.00
Avg lLOC ..............: 325.00 Avg Cyclomatic Comp. ..: 108.00
Avg Interface Comp. ...: 87.00 Avg Parameters ........: 29.00
Avg Return Points .....: 58.00 Avg Comment Lines .....: 25.00
------ ----- ----- ------ ------ -----
Max Classes ...........: 7 Max Methods ...........: 60
Max Public Methods ....: 55 Max Public Attributes .: 0
Max Protected Methods .: 0 Max Protected Arrtib. .: 5
Max Private Methods ...: 5 Max Private Attributes : 19
Max LOC ...............: 671 Max eLOC ..............: 429
Max lLOC ..............: 325 Max Cyclomatic Comp. ..: 108
Max Interface Comp. ...: 87 Max Parameters ........: 29
Max Return Points .....: 58 Max Comment Lines .....: 25
------ ----- ----- ------ ------ -----
Min Classes ...........: 7 Min Methods ...........: 60
Min Public Methods ....: 55 Min Public Attributes .: 0
Min Protected Methods .: 0 Min Protected Arrtib. .: 5
Min Private Methods ...: 5 Min Private Attributes : 19
Min LOC ...............: 671 Min eLOC ..............: 429
Min lLOC ..............: 325 Min Cyclomatic Comp. ..: 108
Min Interface Comp. ...: 87 Min Parameters ........: 29
Min Return Points .....: 58 Min Comment Lines .....: 25
------------------------------------------------------------------------
~~ Project Quality Profile ~~
Type Count Percent Quality Notice
________________________________________________________________________
1 3 3.03 Physical line length exceeds 80 characters
7 7 7.07 Pre-increment operator '++' identified
16 5 5.05 Function white space less than 10.0%
17 56 56.57 Function comment content less than 10.0%
20 11 11.11 File comment content less 10.0%
31 4 4.04 Class comments are less than 10.0%
34 4 4.04 Class specification contains a pointer to data
36 5 5.05 Class specification contains protected data
43 3 3.03 Keyword 'continue' has been identified
44 1 1.01 Keyword 'break' identified outside a 'switch' structure
________________________________________________________________________
99 100.00 Total Quality Notices
~~ Quality Notice Density ~~
Basis: 1000 (K)
Quality Notices/K LOC = 98.9 ( 9.89%)
Quality Notices/K eLOC = 138.7 ( 13.87%)
Quality Notices/K lLOC = 250.6 ( 25.06%)
------------------------------------------------------------------------
~~ Total Project Summary ~~
LOC 1001 eLOC 714 lLOC 395 Comment 81 Lines 1275
------------------------------------------------------------------------
~~ File Summary ~~
C Source Files *.c ....: 0 C/C++ Include Files *.h: 7
C++ Source Files *.c* .: 8 C++ Include Files *.h* : 0
Other Source Files ....: 0 Java Source File *.jav*: 0
Total File Count ......: 15
________________________________________________________________________