/** * Get the memory for this node. * @return The memory. */ public Collection getNodeMemory(ReteMemory mem) { // Hack??? // try { return getTupleSource().getNodeMemory(mem); } // catch(Exception e) // { // Object o = getTupleSource().getNodeMemory(mem); // return null; // } }
/** * Get the memory for this node. * @return The memory. */ public Collection getNodeMemory(ReteMemory mem) { // Hack??? // try { return getTupleSource().getNodeMemory(mem); } // catch(Exception e) // { // Object o = getTupleSource().getNodeMemory(mem); // return null; // } }
/** * Propagate an indirect object change to this node. * @param object The changed object. */ public void modifyIndirectObject(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { // Recheck all tuples Collection input = getTupleSource().getNodeMemory(mem); if(input!=null) { for(Iterator it=input.iterator(); it.hasNext(); ) { modifyTuple((Tuple)it.next(), -1, null, null, null, state, mem, agenda); } } }
/** * Propagate an indirect object change to this node. * @param object The changed object. */ public void modifyIndirectObject(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { // Recheck all tuples Collection input = getTupleSource().getNodeMemory(mem); if(input!=null) { for(Iterator it=input.iterator(); it.hasNext(); ) { modifyTuple((Tuple)it.next(), -1, null, null, null, state, mem, agenda); } } }