Class SectionBuilder

java.lang.Object
jromp.parallel.builder.SectionBuilder
All Implemented Interfaces:
Builder<List<Section>>

public class SectionBuilder extends Object implements Builder<List<Section>>
Builder for parallel sections.
  • Method Details

    • create

      public static SectionBuilder create()
      Create a new section builder.
      Returns:
      The section builder.
    • add

      public SectionBuilder add()
      Add a new section to the builder.
      Returns:
      The section builder.
    • task

      public SectionBuilder task(Task task)
      Sets the task to be executed in the section.
      Parameters:
      task - The task to execute.
      Returns:
      The section builder.
    • variables

      public SectionBuilder variables(Variables variables)
      Sets the Variables to be used inside the section.
      Parameters:
      variables - The variables to use inside the section.
      Returns:
      The SectionBuilder instance.
    • build

      public List<Section> build()
      Builds and returns a list of sections.
      Specified by:
      build in interface Builder<List<Section>>
      Returns:
      The list of sections.