Interpreter extends Mapper { public Interpreter(final Object serialization, final String experimentSalt, final Map<String, Object> inputs, final Map<String, Object> overrides) { super(StringUtils.defaultString(experimentSalt, "global_salt")); this.serialization = serialization; this.inputs = copyOf(inputs); this.env = new Assignment(experimentSalt, overrides); } Interpreter(final Object serialization, final String experimentSalt, final Map<String, Object> inputs,
                       final Map<String, Object> overrides); Map<String, Object> getParams(); @Override Object evaluate(final Object planoutCode); @Override boolean has(final String name); @Override Object get(final String name, final Object def); @Override Mapper set(final String name, final Object value); @Override boolean hasOverride(final String name); boolean isInExperiment();  }
@Test public void testInterpreter() { Interpreter proc = new Interpreter(compiled, interpreterSalt, inputs, null); Map<String, Object> params = proc.getParams(); assertEquals(true, params.get("specific_goal")); assertEquals(320l, params.get("ratings_goal")); }