Package org.jreliability.gui.aspect
Class AbstractAspect
- java.lang.Object
-
- org.jreliability.gui.aspect.AbstractAspect
-
- All Implemented Interfaces:
Aspect
- Direct Known Subclasses:
DensityAspect
,FailureRateAspect
,ReliabilityFunctionAspect
,UnreliabilityFunctionAspect
public abstract class AbstractAspect extends java.lang.Object implements Aspect
TheAbstractAspect
is the basic class for allAspect
s.
-
-
Constructor Summary
Constructors Constructor Description AbstractAspect(java.lang.String name, java.lang.String xAxis, java.lang.String yAxis)
Constructs anAbstractAspect
with a given name and labels for the x-axis and y-axis.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLower(ReliabilityFunction reliabilityFunction)
Returns the lower bound of theReliabilityFunction
under the currentAspect
.java.lang.String
getName()
Returns the name of theAspect
.java.lang.String
getXAxis()
Returns the label for the x-axis .java.lang.String
getYAxis()
Returns the label for the x-axis.
-
-
-
Field Detail
-
name
protected final java.lang.String name
The name of theAspect
.
-
xAxis
protected final java.lang.String xAxis
The label of the x-axis.
-
yAxis
protected final java.lang.String yAxis
The label of the y-axis.
-
lower
protected double lower
The standard lower bound is0
.
-
-
Constructor Detail
-
AbstractAspect
public AbstractAspect(java.lang.String name, java.lang.String xAxis, java.lang.String yAxis)
Constructs anAbstractAspect
with a given name and labels for the x-axis and y-axis.- Parameters:
name
- the name of the aspectxAxis
- the label of the x-axisyAxis
- the label of the y-axis
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Aspect
Returns the name of theAspect
.
-
getXAxis
public java.lang.String getXAxis()
Description copied from interface:Aspect
Returns the label for the x-axis .
-
getYAxis
public java.lang.String getYAxis()
Description copied from interface:Aspect
Returns the label for the x-axis.
-
getLower
public double getLower(ReliabilityFunction reliabilityFunction)
Description copied from interface:Aspect
Returns the lower bound of theReliabilityFunction
under the currentAspect
.
-
-