Package io.openems.common.types
Class EdgeConfig.ActualEdgeConfig.Builder
java.lang.Object
io.openems.common.types.EdgeConfig.ActualEdgeConfig.Builder
- Enclosing class:
- EdgeConfig.ActualEdgeConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(String id, EdgeConfig.Component component) Adds aEdgeConfig.Component
.addFactory
(String id, EdgeConfig.Factory factory) Add a Factory.build()
Builds theEdgeConfig.ActualEdgeConfig
.Builds theEdgeConfig
.getComponent
(String componentId) Gets aEdgeConfig.Component
by its Component-ID.Gets theEdgeConfig.Component
s in the builder.Gets theEdgeConfig.Factory
s in the builder.void
Removes aEdgeConfig.Component
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addComponent
Adds aEdgeConfig.Component
.- Parameters:
id
- the Component-IDcomponent
- theEdgeConfig.Component
- Returns:
- myself
-
removeComponent
Removes aEdgeConfig.Component
.- Parameters:
id
- the Component-ID
-
getComponent
Gets aEdgeConfig.Component
by its Component-ID.- Parameters:
componentId
- the Component-ID- Returns:
- the
EdgeConfig.Component
asOptional
-
getComponents
Gets theEdgeConfig.Component
s in the builder.- Returns:
- components
-
addFactory
Add a Factory.- Parameters:
id
- the Factory-IDfactory
- theEdgeConfig.Factory
- Returns:
- myself
-
getFactories
Gets theEdgeConfig.Factory
s in the builder.- Returns:
- components
-
build
Builds theEdgeConfig.ActualEdgeConfig
.- Returns:
EdgeConfig.ActualEdgeConfig
-
buildEdgeConfig
Builds theEdgeConfig
.- Returns:
EdgeConfig
-