2018-09-02 13:36:49 +02:00
|
|
|
package it.cavallium.warppi.gui.expression;
|
2017-05-16 22:02:44 +02:00
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
2018-09-02 13:36:49 +02:00
|
|
|
import it.cavallium.warppi.gui.expression.blocks.BlockVariable;
|
|
|
|
import it.cavallium.warppi.math.MathematicalSymbols;
|
|
|
|
import it.cavallium.warppi.math.functions.Variable.V_TYPE;
|
2017-05-16 22:02:44 +02:00
|
|
|
|
|
|
|
public class InputContext {
|
|
|
|
public final HashMap<Character, V_TYPE> variableTypes;
|
|
|
|
public BlockVariable variableTypeDirtyID = null;
|
2017-09-24 18:47:30 +02:00
|
|
|
|
2017-05-16 22:02:44 +02:00
|
|
|
public InputContext() {
|
2018-05-12 21:18:29 +02:00
|
|
|
variableTypes = new HashMap<>();
|
|
|
|
variableTypes.put(MathematicalSymbols.PI, V_TYPE.CONSTANT);
|
|
|
|
variableTypes.put(MathematicalSymbols.EULER_NUMBER, V_TYPE.CONSTANT);
|
2017-05-16 22:02:44 +02:00
|
|
|
}
|
2017-09-24 18:47:30 +02:00
|
|
|
|
2017-05-16 22:02:44 +02:00
|
|
|
public InputContext(HashMap<Character, V_TYPE> variableTypes) {
|
|
|
|
this.variableTypes = variableTypes;
|
|
|
|
}
|
|
|
|
}
|