Class ReliabilityFunctionPlotPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ReliabilityFunctionPlotPanel extends JPanel
The ReliabilityFunctionPlotPanel is a basic GUI to visualize the reliability Aspects for given ReliabilityFunctions.
See Also:
  • Field Details

    • plot

      protected ptolemy.plot.Plot plot
      The used Ptolemy Plot.
    • sampleCollector

      protected SampleCollector sampleCollector
      The used sampleCollector to determine the Samples of a ReliabilityFunction under a given Aspect.
    • aspects

      protected final List<Aspect> aspects
      The list of samplers that can be chosen.
    • picker

      The used aspect picker.
    • panel

      protected JPanel panel
      The panel.
    • reliabilityFunctions

      protected Map<String,ReliabilityFunction> reliabilityFunctions
      The list of reliabilityFunctions that shall be plotted.
    • names

      protected List<String> names
      The names of the reliabilityFunctions in a distinct order.
    • indices

      protected final Map<Aspect,Integer> indices
      The map keeps track of the aspect and its index in the picker.
  • Constructor Details

  • Method Details

    • get

      protected JPanel get(Map<String,ReliabilityFunction> reliabilityFunctions)
      Returns the JPanel for a given set of ReliabilityFunctions.
      Parameters:
      reliabilityFunctions - the reliabilityFunctions
      Returns:
      the panel
    • setLabels

      protected void setLabels(String xLabel, String yLabel)
      Sets the labels for the axes.
      Parameters:
      xLabel - the label for the x-axis
      yLabel - the label for the y-axis
    • paint

      protected void paint(Aspect aspect)
      Repaints the diagram under a given Aspect.
      Parameters:
      aspect - the aspect