1 | package de.uka.ipd.sdq.simucomframework.variables.stoexvisitor; |
2 | |
3 | /** |
4 | * Modes for evaluating stochastic expressions. |
5 | * @author Steffen Becker |
6 | * |
7 | */ |
8 | public enum VariableMode { |
9 | |
10 | /** |
11 | * An exception is thrown if the evaluation encounters a variable unknown |
12 | * in the current stackframe |
13 | */ |
14 | EXCEPTION_ON_NOT_FOUND, |
15 | |
16 | /** |
17 | * A default value is returned for variables which do not exist in the |
18 | * stackframe. It is 0 for numeric types and "" for enum types. Useful |
19 | * for determining bytesizes of the stack contents in cases where not for |
20 | * all variables characterisations exist |
21 | */ |
22 | RETURN_DEFAULT_ON_NOT_FOUND, |
23 | |
24 | /** |
25 | * NULL is returned for variables which do not exist in the |
26 | * stackframe. Useful for copying stackframes |
27 | */ |
28 | RETURN_NULL_ON_NOT_FOUND |
29 | } |