public class ImpactEngine extends Object
Provides accurate graph distances (not sequential counters) and reconstructed shortest paths from source to each impacted entity.
| Modifier and Type | Method and Description |
|---|---|
static ImpactResult |
getRoutineImpact(CallGraph callGraph,
String routineId,
int maxDepth)
Computes routine impact: finds all routines and tables transitively
affected by a change to the given routine, using forward BFS.
|
static ImpactResult |
getTableImpact(CallGraph callGraph,
String tableName,
ETableAccessKind accessFilter,
int maxDepth)
Computes table impact: finds all routines affected by a change to the given table.
|
public static ImpactResult getRoutineImpact(CallGraph callGraph, String routineId, int maxDepth)
callGraph - the call graph to traverseroutineId - the source routine to analyze impact frommaxDepth - maximum BFS depth (from config)public static ImpactResult getTableImpact(CallGraph callGraph, String tableName, ETableAccessKind accessFilter, int maxDepth)
callGraph - the call graphtableName - the table name to analyzeaccessFilter - optional filter (null = all access types)maxDepth - maximum BFS depth