@Test public void testExecute() throws Exception { sourceTestFile(getClass(), "testExecute.soar"); agent.runFor(1, RunType.DECISIONS); assertEquals("this is a \\ test", ifc.eval("set value")); }
@Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) { throw new RhsFunctionException(e.getMessage(), e); } }
TclRhsFunction extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) { throw new RhsFunctionException(e.getMessage(), e); } } }
TclRhsFunction extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) { throw new RhsFunctionException(e.getMessage(), e); } } TclRhsFunction(SoarTclInterface ifc); }
TclRhsFunction extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) { throw new RhsFunctionException(e.getMessage(), e); } } TclRhsFunction(SoarTclInterface ifc); @Override Symbol execute(RhsFunctionContext context, List<Symbol> arguments); @Override boolean mayBeStandalone(); }
TclRhsFunction extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { try { final String exp = Concat.concat(arguments); final String result = ifc.eval(exp); return context.getSymbols().createString(result); } catch (SoarException e) { throw new RhsFunctionException(e.getMessage(), e); } } TclRhsFunction(SoarTclInterface ifc); @Override Symbol execute(RhsFunctionContext context, List<Symbol> arguments); @Override boolean mayBeStandalone();  }