Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(String, Variable<T>) - Method in class jromp.parallel.var.Variables
-
Adds a variable with the specified name to the map of variables.
- add(T) - Static method in class jromp.parallel.operation.Operations
-
Creates an add operation.
- AddOperation<T> - Class in jromp.parallel.operation
-
Operation to add a value to another value.
- apply(T) - Method in interface jromp.parallel.operation.Operation
-
Applies the operation to the specified value.
- assign(T) - Static method in class jromp.parallel.operation.Operations
-
Creates an assign operation.
- AssignOperation<T> - Class in jromp.parallel.operation
-
Operation to assign a value to another value.
- Atomic - Class in jromp.parallel.construct.atomic
-
Class to perform atomic operations on shared variables.
- AtomicVariable<T> - Class in jromp.parallel.var
-
A variable that performs atomic operations over its value.
- AtomicVariable(T) - Constructor for class jromp.parallel.var.AtomicVariable
-
Constructs a new atomic variable with the given value.
- await() - Method in class jromp.parallel.Barrier
-
Causes the current thread to wait until all threads have reached the barrier.
B
- band() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- Barrier - Class in jromp.parallel
-
A barrier is a synchronization construct that allows multiple threads to wait for each other at a common point.
- Barrier(String, int) - Constructor for class jromp.parallel.Barrier
-
Constructs a barrier with the specified name and count.
- bitwiseAnd(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a bitwise AND operation.
- BitwiseAnd<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for bitwise AND.
- BitwiseAndOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a bitwise AND operation on a value.
- bitwiseOr(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a bitwise OR operation.
- BitwiseOr<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for bitwise OR.
- BitwiseOrOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a bitwise OR operation on a value.
- bitwiseXor(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a bitwise XOR operation.
- BitwiseXor<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for bitwise XOR.
- BitwiseXorOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a bitwise XOR operation on a value.
- block(Task) - Method in class jromp.parallel.Parallel
-
Executes a task in a parallel block, using the default variables.
- bor() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- bxor() - Static method in class jromp.parallel.var.reduction.ReductionOperations
C
- checkThreads(int) - Static method in class jromp.parallel.utils.Utils
-
Check the number of threads.
- combine(Boolean, Boolean) - Method in class jromp.parallel.var.reduction.LogicalAnd
- combine(Boolean, Boolean) - Method in class jromp.parallel.var.reduction.LogicalOr
- combine(T, T) - Method in class jromp.parallel.var.reduction.BitwiseAnd
- combine(T, T) - Method in class jromp.parallel.var.reduction.BitwiseOr
- combine(T, T) - Method in class jromp.parallel.var.reduction.BitwiseXor
- combine(T, T) - Method in class jromp.parallel.var.reduction.Max
- combine(T, T) - Method in class jromp.parallel.var.reduction.Min
- combine(T, T) - Method in class jromp.parallel.var.reduction.Mul
- combine(T, T) - Method in interface jromp.parallel.var.reduction.ReductionOperation
-
Combines two values of the reduction operation.
- combine(T, T) - Method in class jromp.parallel.var.reduction.Sum
- Constants - Class in jromp
-
Constants used in the library.
- contains(String) - Method in class jromp.parallel.var.Variables
-
Checks if the variable map contains a variable with the specified name.
- copy() - Method in class jromp.parallel.var.AtomicVariable
- copy() - Method in class jromp.parallel.var.FirstPrivateVariable
- copy() - Method in class jromp.parallel.var.LastPrivateVariable
- copy() - Method in class jromp.parallel.var.PrivateVariable
- copy() - Method in class jromp.parallel.var.ReductionVariable
- copy() - Method in class jromp.parallel.var.SharedVariable
- copy() - Method in interface jromp.parallel.var.Variable
-
Creates a copy of the variable.
- copy() - Method in class jromp.parallel.var.Variables
-
Creates a copy of the Variables object.
- create() - Static method in class jromp.parallel.var.Variables
-
Creates a new instance of the Variables class.
- create(Map<String, Variable<?>>) - Static method in class jromp.parallel.var.Variables
-
Creates a new instance of the Variables class with the provided variable map.
- Critical - Class in jromp.parallel.construct.critical
-
The Critical class provides a mechanism for executing tasks in parallel with critical sections.
D
- DEFAULT_THREADS - Static variable in class jromp.Constants
-
The default number of threads to use.
- defaultConfig() - Static method in class jromp.parallel.Parallel
-
Create a new parallel execution block with the default number of threads.
- divide(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a divide operation.
- DivideOperation<T> - Class in jromp.parallel.operation
-
Operation to divide a value by another value.
E
- end() - Method in class jromp.parallel.var.AtomicVariable
- end() - Method in class jromp.parallel.var.FirstPrivateVariable
- end() - Method in class jromp.parallel.var.LastPrivateVariable
- end() - Method in class jromp.parallel.var.PrivateVariable
- end() - Method in class jromp.parallel.var.ReductionVariable
- end() - Method in class jromp.parallel.var.SharedVariable
- end() - Method in interface jromp.parallel.var.Variable
-
Performs any cleanup operations that may be required by the variable.
- end() - Method in class jromp.parallel.var.Variables
-
Ends all variables in the variable map.
- enter(String, int, Variables, Task) - Static method in class jromp.parallel.construct.critical.Critical
-
Enters a critical section and executes the provided task.
F
- FirstPrivateVariable<T> - Class in jromp.parallel.var
-
A variable that is not shared between threads.
- FirstPrivateVariable(T) - Constructor for class jromp.parallel.var.FirstPrivateVariable
-
Constructs a new private variable with the given value.
- ForTask - Interface in jromp.parallel.task
-
Interface for a `for loop` task.
- fromIdentifier(String) - Static method in class jromp.parallel.var.reduction.ReductionOperations
G
- get() - Method in class jromp.parallel.operation.AddOperation
- get() - Method in class jromp.parallel.operation.AssignOperation
- get() - Method in class jromp.parallel.operation.BitwiseAndOperation
- get() - Method in class jromp.parallel.operation.BitwiseOrOperation
- get() - Method in class jromp.parallel.operation.BitwiseXorOperation
- get() - Method in class jromp.parallel.operation.DivideOperation
- get() - Method in class jromp.parallel.operation.MaxOperation
- get() - Method in class jromp.parallel.operation.MinOperation
- get() - Method in class jromp.parallel.operation.MultiplyOperation
- get() - Method in interface jromp.parallel.operation.Operation
-
Returns the operation as a
UnaryOperator
. - get() - Method in class jromp.parallel.operation.ShiftLeftOperation
- get() - Method in class jromp.parallel.operation.ShiftRightOperation
- get() - Method in class jromp.parallel.operation.SubtractOperation
- get(String) - Method in class jromp.parallel.var.Variables
-
Retrieves the variable with the specified name from the Variables object.
- getCount() - Method in class jromp.parallel.Barrier
-
Returns the number of threads that must reach the barrier before they can continue.
- getCurrentCount() - Method in class jromp.parallel.Barrier
-
Returns the number of threads that have reached the barrier.
- getInitialValue(Class<T>) - Static method in class jromp.parallel.var.InitialValues
-
Returns the initial value for the given class.
- getName() - Method in class jromp.parallel.Barrier
-
Returns the name of the barrier.
- getT(T, double) - Static method in class jromp.parallel.utils.Utils.NumberUtils
-
Returns the value of the number received, converted to the type of the reduction operation.
- getVariablesOfType(Class<T>) - Method in class jromp.parallel.var.Variables
-
Retrieves a list of variables of a specified type.
- getWTime() - Static method in class jromp.parallel.utils.Utils
-
Get the elapsed wall clock time.
H
- hasAtomic() - Method in class jromp.parallel.var.SharedVariable
-
Checks if the shared variable has an atomic variable representation.
I
- identifier() - Method in class jromp.parallel.operation.AddOperation
- identifier() - Method in class jromp.parallel.operation.AssignOperation
- identifier() - Method in class jromp.parallel.operation.BitwiseAndOperation
- identifier() - Method in class jromp.parallel.operation.BitwiseOrOperation
- identifier() - Method in class jromp.parallel.operation.BitwiseXorOperation
- identifier() - Method in class jromp.parallel.operation.DivideOperation
- identifier() - Method in class jromp.parallel.operation.MaxOperation
- identifier() - Method in class jromp.parallel.operation.MinOperation
- identifier() - Method in class jromp.parallel.operation.MultiplyOperation
- identifier() - Method in interface jromp.parallel.operation.Operation
-
Returns the identifier of the operation.
- identifier() - Method in class jromp.parallel.operation.ShiftLeftOperation
- identifier() - Method in class jromp.parallel.operation.ShiftRightOperation
- identifier() - Method in class jromp.parallel.operation.SubtractOperation
- identifier() - Method in class jromp.parallel.var.reduction.BitwiseAnd
- identifier() - Method in class jromp.parallel.var.reduction.BitwiseOr
- identifier() - Method in class jromp.parallel.var.reduction.BitwiseXor
- identifier() - Method in class jromp.parallel.var.reduction.LogicalAnd
- identifier() - Method in class jromp.parallel.var.reduction.LogicalOr
- identifier() - Method in class jromp.parallel.var.reduction.Max
- identifier() - Method in class jromp.parallel.var.reduction.Min
- identifier() - Method in class jromp.parallel.var.reduction.Mul
- identifier() - Method in interface jromp.parallel.var.reduction.ReductionOperation
-
Returns the identifier of the reduction operation.
- identifier() - Method in class jromp.parallel.var.reduction.Sum
- initialize(Variable<Boolean>) - Method in class jromp.parallel.var.reduction.LogicalAnd
- initialize(Variable<Boolean>) - Method in class jromp.parallel.var.reduction.LogicalOr
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.BitwiseAnd
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.BitwiseOr
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.BitwiseXor
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.Max
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.Min
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.Mul
- initialize(Variable<T>) - Method in interface jromp.parallel.var.reduction.ReductionOperation
-
Initializes the variable with the identity value of the reduction operation.
- initialize(Variable<T>) - Method in class jromp.parallel.var.reduction.Sum
- InitialValues - Class in jromp.parallel.var
-
A class that provides initial values for variables.
- isEmpty() - Method in class jromp.parallel.var.Variables
-
Checks if the variable map is empty.
- isMaster(int) - Static method in class jromp.parallel.utils.Utils
-
Check if the thread is the master thread.
- isMerged() - Method in class jromp.parallel.var.ReductionVariable
- isWaiting() - Method in class jromp.parallel.Barrier
-
Returns a flag to indicate whether the threads are waiting at the barrier.
J
- join() - Method in class jromp.parallel.Parallel
-
Wait for all threads to finish.
- jromp - package jromp
- jromp.parallel - package jromp.parallel
- jromp.parallel.construct.atomic - package jromp.parallel.construct.atomic
- jromp.parallel.construct.critical - package jromp.parallel.construct.critical
- jromp.parallel.operation - package jromp.parallel.operation
- jromp.parallel.task - package jromp.parallel.task
- jromp.parallel.utils - package jromp.parallel.utils
- jromp.parallel.var - package jromp.parallel.var
- jromp.parallel.var.reduction - package jromp.parallel.var.reduction
L
- land() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- LastPrivateVariable<T> - Class in jromp.parallel.var
-
A variable that is not shared between threads.
- LastPrivateVariable(T) - Constructor for class jromp.parallel.var.LastPrivateVariable
-
Constructs a new private variable with the default value.
- LogicalAnd - Class in jromp.parallel.var.reduction
-
Reduction operation for logical AND.
- LogicalOr - Class in jromp.parallel.var.reduction
-
Reduction operation for logical OR.
- lor() - Static method in class jromp.parallel.var.reduction.ReductionOperations
M
- max() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- max(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a max operation.
- Max<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for maximum.
- MAX_THREADS - Static variable in class jromp.Constants
-
The maximum number of threads that can be used.
- MaxOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a max operation on a value.
- merge() - Method in class jromp.parallel.var.ReductionVariable
- min() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- min(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a min operation.
- Min<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for minimum.
- MIN_THREADS - Static variable in class jromp.Constants
-
The minimum number of threads that can be used.
- MinOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a min operation on a value.
- mul() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- Mul<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for multiplication.
- multiply(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a multiply operation.
- MultiplyOperation<T> - Class in jromp.parallel.operation
-
Operation to multiply a value by another value.
N
- NUM_THREADS - Static variable in class jromp.Constants
-
The name of the variable that specifies the number of threads.
O
- Operation<T> - Interface in jromp.parallel.operation
-
Operation interface that defines the basic structure of an operation.
- Operations - Class in jromp.parallel.operation
-
Operations to perform on values.
P
- Parallel - Class in jromp.parallel
-
Parallel execution block.
- parallelFor(int, int, boolean, ForTask) - Method in class jromp.parallel.Parallel
-
Executes a for loop in parallel with the given start and end indices, using a task implementation.
- PrivateVariable<T> - Class in jromp.parallel.var
-
A variable that is not shared between threads.
- PrivateVariable(T) - Constructor for class jromp.parallel.var.PrivateVariable
-
Constructs a new private variable with the given value.
R
- read(String, Variables) - Static method in class jromp.parallel.construct.atomic.Atomic
-
Reads the value of a shared variable.
- ReductionOperation<T> - Interface in jromp.parallel.var.reduction
-
Interface for reduction operations.
- ReductionOperations - Class in jromp.parallel.var.reduction
-
Operations for reduction variables.
- ReductionVariable<T> - Class in jromp.parallel.var
-
Represents a reduction variable that its value is reduced from private variables using a reduction operation.
- ReductionVariable(ReductionOperation<T>, T) - Constructor for class jromp.parallel.var.ReductionVariable
-
Constructs a new reduction variable with the given reduction operation and initial value.
- registerBigNumbers() - Static method in class jromp.parallel.var.InitialValues
-
Registers the initial values for big numbers (
BigInteger
andBigDecimal
), with initial values ofBigInteger.ZERO
andBigDecimal.ZERO
respectively. - registerInitialValue(Class<T>, T) - Static method in class jromp.parallel.var.InitialValues
-
Registers an initial value for the given class.
- reset() - Method in class jromp.parallel.Barrier
-
Resets the barrier.
- run(int, int, int) - Method in interface jromp.parallel.task.ForTask
-
Run the task.
- run(int, int, int, Variables) - Method in interface jromp.parallel.task.ForTask
-
Run the task.
- run(int, Variables) - Method in interface jromp.parallel.task.Task
-
Run the task.
S
- sections(boolean, List<Task>) - Method in class jromp.parallel.Parallel
-
Executes the given tasks in separate sections.
- sections(boolean, Task...) - Method in class jromp.parallel.Parallel
-
Executes the given tasks in separate sections.
- set(T) - Method in class jromp.parallel.var.AtomicVariable
- set(T) - Method in class jromp.parallel.var.FirstPrivateVariable
- set(T) - Method in class jromp.parallel.var.LastPrivateVariable
- set(T) - Method in class jromp.parallel.var.PrivateVariable
- set(T) - Method in class jromp.parallel.var.ReductionVariable
- set(T) - Method in class jromp.parallel.var.SharedVariable
- set(T) - Method in interface jromp.parallel.var.Variable
-
Sets the value of the variable.
- SharedVariable<T> - Class in jromp.parallel.var
-
A variable that is shared between threads.
- SharedVariable(T) - Constructor for class jromp.parallel.var.SharedVariable
-
Constructs a new shared variable with the given value.
- shiftLeft(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a shift left operation.
- ShiftLeftOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a left shift operation on a value.
- shiftRight(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a shift right operation.
- ShiftRightOperation<T> - Class in jromp.parallel.operation
-
Operation to perform a shift right operation on a value.
- singleBlock(boolean, Task) - Method in class jromp.parallel.Parallel
-
Submits a block that can only be executed by a single thread.
- size() - Method in class jromp.parallel.var.Variables
-
Returns the size of the map of variables.
- subtract(T) - Static method in class jromp.parallel.operation.Operations
-
Creates a subtract operation.
- SubtractOperation<T> - Class in jromp.parallel.operation
-
Operation to subtract a value from another value.
- sum() - Static method in class jromp.parallel.var.reduction.ReductionOperations
- Sum<T> - Class in jromp.parallel.var.reduction
-
Reduction operation for addition.
T
- Task - Interface in jromp.parallel.task
-
A task to be run in parallel.
- toAtomic() - Method in class jromp.parallel.var.SharedVariable
-
Converts a
SharedVariable
to anAtomicVariable
. - toString() - Method in class jromp.parallel.Barrier
- toString() - Method in class jromp.parallel.var.AtomicVariable
- toString() - Method in class jromp.parallel.var.FirstPrivateVariable
- toString() - Method in class jromp.parallel.var.LastPrivateVariable
- toString() - Method in class jromp.parallel.var.PrivateVariable
- toString() - Method in class jromp.parallel.var.reduction.BitwiseAnd
- toString() - Method in class jromp.parallel.var.reduction.BitwiseOr
- toString() - Method in class jromp.parallel.var.reduction.BitwiseXor
- toString() - Method in class jromp.parallel.var.reduction.LogicalAnd
- toString() - Method in class jromp.parallel.var.reduction.LogicalOr
- toString() - Method in class jromp.parallel.var.reduction.Max
- toString() - Method in class jromp.parallel.var.reduction.Min
- toString() - Method in class jromp.parallel.var.reduction.Mul
- toString() - Method in class jromp.parallel.var.reduction.Sum
- toString() - Method in class jromp.parallel.var.ReductionVariable
- toString() - Method in class jromp.parallel.var.SharedVariable
- toString() - Method in class jromp.parallel.var.Variables
-
Returns a string representation of the Variables object.
U
- update(String, Operation<T>, Variables) - Static method in class jromp.parallel.construct.atomic.Atomic
-
Updates the value of a shared variable based on the provided operation.
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.AtomicVariable
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.FirstPrivateVariable
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.LastPrivateVariable
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.PrivateVariable
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.ReductionVariable
- update(UnaryOperator<T>) - Method in class jromp.parallel.var.SharedVariable
- update(UnaryOperator<T>) - Method in interface jromp.parallel.var.Variable
-
Applies the given
UnaryOperator
to update the value of the variable. - update(Operation<T>) - Method in interface jromp.parallel.var.Variable
-
Updates the value of the variable using the given operation.
- Utils - Class in jromp.parallel.utils
-
Utility methods.
- Utils.NumberUtils - Class in jromp.parallel.utils
V
- value() - Method in class jromp.parallel.var.AtomicVariable
- value() - Method in class jromp.parallel.var.FirstPrivateVariable
- value() - Method in class jromp.parallel.var.LastPrivateVariable
- value() - Method in class jromp.parallel.var.PrivateVariable
- value() - Method in class jromp.parallel.var.ReductionVariable
- value() - Method in class jromp.parallel.var.SharedVariable
- value() - Method in interface jromp.parallel.var.Variable
-
Retrieves the value of the variable.
- Variable<T> - Interface in jromp.parallel.var
-
The Variable interface represents a variable that can store a value of any type.
- Variables - Class in jromp.parallel.var
-
Represents a collection of variables.
W
- withThreads(int) - Static method in class jromp.parallel.Parallel
-
Create a new parallel execution block with the given number of threads.
- withVariables(Variables) - Method in class jromp.parallel.Parallel
-
Set the variables to use in the parallel block.
- write(String, T, Variables) - Static method in class jromp.parallel.construct.atomic.Atomic
-
Writes a value to a shared variable.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form