java.lang.Object
edu.university.ecs.lab.detection.antipatterns.models.AbstractAntiPattern
edu.university.ecs.lab.detection.antipatterns.models.ServiceChain
All Implemented Interfaces:
JsonSerializable

public class ServiceChain extends AbstractAntiPattern
Represents a service chain, which is a sequence of services in a network graph.
  • Field Details

  • Constructor Details

    • ServiceChain

      public ServiceChain(List<List<String>> sequence)
      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

      protected String getName()
      Specified by:
      getName in class AbstractAntiPattern
    • getDescription

      protected String getDescription()
      Specified by:
      getDescription in class AbstractAntiPattern
    • getMetaData

      protected com.google.gson.JsonObject getMetaData()
      Specified by:
      getMetaData in class AbstractAntiPattern
    • numServiceChains

      public int numServiceChains()