Class ARDetectionService
java.lang.Object
edu.university.ecs.lab.detection.architecture.services.ARDetectionService
Service class for detecting architectural rule violations
-
Field Summary
Modifier and TypeFieldDescription(package private) MicroserviceSystem
(package private) MicroserviceSystem
(package private) SystemChange
-
Constructor Summary
ConstructorDescriptionARDetectionService
(SystemChange oldSystem, MicroserviceSystem microserviceSystemOld, MicroserviceSystem microserviceSystemNew) Construct with System objectsARDetectionService
(String DeltaPath, String OldIRPath, String NewIRPath) Construct from paths to JSON files -
Method Summary
Modifier and TypeMethodDescriptionScans delta use cases for architectural rule violationsScans ALL use cases in new system commit for architectural rule violationsScans all use cases for architectural rule violations
-
Field Details
-
oldSystem
SystemChange oldSystem -
microserviceSystemOld
MicroserviceSystem microserviceSystemOld -
microserviceSystemNew
MicroserviceSystem microserviceSystemNew
-
-
Constructor Details
-
ARDetectionService
Construct from paths to JSON files- Parameters:
DeltaPath
- path to delta JSON fileOldIRPath
- path to old commit JSON fileNewIRPath
- path to new commit JSON file
-
ARDetectionService
public ARDetectionService(SystemChange oldSystem, MicroserviceSystem microserviceSystemOld, MicroserviceSystem microserviceSystemNew) Construct with System objects- Parameters:
oldSystem
- SystemChange object representing the delta between commitsmicroserviceSystemOld
- old microservice commit objectmicroserviceSystemNew
- new microservice commit object
-
-
Method Details
-
scanUseCases
Scans all use cases for architectural rule violations- Returns:
- list of architectural rule violations
-
scanDeltaUC
Scans delta use cases for architectural rule violations- Returns:
- list of delta use cases that violate architectural rules
-
scanSystemUC
Scans ALL use cases in new system commit for architectural rule violations- Returns:
- list of architectural rule violations from new system commit
-