1 package net.sourceforge.basher.annotations; 2 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.RetentionPolicy; 5 import java.lang.annotation.Target; 6 import java.lang.annotation.ElementType; 7 8 /** Defines the amount of which the tasks weight (chance of running) should be incremented by after each successful 9 * invocation. Defined as a value between 1.0 and 2.0. 10 * @author Johan Lindquist 11 * @version $Revision$ 12 */ 13 @Retention(RetentionPolicy.RUNTIME) 14 @Target(ElementType.TYPE) 15 public @interface BasherInertia 16 { 17 /** Defines the amount of which the tasks weight (chance of running) should be incremented by after each successful 18 * invocation. Defined as a value between 1.0 and 2.0. 19 * @return The inertia 20 */ 21 double inertia(); 22 }