|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgalois.runtime.GaloisRuntime
public final class GaloisRuntime
Provides methods to access Galois runtime from application code.
| Method Summary | ||
|---|---|---|
static
|
foreach(Iterable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
Creates an unordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreach(Mappable<T> initial,
Lambda2Void<T,A1> body,
A1 arg1)
Creates an unordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreach(Mappable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
Creates an unordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreach(Mappable<T> initial,
Lambda3Void<T,A1,A2> body,
A1 arg1,
A2 arg2)
Creates an unordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreach(Mappable<T> initial,
LambdaVoid<T> body)
Creates an unordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreachOrdered(Iterable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
Creates an ordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
static
|
foreachOrdered(Mappable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
Creates an ordered Galois iterator that concurrently applies a function over all elements in some initial collection. |
|
int |
getMaxIterations()
|
|
int |
getMaxThreads()
Gets the maximum number of threads that can be used by the Runtime. |
|
static GaloisRuntime |
getRuntime()
Returns the current instance of the runtime. |
|
boolean |
ignoreUserFlags()
|
|
boolean |
inRoot()
|
|
static void |
main(String[] args)
|
|
boolean |
moreStats()
|
|
static boolean |
needMethodFlag(byte flags,
byte option)
|
|
void |
onCommit(Iteration it,
Callback action)
|
|
void |
onRelease(Iteration it,
ReleaseCallback action)
|
|
void |
onUndo(Iteration it,
Callback action)
|
|
void |
raiseConflict(Iteration it,
Iteration conflicter)
Signals that conflict has been detected by the user/library code. |
|
boolean |
useParameter()
|
|
boolean |
useSerial()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GaloisRuntime getRuntime()
public static <T> void foreach(Iterable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
throws ExecutionException
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applypriority - specification of the order elements are processed
ExecutionException - if there is an uncaught exception during executionforeach(Mappable, LambdaVoid),
foreach(Mappable, Lambda2Void, galois.runtime.wl.Priority.Rule)
public static <T> void foreach(Mappable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
throws ExecutionException
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applypriority - specification of the order elements are processed
ExecutionException - if there is an uncaught exception during executionforeach(Mappable, LambdaVoid),
foreach(Iterable, Lambda2Void, galois.runtime.wl.Priority.Rule)
public static <T> void foreachOrdered(Iterable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
throws ExecutionException
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applypriority - specification of the order elements are processed
ExecutionException - if there is an uncaught exception during executionforeachOrdered(Mappable, Lambda2Void, galois.runtime.wl.Priority.Rule)
public static <T> void foreachOrdered(Mappable<T> initial,
Lambda2Void<T,ForeachContext<T>> body,
Priority.Rule priority)
throws ExecutionException
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applypriority - specification of the order elements are processed
ExecutionException - if there is an uncaught exception during executionforeachOrdered(Iterable, Lambda2Void, galois.runtime.wl.Priority.Rule)
public static <T> void foreach(Mappable<T> initial,
LambdaVoid<T> body)
throws ExecutionException
foreach(Mappable, Lambda2Void, galois.runtime.wl.Priority.Rule),
no additional elements may be added during iteration and the particular order
elements are processed in is dictated by the particular Mappable instance.
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to apply
ExecutionException - if there is an uncaught exception during executionforeach(Mappable, Lambda2Void, Object),
foreach(Mappable, Lambda3Void, Object, Object)
public static <T,A1> void foreach(Mappable<T> initial,
Lambda2Void<T,A1> body,
A1 arg1)
throws ExecutionException
foreach(Mappable, Lambda2Void,galois.runtime.wl.Priority.Rule),
no additional elements may be added during iteration and the particular order
elements are processed in is dictated by the particular Mappable instance.
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applyarg1 - additional argument to function
ExecutionException - if there is an uncaught exception during executionforeach(Mappable, LambdaVoid),
foreach(Mappable, Lambda3Void, Object, Object)
public static <T,A1,A2> void foreach(Mappable<T> initial,
Lambda3Void<T,A1,A2> body,
A1 arg1,
A2 arg2)
throws ExecutionException
foreach(Mappable, Lambda2Void, galois.runtime.wl.Priority.Rule),
no additional elements may be added during iteration and the particular order
elements are processed in is dictated by the particular Mappable instance.
T - type of elements to iterate overinitial - initial elements to iterate overbody - function to applyarg1 - additional argument to functionarg2 - additional argument to function
ExecutionException - if there is an uncaught exception during executionforeach(Mappable, LambdaVoid),
foreach(Mappable, Lambda2Void, Object)
public void onCommit(Iteration it,
Callback action)
public void onUndo(Iteration it,
Callback action)
public void onRelease(Iteration it,
ReleaseCallback action)
public static boolean needMethodFlag(byte flags,
byte option)
public int getMaxThreads()
public int getMaxIterations()
public void raiseConflict(Iteration it,
Iteration conflicter)
it - the current iterationconflicter - the iteration that is in conflict with the current iterationpublic boolean useParameter()
public boolean useSerial()
public boolean ignoreUserFlags()
public boolean inRoot()
public boolean moreStats()
public static void main(String[] args)
throws Exception
args -
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||