View Javadoc

1   package net.sourceforge.rpgee.dice;
2   
3   import java.util.List;
4   
5   import net.sourceforge.rpgee.dice.exceptions.InvalidParameterException;
6   import net.sourceforge.rpgee.dice.exceptions.RandomValueException;
7   
8   public interface GeneratedRandomValue {
9       public void setRandomizerElement(Object o) throws InvalidParameterException;
10  
11      public Object getRandomizerElement();
12  
13      public List<RandomValue> getRandomValues() throws RandomValueException;
14  
15      public int getNumericValue() throws RandomValueException;
16  
17      public List<RandomValue> getHandledValues() throws RandomValueException;
18  
19      public RandomValue addRandomValue(Object dieConfig, RandomValueResultMapper mapper) throws InvalidParameterException;
20  
21      public void addRandomValue(RandomValue v);
22  
23      public void addRandomValueHandler(RandomValueHandler handler);
24  
25      public void setRandomValueHandlers(List<RandomValueHandler> handlers);
26  
27  }