Package jromp.parallel.builder
Class SectionBuilder
java.lang.Object
jromp.parallel.builder.SectionBuilder
Builder for parallel sections.
-
Method Summary
Modifier and TypeMethodDescriptionadd()Add a new section to the builder.build()Builds and returns a list of sections.static SectionBuildercreate()Create a new section builder.Sets the task to be executed in the section.Sets theVariablesto be used inside the section.
-
Method Details
-
create
Create a new section builder.- Returns:
- The section builder.
-
add
Add a new section to the builder.- Returns:
- The section builder.
-
task
Sets the task to be executed in the section.- Parameters:
task- The task to execute.- Returns:
- The section builder.
-
variables
Sets theVariablesto be used inside the section.- Parameters:
variables- The variables to use inside the section.- Returns:
- The
SectionBuilderinstance.
-
build
Builds and returns a list of sections.
-