Metrics class

Stores global metrics. See the README for more details about each metric.

Constructors

Metrics(bool isAcyclic, List<String> firstCycle, int numNodes, int numEdges, double avgDegree, List<String> orphans, int ccd, double acd, double nccd, int totalSloc, double avgSloc)
Constructor.

Properties

acd double
Average Component Dependency.
getter/setter pair
avgDegree double
Average degree of a directed graph = numEdges/numNodes.
getter/setter pair
avgSloc double
Average Source Lines of Code per node.
getter/setter pair
ccd int
Cumulative Component Dependency.
getter/setter pair
firstCycle List<String>
The first dependency cycle found if the graph is not acyclic.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAcyclic bool
Is this a directed acyclic graph (DAG)?
getter/setter pair
nccd double
Normalized Cumulative Component Dependency.
getter/setter pair
numEdges int
Number of edges (dependencies).
getter/setter pair
numNodes int
Number of nodes (dart files).
getter/setter pair
orphans List<String>
List of orphan nodes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSloc int
Total Source Lines of Code for all nodes.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns this object in JSON format.
toString() String
Returns this object in dot format.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited