Class ServiceChain
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
edu.university.ecs.lab.detection.antipatterns.models.ServiceChain
- All Implemented Interfaces:
JsonSerializable
Represents a service chain, which is a sequence of services in a network graph.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServiceChain
(List<List<String>> sequence) Constructs a ServiceChain object initialized with the given sequence of services. -
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:
-
chain
List of services in the chain.
-
-
Constructor Details
-
ServiceChain
Constructs a ServiceChain object initialized with the given sequence of services.- Parameters:
sequence
- the list of services representing the chain
-
-
Method Details
-
isEmpty
public boolean isEmpty()Checks if the list of nodes considered greedy is empty.- Returns:
- true if the list of nodes is empty, false otherwise
-
getName
- Specified by:
getName
in classAbstractAntiPattern
-
getDescription
- Specified by:
getDescription
in classAbstractAntiPattern
-
getMetaData
protected com.google.gson.JsonObject getMetaData()- Specified by:
getMetaData
in classAbstractAntiPattern
-
numServiceChains
public int numServiceChains()
-