|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.queue.MappingWorksheet.Mapping
public final class MappingWorksheet.Mapping
Represents the solution to the mapping problem.
It's a mapping from every MappingWorksheet.WorkChunk
to MappingWorksheet.ExecutorChunk
that satisfies the constraints.
Constructor Summary | |
---|---|
MappingWorksheet.Mapping()
|
Method Summary | |
---|---|
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)
n-th MappingWorksheet.WorkChunk . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingWorksheet.Mapping()
Method Detail |
---|
public MappingWorksheet.ExecutorChunk assigned(int n)
MappingWorksheet.ExecutorChunk
assigned to the n-th work chunk.
public MappingWorksheet.WorkChunk get(int n)
MappingWorksheet.WorkChunk
.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |