public FutureLoad toFutureLoad(int size) { return new FutureLoad(start,duration,size); }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) continue; long eta = e.getEstimatedRemainingTimeMillis(); long end = eta<0 ? eternity : now + eta; // when does this task end? if (end < start) continue; // should be over by the 'start' time. fl.add(new FutureLoad(start, end-start, 1)); } return fl; } }
public FutureLoad toFutureLoad(int size) { return new FutureLoad(start,duration,size); }
public FutureLoad toFutureLoad(int size) { return new FutureLoad(start,duration,size); }
public FutureLoad toFutureLoad(int size) { return new FutureLoad(start, duration, size); }
public FutureLoad toFutureLoad(int size) { return new FutureLoad(start,duration,size); }
public FutureLoad toFutureLoad(int size) { return new FutureLoad(start,duration,size); }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) continue; long eta = e.getEstimatedRemainingTimeMillis(); long end = eta<0 ? eternity : now + eta; // when does this task end? if (end < start) continue; // should be over by the 'start' time. fl.add(new FutureLoad(start, end-start, 1)); } return fl; } }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) continue; long eta = e.getEstimatedRemainingTimeMillis(); long end = eta<0 ? eternity : now + eta; // when does this task end? if (end < start) continue; // should be over by the 'start' time. fl.add(new FutureLoad(start, end-start, 1)); } return fl; } }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) continue; long eta = e.getEstimatedRemainingTimeMillis(); long end = eta<0 ? eternity : now + eta; // when does this task end? if (end < start) continue; // should be over by the 'start' time. fl.add(new FutureLoad(start, end-start, 1)); } return fl; } }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) continue; long eta = e.getEstimatedRemainingTimeMillis(); long end = eta<0 ? eternity : now + eta; // when does this task end? if (end < start) continue; // should be over by the 'start' time. fl.add(new FutureLoad(start, end-start, 1)); } return fl; } }
@Override public Iterable<FutureLoad> predict(MappingWorksheet plan, final Computer computer, long start, long eternity) { long now = System.currentTimeMillis(); List<FutureLoad> fl = new ArrayList<FutureLoad>(); for (Executor e : computer.getExecutors()) { if (e.isIdle()) { continue; } long eta = e.getEstimatedRemainingTimeMillis(); long end = eta < 0 ? eternity : now + eta; // when does this task end? if (end < start) { continue; // should be over by the 'start' time. } fl.add(new FutureLoad(start, end - start, 1)); } return fl; } }