/** * Propagate a modified object to all object consumers. * @param object The new object. */ protected void propagateModificationToObjectConsumers(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { IObjectConsumerNode[] ocon = oconsumers; for(int i=0; ocon!=null && i<ocon.length; i++) ocon[i].modifyObject(object, type, oldvalue, newvalue, state, mem, agenda); }
/** * Propagate a modified object to all object consumers. * @param object The new object. */ protected void propagateModificationToObjectConsumers(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { IObjectConsumerNode[] ocon = oconsumers; for(int i=0; ocon!=null && i<ocon.length; i++) ocon[i].modifyObject(object, type, oldvalue, newvalue, state, mem, agenda); }
/** * Propagate a modified object to all object consumers. * @param object The new object. */ protected void propagateModificationToObjectConsumers(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { IObjectConsumerNode[] ocon = oconsumers; for(int i=0; ocon!=null && i<ocon.length; i++) ocon[i].modifyObject(object, type, oldvalue, newvalue, state, mem, agenda); }
/** * Propagate a modified object to all object consumers. * @param object The new object. */ protected void propagateModificationToObjectConsumers(Object object, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { IObjectConsumerNode[] ocon = oconsumers; for(int i=0; ocon!=null && i<ocon.length; i++) ocon[i].modifyObject(object, type, oldvalue, newvalue, state, mem, agenda); }
/** * Modify a tuple in this node. * @param tuple The tuple. */ public void modifyTuple(Tuple tuple, int tupleindex, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { if(getRelevantAttributes().contains(type)) { // Propagate tuple as object. IObjectConsumerNode[] ocs = oconsumers; for(int j=0; ocs!=null && j<ocs.length; j++) ocs[j].modifyObject(tuple, type, oldvalue, newvalue, state, mem, agenda); } }
/** * Modify a tuple in this node. * @param tuple The tuple. */ public void modifyTuple(Tuple tuple, int tupleindex, OAVAttributeType type, Object oldvalue, Object newvalue, IOAVState state, ReteMemory mem, AbstractAgenda agenda) { if(getRelevantAttributes().contains(type)) { // Propagate tuple as object. IObjectConsumerNode[] ocs = oconsumers; for(int j=0; ocs!=null && j<ocs.length; j++) ocs[j].modifyObject(tuple, type, oldvalue, newvalue, state, mem, agenda); } }