Package org.jreliability.function
Class ReliabilityFunctionSet
- java.lang.Object
-
- org.jreliability.function.ReliabilityFunctionSet
-
- All Implemented Interfaces:
Function
,ReliabilityFunction
- Direct Known Subclasses:
ParallelReliabilityFunction
,SerialReliabilityFunction
,SumReliabilityFunction
public abstract class ReliabilityFunctionSet extends java.lang.Object implements ReliabilityFunction
TheReliabilityFunctionSet
is the basic class for functions defined over a set ofReliabilityFunction
s.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<ReliabilityFunction>
functions
The set ofReliabilityFunction
s.
-
Constructor Summary
Constructors Constructor Description ReliabilityFunctionSet()
Constructs aReliabilityFunctionSet
.ReliabilityFunctionSet(java.util.Set<ReliabilityFunction> functions)
Constructs aParallelReliabilityFunction
with a given set ofReliabilityFunction
s.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ReliabilityFunction function)
Adds aReliabilityFunction
.java.util.Set<ReliabilityFunction>
getFunctions()
Returns the set ofReliabilityFunction
s.java.util.List<java.lang.Double>
getY(java.util.List<java.lang.Double> xs)
Returns a list ofy
values for a given list ofx
value.
-
-
-
Field Detail
-
functions
protected java.util.Set<ReliabilityFunction> functions
The set ofReliabilityFunction
s.
-
-
Constructor Detail
-
ReliabilityFunctionSet
public ReliabilityFunctionSet()
Constructs aReliabilityFunctionSet
.
-
ReliabilityFunctionSet
public ReliabilityFunctionSet(java.util.Set<ReliabilityFunction> functions)
Constructs aParallelReliabilityFunction
with a given set ofReliabilityFunction
s.- Parameters:
functions
- the reliability functions
-
-
Method Detail
-
getFunctions
public java.util.Set<ReliabilityFunction> getFunctions()
Returns the set ofReliabilityFunction
s.- Returns:
- the reliability functions
-
add
public void add(ReliabilityFunction function)
Adds aReliabilityFunction
.- Parameters:
function
- the function to set
-
getY
public java.util.List<java.lang.Double> getY(java.util.List<java.lang.Double> xs)
Description copied from interface:Function
Returns a list ofy
values for a given list ofx
value.
-
-