-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from kbss-cvut/fix/fta-fmea-ui-429-store-oper…
…ational-failure-rate-in-correct-location Store failure rate estimate in context common for all systems
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/cz/cvut/kbss/analysis/dao/FailureRateDao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package cz.cvut.kbss.analysis.dao; | ||
|
||
import cz.cvut.kbss.analysis.config.conf.PersistenceConf; | ||
import cz.cvut.kbss.analysis.model.FailureRate; | ||
import cz.cvut.kbss.analysis.service.IdentifierService; | ||
import cz.cvut.kbss.analysis.util.Vocabulary; | ||
import cz.cvut.kbss.jopa.model.EntityManager; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.net.URI; | ||
|
||
@Repository | ||
public class FailureRateDao extends BaseDao<FailureRate> { | ||
public static final URI HAS_FAILURE_RATE_PROP = URI.create(Vocabulary.s_p_has_failure_rate); | ||
|
||
public FailureRateDao(EntityManager em, PersistenceConf config, IdentifierService identifierService) { | ||
super(FailureRate.class, em, config, identifierService); | ||
} | ||
|
||
public void setFailureRate(URI eventUri, FailureRate fr, URI context){ | ||
addOrReplaceValue(eventUri, HAS_FAILURE_RATE_PROP, fr.getUri(), context); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters