Package jadex.micro.mandelbrot.generate
Class GenerateService.AllocationData
java.lang.Object
jadex.micro.mandelbrot.generate.GenerateService.AllocationData
- Enclosing class:
GenerateService
Handler for a single task allocation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocationData
(int open, boolean retry, Object user) Create a new allocation data. -
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IntermediateFuture
Get the result.Get the user data.boolean
isRetry()
Test if the retry flag is set.void
setRetry
(boolean retry) void
A task has failed and is not retried.void
taskFinished
(Object result) Add an intermediate result.
-
Field Details
-
open
protected int openThe counter for open tasks, i.e. number of assigned and unassigned tasks that are not yet finished. -
retry
protected boolean retryThe retry flag, i.e. if failed tasks should be assigned again. -
user
The user data (if any). -
result
protected jadex.future.IntermediateFuture resultThe result future.
-
-
Constructor Details
-
AllocationData
Create a new allocation data.
-
-
Method Details
-
getUserData
Get the user data.- Returns:
- The user data (if any).
-
getResult
public jadex.future.IntermediateFuture getResult()Get the result.- Returns:
- The intermediate results future.
-
taskFinished
Add an intermediate result. -
taskFailed
A task has failed and is not retried. -
isRetry
public boolean isRetry()Test if the retry flag is set.- Returns:
- True, if the retry flag is set.
-
setRetry
public void setRetry(boolean retry) - Parameters:
retry
- the retry to set
-