Class Component.Builder
- java.lang.Object
-
- edu.kit.ipd.are.dsexplore.analysis.security.model.Component.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructs a new Builder for Components
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
build()
Builds the component.Component.Builder
name(String name)
Adds a name for the componentComponent.Builder
PoCoB(double val)
Adds a value as Prob.Component.Builder
TTDV(double val)
Adds a value for Time To Detect Vulnerability
-
-
-
Method Detail
-
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 anIllegalArgumentException
if PoCoB or TTDV are not set.- Returns:
- the Component constructed with this builder
- Throws:
IllegalArgumentException
- if PoCoB or TTDV are not set.
-
-