Package org.jreliability.tutorial.boiler
Class BoilerTransformer
- java.lang.Object
-
- org.jreliability.tutorial.boiler.BoilerTransformer
-
- All Implemented Interfaces:
org.apache.commons.collections15.Transformer<BoilerComponent,ReliabilityFunction>
public class BoilerTransformer extends java.lang.Object implements org.apache.commons.collections15.Transformer<BoilerComponent,ReliabilityFunction>
TheBoilerTransformer
provides aReliabilityFunction
for eachBoilerComponent
in theBoiler
. In this implementation, each component is assigned aWeibullReliabilityFunction
with a scale of0.5
and a shape of2
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<BoilerComponent,ReliabilityFunction>
reliabilityFunctions
The usedReliabilityFunction
for each component of theBoiler
.
-
Constructor Summary
Constructors Constructor Description BoilerTransformer(Boiler boiler)
Constructs aBoilerTransformer
with a givenBoiler
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReliabilityFunction
transform(BoilerComponent element)
-
-
-
Field Detail
-
reliabilityFunctions
protected java.util.Map<BoilerComponent,ReliabilityFunction> reliabilityFunctions
The usedReliabilityFunction
for each component of theBoiler
.
-
-
Constructor Detail
-
BoilerTransformer
public BoilerTransformer(Boiler boiler)
Constructs aBoilerTransformer
with a givenBoiler
.- Parameters:
boiler
- the boiler
-
-
Method Detail
-
transform
public ReliabilityFunction transform(BoilerComponent element)
- Specified by:
transform
in interfaceorg.apache.commons.collections15.Transformer<BoilerComponent,ReliabilityFunction>
-
-