Skip to content

Commit

Permalink
[FIX #59] Implement a controller method to call the FaultTreeReposito…
Browse files Browse the repository at this point in the history
…ryService.performCutSetAnalysis
  • Loading branch information
kostobog committed Feb 9, 2024
1 parent 1e4994e commit a037e6f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,12 @@ public FaultTree generateFunctionalDependenciesFaultTree(@PathVariable("function
log.info("> generateFunctionalDependenciesFaultTree - {}, {}", functionFragment, faultTreeName);
return repositoryService.generateFunctionDependencyTree(functionUri,faultTreeName);
}

@ResponseStatus(HttpStatus.NO_CONTENT)
@PutMapping(value = "/{faultTreeFragment}/cutsets")
public void performCutSetAnalysis(@PathVariable(name = "faultTreeFragment") String faultTreeFragment){
URI faultTreeUri = identifierService.composeIdentifier(Vocabulary.s_c_FaultTree, faultTreeFragment);
log.info("> performCutSetAnalysis - {}", faultTreeFragment);
repositoryService.performCutSetAnalysis(faultTreeUri);
}
}

0 comments on commit a037e6f

Please sign in to comment.