Package org.jreliability.tutorial.tmr
Class TMR
- java.lang.Object
-
- org.jreliability.tutorial.tmr.TMR
-
public class TMR extends java.lang.Object
TheTMR
models a 2-out-of-3 majority voter commonly known as Triple Modular Redundancy. This behavior can be expressed as a linear constrained as follows:
1*component1 + 1*component2 + 1* component3 >= 2
The needed comparator to perform the voting is commonly not modeled explicitly due to its extremely high reliability.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
component1
The first component.protected java.lang.String
component2
The second component.protected java.lang.String
component3
The third component.protected org.apache.commons.collections15.Transformer<java.lang.String,ReliabilityFunction>
transformer
The usedReliabilityFunction
Transformer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReliabilityFunction
get()
Term
getTerm()
org.apache.commons.collections15.Transformer<java.lang.String,ReliabilityFunction>
getTransformer()
Returns aTransformer
for each element of the system to itsReliabilityFunction
.
-
-
-
Field Detail
-
component1
protected java.lang.String component1
The first component.
-
component2
protected java.lang.String component2
The second component.
-
component3
protected java.lang.String component3
The third component.
-
transformer
protected org.apache.commons.collections15.Transformer<java.lang.String,ReliabilityFunction> transformer
The usedReliabilityFunction
Transformer
.
-
-
Constructor Detail
-
TMR
public TMR()
Constructs aTMR
.
-
-
Method Detail
-
getTerm
public Term getTerm()
- Returns:
- the term representation of the TMR
-
get
public ReliabilityFunction get()
- Returns:
- the reliabilityFunction of the TMR
-
getTransformer
public org.apache.commons.collections15.Transformer<java.lang.String,ReliabilityFunction> getTransformer()
Returns aTransformer
for each element of the system to itsReliabilityFunction
.- Returns:
- the transformer
-
-