Class CyclicDependency
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
edu.university.ecs.lab.detection.antipatterns.models.CyclicDependency
- All Implemented Interfaces:
JsonSerializable
Represents a list of one cycle of Cyclic Dependency Anti-pattern detected
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCyclicDependency
(List<List<String>> cycles) Constructs a CyclicDependency object initialized with the given cycle. -
Method Summary
Methods inherited from class edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
toJsonObject
-
Field Details
-
NAME
Anti-pattern name- See Also:
-
DESCRIPTION
Anti-pattern description- See Also:
-
cycles
List of one cycle detected
-
-
Constructor Details
-
CyclicDependency
Constructs a CyclicDependency object initialized with the given cycle.- Parameters:
cycles
- the list of nodes representing the cycle
-
-
Method Details
-
getName
- Specified by:
getName
in classAbstractAntiPattern
-
getDescription
- Specified by:
getDescription
in classAbstractAntiPattern
-
getMetaData
protected com.google.gson.JsonObject getMetaData()- Specified by:
getMetaData
in classAbstractAntiPattern
-
numCyclicDep
public int numCyclicDep()
-