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 Object implements Aspect
The AbstractAspect is the basic class for all Aspects.
  • Field Details

    • name

      protected final String name
      The name of the Aspect.
    • xAxis

      protected final String xAxis
      The label of the x-axis.
    • yAxis

      protected final String yAxis
      The label of the y-axis.
    • lower

      protected double lower
      The standard lower bound is 0.
  • Constructor Details

    • AbstractAspect

      public AbstractAspect(String name, String xAxis, String yAxis)
      Constructs an AbstractAspect with a given name and labels for the x-axis and y-axis.
      Parameters:
      name - the name of the aspect
      xAxis - the label of the x-axis
      yAxis - the label of the y-axis
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Aspect
      Returns the name of the Aspect.
      Specified by:
      getName in interface Aspect
      Returns:
      the name of the aspect
    • getXAxis

      public String getXAxis()
      Description copied from interface: Aspect
      Returns the label for the x-axis .
      Specified by:
      getXAxis in interface Aspect
      Returns:
      the label for the x-axis
    • getYAxis

      public String getYAxis()
      Description copied from interface: Aspect
      Returns the label for the x-axis.
      Specified by:
      getYAxis in interface Aspect
      Returns:
      the label for the y-axis
    • getLower

      public double getLower(ReliabilityFunction reliabilityFunction)
      Description copied from interface: Aspect
      Returns the lower bound of the ReliabilityFunction under the current Aspect.
      Specified by:
      getLower in interface Aspect
      Parameters:
      reliabilityFunction - the reliabilityFunction
      Returns:
      the lower bound of the reliability Function