Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Design Analyzer
Java
by
huy
23rd April 2016
1
2
/*
* Need to specify classpath
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
latest revision
3
2
1
1 Response
Assignment:
Use Java Reflection to measure these within a Package.
instability(A)
responsibility(A)
inDepth(A)
workLoad(A)
1.
Instability(A) is define as the provider of A or some class that class A uses divided by the total instability of the entire package.
2.
Responsibility(A) is define as the clients of A or classes that uses class A divided by the total clients of the package.
3.
inDepth(A) is compute the hierarchy of inheritance of A
4.
workLoad(A) is the number of methods class A has divided by the total of number of methods the entire package has.
0
Reply?
H
huy
8 years ago
Write a comment
Send Comment
You can use [html][/html], [css][/css], [php][/php] and
more
to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
1 Response
Use Java Reflection to measure these within a Package.
instability(A)
responsibility(A)
inDepth(A)
workLoad(A)
1.
Instability(A) is define as the provider of A or some class that class A uses divided by the total instability of the entire package.
2.
Responsibility(A) is define as the clients of A or classes that uses class A divided by the total clients of the package.
3.
inDepth(A) is compute the hierarchy of inheritance of A
4.
workLoad(A) is the number of methods class A has divided by the total of number of methods the entire package has.
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.