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 SectionBuilder
create()
Create a new section builder.Sets the task to be executed in the section.Sets theVariables
to 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 theVariables
to be used inside the section.- Parameters:
variables
- The variables to use inside the section.- Returns:
- The
SectionBuilder
instance.
-
build
Builds and returns a list of sections.
-