public final class MappingWorksheet.Mapping extends Object
MappingWorksheet.WorkChunk
to MappingWorksheet.ExecutorChunk
that satisfies the constraints.Constructor and Description |
---|
Mapping() |
Modifier and Type | Method and Description |
---|---|
MappingWorksheet.ExecutorChunk |
assign(int index,
MappingWorksheet.ExecutorChunk element)
Update the mapping to execute n-th
MappingWorksheet.WorkChunk on the specified MappingWorksheet.ExecutorChunk . |
MappingWorksheet.ExecutorChunk |
assigned(int n)
MappingWorksheet.ExecutorChunk assigned to the n-th work chunk. |
void |
execute(WorkUnitContext wuc)
Executes this mapping by handing over
Queue.Executable s to Queue.JobOffer
as defined by the mapping. |
MappingWorksheet.WorkChunk |
get(int n)
|
boolean |
isCompletelyValid()
Makes sure that all the assignments are made and it is within the constraints.
|
boolean |
isPartiallyValid()
Checks if the assignments made thus far are valid an within the constraints.
|
int |
size()
Number of
WorkUnit s that require assignments. |
Map<MappingWorksheet.WorkChunk,MappingWorksheet.ExecutorChunk> |
toMap()
Returns the assignment as a map.
|
public MappingWorksheet.ExecutorChunk assigned(int n)
MappingWorksheet.ExecutorChunk
assigned to the n-th work chunk.public MappingWorksheet.WorkChunk get(int n)
public MappingWorksheet.ExecutorChunk assign(int index, MappingWorksheet.ExecutorChunk element)
MappingWorksheet.WorkChunk
on the specified MappingWorksheet.ExecutorChunk
.public int size()
WorkUnit
s that require assignments.public Map<MappingWorksheet.WorkChunk,MappingWorksheet.ExecutorChunk> toMap()
public boolean isPartiallyValid()
public boolean isCompletelyValid()
public void execute(WorkUnitContext wuc)
Queue.Executable
s to Queue.JobOffer
as defined by the mapping.Copyright © 2004–2022. All rights reserved.