Class Component.Builder

java.lang.Object
edu.kit.ipd.are.dsexplore.analysis.security.model.Component.Builder
Enclosing class:
Component

public static class Component.Builder extends Object
Builder for a Component to make things more clear
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new Builder for Components
  • Method Details

    • TTDV

      public Component.Builder TTDV(double val)
      Adds a value for Time To Detect Vulnerability
      Parameters:
      val - (new) TTDV
      Returns:
      updated Builder
    • PoCoB

      public Component.Builder PoCoB(double val)
      Adds a value as Prob. of Component Break
      Parameters:
      val - (new) PoCoB
      Returns:
      updated Builder
    • name

      public Component.Builder name(String name)
      Adds a name for the component
      Parameters:
      name - Name of the component
      Returns:
      updated Builder
    • build

      public Component build() throws IllegalArgumentException
      Builds the component. Throws an IllegalArgumentException if PoCoB or TTDV are not set.
      Returns:
      the Component constructed with this builder
      Throws:
      IllegalArgumentException - if PoCoB or TTDV are not set.