Class AR6
java.lang.Object
edu.university.ecs.lab.detection.architecture.models.AbstractAR
edu.university.ecs.lab.detection.architecture.models.AR6
- All Implemented Interfaces:
JsonSerializable
Architectural Rule 6 Class: Affected endpoint due to business logic update
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected com.google.gson.JsonObjectprivate static Comparator<MethodCall>protected static final Stringprivate Stringprivate Stringprotected static final StringArchitectural rule 6 details -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description of the Architectural Rulecom.google.gson.JsonObjectGet the meta data of the Architectural RulegetName()Get the name of the Architectural RulegetType()Get the new commitIDstatic List<MethodCall>getUniqueMethodCalls(List<MethodCall> oldMethodCalls, List<MethodCall> newMethodCalls) doubleGet the weight of the Architectural Rulescan(Delta delta, MicroserviceSystem oldSystem, MicroserviceSystem newSystem) Scan and compare old microservice system and new microservice system to identify endpoints affected by business logic updateMethods inherited from class edu.university.ecs.lab.detection.architecture.models.AbstractAR
getNewCommitID, getOldCommitID, toJsonObject
-
Field Details
-
TYPE
Architectural rule 6 details- See Also:
-
NAME
- See Also:
-
DESC
- See Also:
-
oldCommitID
-
newCommitID
-
metaData
protected com.google.gson.JsonObject metaData -
methodCallComparator
-
-
Constructor Details
-
AR6
public AR6()
-
-
Method Details
-
getName
Description copied from class:AbstractARGet the name of the Architectural Rule- Specified by:
getNamein classAbstractAR- Returns:
- string name of the Architectural Rule
-
getDescription
Description copied from class:AbstractARGet the description of the Architectural Rule- Specified by:
getDescriptionin classAbstractAR- Returns:
- string description of the Architectural Rule
-
getWeight
public double getWeight()Description copied from class:AbstractARGet the weight of the Architectural Rule- Specified by:
getWeightin classAbstractAR- Returns:
- double weight of the Architectural Rule
-
getType
Description copied from class:AbstractARGet the new commitID- Specified by:
getTypein classAbstractAR- Returns:
- string new commitID
-
getMetaData
public com.google.gson.JsonObject getMetaData()Description copied from class:AbstractARGet the meta data of the Architectural Rule- Specified by:
getMetaDatain classAbstractAR- Returns:
- JSON object meta data of the Architectural Rule
-
scan
public static List<AR6> scan(Delta delta, MicroserviceSystem oldSystem, MicroserviceSystem newSystem) Scan and compare old microservice system and new microservice system to identify endpoints affected by business logic update- Parameters:
delta- change between old commit and new microservice systemsoldSystem- old commit of microservice systemnewSystem- new commit of microservice system- Returns:
- list of calls to modified methods (first instance)
-
getUniqueMethodCalls
public static List<MethodCall> getUniqueMethodCalls(List<MethodCall> oldMethodCalls, List<MethodCall> newMethodCalls)
-