Esempio n. 1
0
        public static bool fireTermlink(ClassicalTermLink termLink, DerivationContext ctx)
        {
            ctx.currentBeliefLink = termLink;
            // commented because it absorbs all exception, which is bad
            ////try {
            RuleDispatcher.reason(ctx.currentTaskLink, termLink, ctx);
            ////}
            ////catch (Exception ex) {
            ////    if (Parameters.DEBUG) {
            // uncommented because we need to log this
            //System.out.println("issue in inference");
            ////    }
            ////}

            //ctx.memory.emit(Events.TermLinkSelect.class, termLink, nal.currentConcept, nal);
            //memory.logic.REASON.commit(termLink.getPriority());
            return(true);
        }