java.lang.Object
edu.university.ecs.lab.detection.architecture.models.AbstractAR
edu.university.ecs.lab.detection.architecture.models.AR1
All Implemented Interfaces:
JsonSerializable

public class AR1 extends AbstractAR
Architectural Rule 1 Class: Floating call due to endpoint removal (internal)
  • Field Details

  • Constructor Details

    • AR1

      public AR1()
  • Method Details

    • getName

      public String getName()
      Description copied from class: AbstractAR
      Get the name of the Architectural Rule
      Specified by:
      getName in class AbstractAR
      Returns:
      string name of the Architectural Rule
    • getDescription

      public String getDescription()
      Description copied from class: AbstractAR
      Get the description of the Architectural Rule
      Specified by:
      getDescription in class AbstractAR
      Returns:
      string description of the Architectural Rule
    • getWeight

      public double getWeight()
      Description copied from class: AbstractAR
      Get the weight of the Architectural Rule
      Specified by:
      getWeight in class AbstractAR
      Returns:
      double weight of the Architectural Rule
    • getMetaData

      public com.google.gson.JsonObject getMetaData()
      Description copied from class: AbstractAR
      Get the meta data of the Architectural Rule
      Specified by:
      getMetaData in class AbstractAR
      Returns:
      JSON object meta data of the Architectural Rule
    • getType

      public String getType()
      Description copied from class: AbstractAR
      Get the new commitID
      Specified by:
      getType in class AbstractAR
      Returns:
      string new commitID
    • scan

      public static List<AR1> scan(Delta delta, MicroserviceSystem oldSystem, MicroserviceSystem newSystem)
      Scan and compare old microservice system and new microservice system to identify endpoint removals
      Parameters:
      delta - change between old commit and new microservice systems
      oldSystem - old commit of microservice system
      newSystem - new commit of microservice system
      Returns:
      list of restCalls called in severed flow (if method was deleted)
    • scan2

      public static List<AR1> scan2(Delta delta, MicroserviceSystem oldSystem, MicroserviceSystem newSystem)
      Scan and compare old microservice system and new microservice system to identify endpoint removals
      Parameters:
      delta - change between old commit and new microservice systems
      oldSystem - old commit of microservice system
      newSystem - new commit of microservice system
      Returns:
      list of restCalls not in any flows