Index

A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

activate() - Method in class jromp.concurrent.ThreadLocalFlag
Activates the flag (sets it to true).
add(T) - Static method in class jromp.operation.Operations
Creates an add operation.
AddOperation<T> - Class in jromp.operation
Operation to add a value to another value.
allThreads() - Static method in class jromp.JROMP
Configures the parallel runtime with the default number of threads.
apply(T) - Method in interface jromp.operation.Operation
Applies the operation to the specified value.
assign(T) - Static method in class jromp.operation.Operations
Creates an assign operation.
AssignOperation<T> - Class in jromp.operation
Operation to assign a value to another value.
Atomic - Class in jromp.construct.atomic
Class to perform atomic operations on SharedVariables.
AtomicVariable<T> - Class in jromp.var
A variable that performs atomic operations over its value.
AtomicVariable(T) - Constructor for class jromp.var.AtomicVariable
Constructs a new atomic variable with the given value.
await() - Method in class jromp.Barrier
Causes the current thread to wait until all threads have reached the barrier.

B

band() - Static method in class jromp.var.reduction.ReductionOperations
Returns a bitwise AND operation.
barrier() - Method in class jromp.JROMP
Blocks the execution of the threads until all threads reach the barrier.
Barrier - Class in jromp
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.Barrier
Constructs a barrier with the specified name and count.
bitwiseAnd(T) - Static method in class jromp.operation.Operations
Creates a bitwise AND operation.
BitwiseAnd<T> - Class in jromp.var.reduction
Reduction operation for bitwise AND.
BitwiseAndOperation<T> - Class in jromp.operation
Operation to perform a bitwise AND operation on a value.
bitwiseOr(T) - Static method in class jromp.operation.Operations
Creates a bitwise OR operation.
BitwiseOr<T> - Class in jromp.var.reduction
Reduction operation for bitwise OR.
BitwiseOrOperation<T> - Class in jromp.operation
Operation to perform a bitwise OR operation on a value.
bitwiseXor(T) - Static method in class jromp.operation.Operations
Creates a bitwise XOR operation.
BitwiseXor<T> - Class in jromp.var.reduction
Reduction operation for bitwise XOR.
BitwiseXorOperation<T> - Class in jromp.operation
Operation to perform a bitwise XOR operation on a value.
bor() - Static method in class jromp.var.reduction.ReductionOperations
Returns a bitwise OR operation.
bxor() - Static method in class jromp.var.reduction.ReductionOperations
Returns a bitwise XOR operation.

C

castClass(Class<?>) - Static method in class jromp.Utils
Casts the class to the given type.
CLASS_NAME - Static variable in class jromp.concurrent.JrompThread
The class name of this thread.
combine(Boolean, Boolean) - Method in class jromp.var.reduction.LogicalAnd
 
combine(Boolean, Boolean) - Method in class jromp.var.reduction.LogicalOr
 
combine(T, T) - Method in class jromp.var.reduction.BitwiseAnd
 
combine(T, T) - Method in class jromp.var.reduction.BitwiseOr
 
combine(T, T) - Method in class jromp.var.reduction.BitwiseXor
 
combine(T, T) - Method in class jromp.var.reduction.Max
 
combine(T, T) - Method in class jromp.var.reduction.Min
 
combine(T, T) - Method in class jromp.var.reduction.Mul
 
combine(T, T) - Method in interface jromp.var.reduction.ReductionOperation
Combines two values of the reduction operation.
combine(T, T) - Method in class jromp.var.reduction.Sum
 
Constants - Class in jromp
Constants used in the library.
Critical - Class in jromp.construct.critical
The Critical class provides a mechanism for executing tasks in parallel with critical sections.

D

deactivate() - Method in class jromp.concurrent.ThreadLocalFlag
Deactivates the flag (sets it to false).
DEFAULT_THREADS - Static variable in class jromp.Constants
The default number of threads to use.
distributeToAll(Runnable) - Method in class jromp.concurrent.SimpleRoundRobinExecutor
 
divide(T) - Static method in class jromp.operation.Operations
Creates a divide operation.
DivideOperation<T> - Class in jromp.operation
Operation to divide a value by another value.

E

end() - Method in class jromp.var.AtomicVariable
 
end() - Method in class jromp.var.FirstPrivateVariable
 
end() - Method in class jromp.var.LastPrivateVariable
 
end() - Method in class jromp.var.PrivateVariable
 
end() - Method in class jromp.var.ReductionVariable
 
end() - Method in class jromp.var.SharedVariable
 
end() - Method in class jromp.var.ThreadPrivateVariable
 
end() - Method in interface jromp.var.Variable
Performs any cleanup operations that may be required by the variable.
enter(String, Task) - Static method in class jromp.construct.critical.Critical
Enters a critical section and executes the provided task.
execute(Runnable) - Method in class jromp.concurrent.SimpleRoundRobinExecutor
Executes the given runnable on the next executor in the round-robin sequence.

F

FirstPrivateVariable<T> - Class in jromp.var
A variable that is not shared between threads.
FirstPrivateVariable(T) - Constructor for class jromp.var.FirstPrivateVariable
Constructs a new private variable with the given value.
ForTask - Interface in jromp.task
Interface for a `for loop` task.
fromIdentifier(String) - Static method in class jromp.var.reduction.ReductionOperations
Returns a reduction operation from an identifier.

G

get() - Method in class jromp.concurrent.JrompThreadLocal
Returns the value of the thread-local variable for the current thread.
get() - Method in class jromp.operation.AddOperation
 
get() - Method in class jromp.operation.AssignOperation
 
get() - Method in class jromp.operation.BitwiseAndOperation
 
get() - Method in class jromp.operation.BitwiseOrOperation
 
get() - Method in class jromp.operation.BitwiseXorOperation
 
get() - Method in class jromp.operation.DivideOperation
 
get() - Method in class jromp.operation.LogicalAndOperation
 
get() - Method in class jromp.operation.LogicalOrOperation
 
get() - Method in class jromp.operation.MaxOperation
 
get() - Method in class jromp.operation.MinOperation
 
get() - Method in class jromp.operation.MultiplyOperation
 
get() - Method in interface jromp.operation.Operation
Returns the operation as a UnaryOperator.
get() - Method in class jromp.operation.ShiftLeftOperation
 
get() - Method in class jromp.operation.ShiftRightOperation
 
get() - Method in class jromp.operation.SubtractOperation
 
get(Thread) - Method in class jromp.concurrent.JrompThreadLocal
Returns the value of the thread-local variable for the given thread.
getCount() - Method in class jromp.Barrier
Returns the number of threads that must reach the barrier before they can continue.
getCurrentCount() - Method in class jromp.Barrier
Returns the number of threads that have reached the barrier.
getInitialValue(Class<T>) - Static method in class jromp.var.InitialValues
Returns the initial value for the given class.
getName() - Method in class jromp.Barrier
Returns the name of the barrier.
getNumThreads() - Static method in class jromp.JROMP
Get the number of threads used in the current parallel block.
getNumThreadsPerTeam() - Static method in class jromp.JROMP
Get the number of threads per team used in the current parallel block.
getT(T, double) - Static method in class jromp.Utils.NumberUtils
Returns the value of the number received, converted to the type of the reduction operation.
getTeam() - Method in class jromp.concurrent.JrompThread
Thread team getter.
getTeamId() - Method in class jromp.concurrent.ThreadTeam
Team ID getter.
getThreadId() - Static method in class jromp.Utils
Returns ID of the current thread.
getThreadName() - Method in class jromp.concurrent.JrompThread
Thread name getter.
getThreadNum() - Static method in class jromp.JROMP
Get the current thread number.
getThreadTeam() - Static method in class jromp.JROMP
Get the team of the current thread.
getTid() - Method in class jromp.concurrent.JrompThread
Thread id getter.
getWTime() - Static method in class jromp.JROMP
Get the elapsed wall clock time.

H

hasAtomic() - Method in class jromp.var.SharedVariable
Checks if the shared variable has an atomic variable representation.

I

identifier() - Method in class jromp.operation.AddOperation
 
identifier() - Method in class jromp.operation.AssignOperation
 
identifier() - Method in class jromp.operation.BitwiseAndOperation
 
identifier() - Method in class jromp.operation.BitwiseOrOperation
 
identifier() - Method in class jromp.operation.BitwiseXorOperation
 
identifier() - Method in class jromp.operation.DivideOperation
 
identifier() - Method in class jromp.operation.LogicalAndOperation
 
identifier() - Method in class jromp.operation.LogicalOrOperation
 
identifier() - Method in class jromp.operation.MaxOperation
 
identifier() - Method in class jromp.operation.MinOperation
 
identifier() - Method in class jromp.operation.MultiplyOperation
 
identifier() - Method in interface jromp.operation.Operation
Returns the identifier of the operation.
identifier() - Method in class jromp.operation.ShiftLeftOperation
 
identifier() - Method in class jromp.operation.ShiftRightOperation
 
identifier() - Method in class jromp.operation.SubtractOperation
 
identifier() - Method in class jromp.var.reduction.BitwiseAnd
 
identifier() - Method in class jromp.var.reduction.BitwiseOr
 
identifier() - Method in class jromp.var.reduction.BitwiseXor
 
identifier() - Method in class jromp.var.reduction.LogicalAnd
 
identifier() - Method in class jromp.var.reduction.LogicalOr
 
identifier() - Method in class jromp.var.reduction.Max
 
identifier() - Method in class jromp.var.reduction.Min
 
identifier() - Method in class jromp.var.reduction.Mul
 
identifier() - Method in interface jromp.var.reduction.ReductionOperation
Returns the identifier of the reduction operation.
identifier() - Method in class jromp.var.reduction.Sum
 
initialize(Variable<Boolean>) - Method in class jromp.var.reduction.LogicalAnd
 
initialize(Variable<Boolean>) - Method in class jromp.var.reduction.LogicalOr
 
initialize(Variable<T>) - Method in class jromp.var.reduction.BitwiseAnd
 
initialize(Variable<T>) - Method in class jromp.var.reduction.BitwiseOr
 
initialize(Variable<T>) - Method in class jromp.var.reduction.BitwiseXor
 
initialize(Variable<T>) - Method in class jromp.var.reduction.Max
 
initialize(Variable<T>) - Method in class jromp.var.reduction.Min
 
initialize(Variable<T>) - Method in class jromp.var.reduction.Mul
 
initialize(Variable<T>) - Method in interface jromp.var.reduction.ReductionOperation
Initializes the variable with the identity value of the reduction operation.
initialize(Variable<T>) - Method in class jromp.var.reduction.Sum
 
initialValue() - Method in class jromp.concurrent.JrompThreadLocal
Returns the initial value for the variable of the current thread.
initialValue() - Method in class jromp.concurrent.ThreadLocalFlag
 
InitialValues - Class in jromp.var
A class that provides initial values for variables.
isActive() - Method in class jromp.concurrent.ThreadLocalFlag
Returns whether the flag is active.
isInactive() - Method in class jromp.concurrent.ThreadLocalFlag
 
isMaster(int) - Static method in class jromp.JROMP
Check if the thread is the master thread.
isMerged() - Method in class jromp.var.ReductionVariable
Indicates whether the reduction variable has been merged.
isNowait() - Method in class jromp.Barrier
Returns a flag to indicate whether the threads should wait (or not) at the barrier.
isTerminated() - Method in class jromp.concurrent.SimpleRoundRobinExecutor
Returns whether all executors are terminated.
isWaiting() - Method in class jromp.Barrier
Returns a flag to indicate whether the threads are waiting at the barrier.

J

join() - Method in class jromp.JROMP
Wait for all threads to finish and perform the necessary operations.
jromp - package jromp
 
JROMP - Class in jromp
The main class for the parallel runtime.
jromp.concurrent - package jromp.concurrent
 
jromp.construct.atomic - package jromp.construct.atomic
 
jromp.construct.critical - package jromp.construct.critical
 
jromp.operation - package jromp.operation
 
jromp.task - package jromp.task
 
jromp.var - package jromp.var
 
jromp.var.reduction - package jromp.var.reduction
 
JrompThread - Class in jromp.concurrent
A thread class that extends Thread and provides additional information about the thread.
JrompThread(Runnable, int, ThreadTeam) - Constructor for class jromp.concurrent.JrompThread
Constructs a new JrompThread with the given Runnable, thread ID, and team.
JrompThreadLocal<T> - Class in jromp.concurrent
A simple thread-local variable.
JrompThreadLocal() - Constructor for class jromp.concurrent.JrompThreadLocal
Creates a new thread-local variable.

L

land() - Static method in class jromp.var.reduction.ReductionOperations
Returns a logical AND operation.
LastPrivateVariable<T> - Class in jromp.var
A variable that is not shared between threads.
LastPrivateVariable(T) - Constructor for class jromp.var.LastPrivateVariable
Constructs a new private variable with the default value.
logicalAnd(Boolean) - Static method in class jromp.operation.Operations
Creates a logical AND operation.
LogicalAnd - Class in jromp.var.reduction
Reduction operation for logical AND.
LogicalAndOperation - Class in jromp.operation
Operation to perform a logical AND operation on a value.
logicalOr(Boolean) - Static method in class jromp.operation.Operations
Creates a logical OR operation.
LogicalOr - Class in jromp.var.reduction
Reduction operation for logical OR.
LogicalOrOperation - Class in jromp.operation
Operation to perform a logical OR operation on a value.
lor() - Static method in class jromp.var.reduction.ReductionOperations
Returns a logical OR operation.

M

masked(int, Task) - Method in class jromp.JROMP
Executes the given task in the specified thread.
masked(Task) - Method in class jromp.JROMP
Executes the given task in the master thread.
max() - Static method in class jromp.var.reduction.ReductionOperations
Returns a maximum operation.
max(T) - Static method in class jromp.operation.Operations
Creates a max operation.
Max<T> - Class in jromp.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.operation
Operation to perform a max operation on a value.
merge() - Method in class jromp.var.ReductionVariable
Merges the private variables of the threads to the result of the reduction operation.
min() - Static method in class jromp.var.reduction.ReductionOperations
Returns a minimum operation.
min(T) - Static method in class jromp.operation.Operations
Creates a min operation.
Min<T> - Class in jromp.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.operation
Operation to perform a min operation on a value.
mul() - Static method in class jromp.var.reduction.ReductionOperations
Returns a multiplication operation.
Mul<T> - Class in jromp.var.reduction
Reduction operation for multiplication.
multiply(T) - Static method in class jromp.operation.Operations
Creates a multiply operation.
MultiplyOperation<T> - Class in jromp.operation
Operation to multiply a value by another value.

N

newThreadFactory(int) - Static method in class jromp.concurrent.JrompThread
Creates a ThreadFactory that creates new JrompThread instances.

O

Operation<T> - Interface in jromp.operation
Operation interface that defines the basic structure of an operation.
Operations - Class in jromp.operation
Operations to perform on values.

P

parallel(boolean, Task) - Method in class jromp.JROMP
Executes a task in a parallel block, using the current variables, if the condition is met.
parallel(Task) - Method in class jromp.JROMP
Executes a task in a parallel block, using the current variables.
parallelFor(int, int, boolean, boolean, ForTask) - Method in class jromp.JROMP
Executes a for loop in parallel with the given start and end indices, using a task implementation if the condition is met.
parallelFor(int, int, boolean, ForTask) - Method in class jromp.JROMP
Executes a for loop in parallel with the given start and end indices, using a task implementation.
parallelFor(int, int, ForTask) - Method in class jromp.JROMP
Executes a for loop in parallel with the given start and end indices, using a task implementation.
PrivateVariable<T> - Class in jromp.var
A variable that is not shared between threads.
PrivateVariable(T) - Constructor for class jromp.var.PrivateVariable
Constructs a new private variable with the given value.

R

read(SharedVariable<T>) - Static method in class jromp.construct.atomic.Atomic
Reads the value of a shared variable.
ReductionOperation<T> - Interface in jromp.var.reduction
Interface for reduction operations.
ReductionOperations - Class in jromp.var.reduction
Operations for reduction variables.
ReductionVariable<T> - Class in jromp.var
Represents a reduction variable that its value is reduced from "custom" thread-local variables using a reduction operation.
ReductionVariable(ReductionOperation<T>, T) - Constructor for class jromp.var.ReductionVariable
Constructs a new reduction variable with the given reduction operation and initial value.
registerBigNumbers() - Static method in class jromp.var.InitialValues
Registers the initial values for big numbers (BigInteger and BigDecimal), with initial values of BigInteger.ZERO and BigDecimal.ZERO respectively.
registerInitialValue(Class<T>, T) - Static method in class jromp.var.InitialValues
Registers an initial value for the given class.
registerVariables(Variable<?>...) - Method in class jromp.JROMP
Register the given variables into the current parallel context.
remove() - Method in class jromp.concurrent.JrompThreadLocal
Removes the value of the thread-local variable for the current thread.
reset() - Method in class jromp.Barrier
Resets the barrier.
run() - Method in interface jromp.task.Task
Run the task.
run(int, int) - Method in interface jromp.task.ForTask
Run the task.

S

sections(boolean, boolean, Task...) - Method in class jromp.JROMP
Executes the given tasks in separate sections if the condition is met.
sections(boolean, List<Task>) - Method in class jromp.JROMP
Executes the given tasks in separate sections.
sections(boolean, Task...) - Method in class jromp.JROMP
Executes the given tasks in separate sections.
sections(List<Task>) - Method in class jromp.JROMP
Executes the given tasks in separate sections.
sections(Task...) - Method in class jromp.JROMP
Executes the given tasks in separate sections, waiting for the threads to finish.
set(T) - Method in class jromp.concurrent.JrompThreadLocal
Sets the value of the thread-local variable for the current thread.
set(T) - Method in class jromp.var.AtomicVariable
 
set(T) - Method in class jromp.var.FirstPrivateVariable
 
set(T) - Method in class jromp.var.LastPrivateVariable
Sets the value of the variable.
set(T) - Method in class jromp.var.PrivateVariable
 
set(T) - Method in class jromp.var.ReductionVariable
 
set(T) - Method in class jromp.var.SharedVariable
 
set(T) - Method in class jromp.var.ThreadPrivateVariable
 
set(T) - Method in interface jromp.var.Variable
Sets the value of the variable.
setNowait(boolean) - Method in class jromp.Barrier
Sets the nowait flag.
SharedVariable<T> - Class in jromp.var
A variable that is shared between threads.
SharedVariable(T) - Constructor for class jromp.var.SharedVariable
Constructs a new shared variable with the given value.
shiftLeft(T) - Static method in class jromp.operation.Operations
Creates a shift left operation.
ShiftLeftOperation<T> - Class in jromp.operation
Operation to perform a left shift operation on a value.
shiftRight(T) - Static method in class jromp.operation.Operations
Creates a shift right operation.
ShiftRightOperation<T> - Class in jromp.operation
Operation to perform a shift right operation on a value.
shutdown() - Method in class jromp.concurrent.SimpleRoundRobinExecutor
Shuts down all executors.
SimpleRoundRobinExecutor - Class in jromp.concurrent
A simple round-robin executor that distributes tasks to a fixed number of single-threaded executors.
SimpleRoundRobinExecutor(int, ThreadFactory) - Constructor for class jromp.concurrent.SimpleRoundRobinExecutor
Constructs a new simple round-robin executor with the given number of threads.
single(boolean, Task) - Method in class jromp.JROMP
Submits a block that can only be executed by a single thread.
single(Task) - Method in class jromp.JROMP
Submits a block that can only be executed by a single thread.
size() - Method in class jromp.concurrent.ThreadTeam
Returns the number of threads in this team.
subtract(T) - Static method in class jromp.operation.Operations
Creates a subtract operation.
SubtractOperation<T> - Class in jromp.operation
Operation to subtract a value from another value.
sum() - Static method in class jromp.var.reduction.ReductionOperations
Returns a sum operation.
Sum<T> - Class in jromp.var.reduction
Reduction operation for addition.

T

Task - Interface in jromp.task
A task to be run in parallel.
ThreadLocalFlag - Class in jromp.concurrent
A thread-local flag that can be activated and deactivated.
ThreadLocalFlag() - Constructor for class jromp.concurrent.ThreadLocalFlag
Creates a new thread-local flag with the initial value set to false.
ThreadLocalFlag(boolean) - Constructor for class jromp.concurrent.ThreadLocalFlag
Creates a new thread-local flag with the given initial value.
ThreadPrivateVariable<T> - Class in jromp.var
A variable that is private to each thread.
ThreadPrivateVariable(T) - Constructor for class jromp.var.ThreadPrivateVariable
Constructs a new thread private variable with the given value.
ThreadTeam - Class in jromp.concurrent
A thread team is a group of threads that are working together to execute some parallel task.
toAtomic() - Method in class jromp.var.SharedVariable
Converts a SharedVariable to an AtomicVariable.
toString() - Method in class jromp.Barrier
 
toString() - Method in class jromp.concurrent.JrompThread
 
toString() - Method in class jromp.concurrent.ThreadLocalFlag
 
toString() - Method in class jromp.var.AtomicVariable
 
toString() - Method in class jromp.var.FirstPrivateVariable
 
toString() - Method in class jromp.var.LastPrivateVariable
 
toString() - Method in class jromp.var.PrivateVariable
 
toString() - Method in class jromp.var.reduction.BitwiseAnd
 
toString() - Method in class jromp.var.reduction.BitwiseOr
 
toString() - Method in class jromp.var.reduction.BitwiseXor
 
toString() - Method in class jromp.var.reduction.LogicalAnd
 
toString() - Method in class jromp.var.reduction.LogicalOr
 
toString() - Method in class jromp.var.reduction.Max
 
toString() - Method in class jromp.var.reduction.Min
 
toString() - Method in class jromp.var.reduction.Mul
 
toString() - Method in class jromp.var.reduction.Sum
 
toString() - Method in class jromp.var.ReductionVariable
 
toString() - Method in class jromp.var.SharedVariable
 
toString() - Method in class jromp.var.ThreadPrivateVariable
 

U

update(UnaryOperator<T>) - Method in class jromp.var.AtomicVariable
 
update(UnaryOperator<T>) - Method in class jromp.var.FirstPrivateVariable
 
update(UnaryOperator<T>) - Method in class jromp.var.LastPrivateVariable
Applies the given UnaryOperator to update the value of the variable.
update(UnaryOperator<T>) - Method in class jromp.var.PrivateVariable
 
update(UnaryOperator<T>) - Method in class jromp.var.ReductionVariable
 
update(UnaryOperator<T>) - Method in class jromp.var.SharedVariable
 
update(UnaryOperator<T>) - Method in class jromp.var.ThreadPrivateVariable
 
update(UnaryOperator<T>) - Method in interface jromp.var.Variable
Applies the given UnaryOperator to update the value of the variable.
update(Operation<T>) - Method in interface jromp.var.Variable
Updates the value of the variable using the given operation.
update(SharedVariable<T>, Operation<T>) - Static method in class jromp.construct.atomic.Atomic
Updates the value of a shared variable based on the provided operation.
Utils - Class in jromp
Utility methods.
Utils.NumberUtils - Class in jromp
Utility class for number conversions.

V

value() - Method in class jromp.var.AtomicVariable
 
value() - Method in class jromp.var.FirstPrivateVariable
 
value() - Method in class jromp.var.LastPrivateVariable
 
value() - Method in class jromp.var.PrivateVariable
 
value() - Method in class jromp.var.ReductionVariable
 
value() - Method in class jromp.var.SharedVariable
 
value() - Method in class jromp.var.ThreadPrivateVariable
 
value() - Method in interface jromp.var.Variable
Retrieves the value of the variable.
Variable<T> - Interface in jromp.var
The Variable interface represents a variable that can store a value of any type.

W

withInitial(Supplier<? extends S>) - Static method in class jromp.concurrent.JrompThreadLocal
Creates a new thread-local variable with the given initial value.
withThreads(int) - Static method in class jromp.JROMP
Configures the parallel runtime with the specified number of threads.
withThreads(int, int) - Static method in class jromp.JROMP
Configures the parallel runtime with the specified number of threads and threads per team.
write(SharedVariable<T>, T) - Static method in class jromp.construct.atomic.Atomic
Writes a value to a shared variable.
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form