Package eu.simuline.relana.model
Class DeficiencySetNode
- java.lang.Object
-
- eu.simuline.relana.model.DeficiencySetNode
-
public final class DeficiencySetNode extends Object
Resolvation of a property within anSClassinto elementary stochastically independent properties. Created: Mon Apr 25 15:18:32 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Field Summary
Fields Modifier and Type Field Description private DeficiencydeficiencyTheDeficiencyto be resolved.private Set<Deficiency>deficiencySetThe set of elementaryDeficiencys resolvingdeficiency.
-
Constructor Summary
Constructors Constructor Description DeficiencySetNode(Deficiency deficiency, Set<Deficiency> deficiencySet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeficiencygetDeficiency()Returns theDeficiencyto be resolved.Set<Deficiency>getDeficiencySet()Returns the set of elementaryDeficiencys resolvingdeficiency.BigDecimalgetProb(Map<Deficiency,BigDecimal> def2prob)Returns the probability of the wrapped deficiencydeficiencyif replaced by the setdeficiencySetof deficiencies which are assumed to be independent.StringtoString()
-
-
-
Field Detail
-
deficiency
private final Deficiency deficiency
TheDeficiencyto be resolved.
-
deficiencySet
private final Set<Deficiency> deficiencySet
The set of elementaryDeficiencys resolvingdeficiency.
-
-
Constructor Detail
-
DeficiencySetNode
public DeficiencySetNode(Deficiency deficiency, Set<Deficiency> deficiencySet)
-
-
Method Detail
-
getDeficiency
public Deficiency getDeficiency()
Returns theDeficiencyto be resolved.- Returns:
- the
Deficiencyto be resolved.
-
getDeficiencySet
public Set<Deficiency> getDeficiencySet()
Returns the set of elementaryDeficiencys resolvingdeficiency.- Returns:
- the set of elementary
Deficiencys resolvingdeficiency.
-
getProb
public BigDecimal getProb(Map<Deficiency,BigDecimal> def2prob)
Returns the probability of the wrapped deficiencydeficiencyif replaced by the setdeficiencySetof deficiencies which are assumed to be independent.- Parameters:
def2prob- a probability distribution the key set of which containsdeficiencySet.- Returns:
- the
doublevalue representing the probability of the deficiencydeficiencyor equivalently the probability of the simultaneous occurence ofdeficiencySet, independence assumed.
-
-