/** * Returns the assignment as a map. */ public Map<WorkChunk,ExecutorChunk> toMap() { Map<WorkChunk,ExecutorChunk> r = new HashMap<WorkChunk,ExecutorChunk>(); for (int i=0; i<size(); i++) r.put(get(i),assigned(i)); return r; }
/** * Executes this mapping by handing over {@link Executable}s to {@link JobOffer} * as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) throw new IllegalStateException(); for (int i=0; i<size(); i++) assigned(i).execute(get(i),wuc); } }
/** * Returns the assignment as a map. */ public Map<WorkChunk,ExecutorChunk> toMap() { Map<WorkChunk,ExecutorChunk> r = new HashMap<WorkChunk,ExecutorChunk>(); for (int i=0; i<size(); i++) r.put(get(i),assigned(i)); return r; }
/** * Executes this mapping by handing over {@link Executable}s to * {@link JobOffer} as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) { throw new IllegalStateException(); } for (int i = 0; i < size(); i++) { assigned(i).execute(get(i), wuc); } } }
/** * Executes this mapping by handing over {@link Executable}s to {@link JobOffer} * as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) throw new IllegalStateException(); for (int i=0; i<size(); i++) assigned(i).execute(get(i),wuc); } }
/** * Returns the assignment as a map. */ public Map<WorkChunk,ExecutorChunk> toMap() { Map<WorkChunk,ExecutorChunk> r = new HashMap<WorkChunk,ExecutorChunk>(); for (int i=0; i<size(); i++) r.put(get(i),assigned(i)); return r; }
/** * Executes this mapping by handing over {@link Executable}s to {@link JobOffer} * as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) throw new IllegalStateException(); for (int i=0; i<size(); i++) assigned(i).execute(get(i),wuc); } }
/** * Executes this mapping by handing over {@link Executable}s to {@link JobOffer} * as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) throw new IllegalStateException(); for (int i=0; i<size(); i++) assigned(i).execute(get(i),wuc); } }
/** * Returns the assignment as a map. */ public Map<WorkChunk,ExecutorChunk> toMap() { Map<WorkChunk,ExecutorChunk> r = new HashMap<WorkChunk,ExecutorChunk>(); for (int i=0; i<size(); i++) r.put(get(i),assigned(i)); return r; }
/** * Returns the assignment as a map. */ public Map<WorkChunk, ExecutorChunk> toMap() { Map<WorkChunk, ExecutorChunk> r = new HashMap<WorkChunk, ExecutorChunk>(); for (int i = 0; i < size(); i++) { r.put(get(i), assigned(i)); } return r; }
/** * Executes this mapping by handing over {@link Executable}s to {@link JobOffer} * as defined by the mapping. */ public void execute(WorkUnitContext wuc) { if (!isCompletelyValid()) throw new IllegalStateException(); for (int i=0; i<size(); i++) assigned(i).execute(get(i),wuc); } }
/** * Returns the assignment as a map. */ public Map<WorkChunk,ExecutorChunk> toMap() { Map<WorkChunk,ExecutorChunk> r = new HashMap<WorkChunk,ExecutorChunk>(); for (int i=0; i<size(); i++) r.put(get(i),assigned(i)); return r; }