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 percentage chance for the task to be invoked if selected for execution. Must be a a value between 1 and 100. 9 * @author Johan Lindquist 10 * @version $Revision$ 11 */ 12 @Retention(RetentionPolicy.RUNTIME) 13 @Target(ElementType.TYPE) 14 public @interface BasherWeight 15 { 16 /** Defines the percentage chance for the task to be invoked if selected for execution. 17 * Must be a a value between 1 and 100. 18 * 19 * @return The percentage chance 20 */ 21 int weight(); 22 }