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 anSClass
into 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 Deficiency
deficiency
TheDeficiency
to be resolved.private Set<Deficiency>
deficiencySet
The set of elementaryDeficiency
s 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 Deficiency
getDeficiency()
Returns theDeficiency
to be resolved.Set<Deficiency>
getDeficiencySet()
Returns the set of elementaryDeficiency
s resolvingdeficiency
.BigDecimal
getProb(Map<Deficiency,BigDecimal> def2prob)
Returns the probability of the wrapped deficiencydeficiency
if replaced by the setdeficiencySet
of deficiencies which are assumed to be independent.String
toString()
-
-
-
Field Detail
-
deficiency
private final Deficiency deficiency
TheDeficiency
to be resolved.
-
deficiencySet
private final Set<Deficiency> deficiencySet
The set of elementaryDeficiency
s resolvingdeficiency
.
-
-
Constructor Detail
-
DeficiencySetNode
public DeficiencySetNode(Deficiency deficiency, Set<Deficiency> deficiencySet)
-
-
Method Detail
-
getDeficiency
public Deficiency getDeficiency()
Returns theDeficiency
to be resolved.- Returns:
- the
Deficiency
to be resolved.
-
getDeficiencySet
public Set<Deficiency> getDeficiencySet()
Returns the set of elementaryDeficiency
s resolvingdeficiency
.- Returns:
- the set of elementary
Deficiency
s resolvingdeficiency
.
-
getProb
public BigDecimal getProb(Map<Deficiency,BigDecimal> def2prob)
Returns the probability of the wrapped deficiencydeficiency
if replaced by the setdeficiencySet
of deficiencies which are assumed to be independent.- Parameters:
def2prob
- a probability distribution the key set of which containsdeficiencySet
.- Returns:
- the
double
value representing the probability of the deficiencydeficiency
or equivalently the probability of the simultaneous occurence ofdeficiencySet
, independence assumed.
-
-