@Test(dependsOnMethods = {"testInstantiateAndIsRegistered", "testUnregister", "testRegister"}) public void testGetEvaluator() { DurationEvaluators d = new DurationEvaluators(); ActionDurationEvaluator<Element> ev = new ConstantActionDuration<>(7); d.register(MigrateVM.class, ev); Assert.assertEquals(d.getEvaluator(MigrateVM.class), ev); }
public ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a) { return durations.get(a); }
DurationEvaluators { public ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a) { return durations.get(a); } }
DurationEvaluators { public ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a) { return durations.get(a); } DurationEvaluators(); }
DurationEvaluators { public ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a) { return durations.get(a); } DurationEvaluators(); boolean register(Class<? extends Action> a, ActionDurationEvaluator e); boolean unRegister(Class<? extends Action> a); boolean isRegistered(Class<? extends Action> a); ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a); int evaluate(Model mo, Class<? extends Action> a, Element e); static DurationEvaluators newBundle(); }
DurationEvaluators { public ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a) { return durations.get(a); } DurationEvaluators(); boolean register(Class<? extends Action> a, ActionDurationEvaluator e); boolean unRegister(Class<? extends Action> a); boolean isRegistered(Class<? extends Action> a); ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a); int evaluate(Model mo, Class<? extends Action> a, Element e); static DurationEvaluators newBundle();  }