From: Osvaldo Pinali Doederlein <[EMAIL PROTECTED]>
> public int assertQuick (ValueVector f) throws ReteException
> {
> synchronized (m_compiler)
> {
> // insert the new fact
> f.set(new Value(nextFactId(), RU.FACT_ID), RU.ID);
> m_facts.addElement(f);
>
> return f.get(RU.ID).factIDValue();
> }
> }
Oops! Just realized that I cut too much :) this fixed version works, it's
much slow but at 1,1 second for 10Kfacts I guess I can live with that :)
public int assertQuick (ValueVector f) throws ReteException
{
synchronized (m_compiler)
{
// insert the new fact
f.set(new Value(nextFactId(), RU.FACT_ID), RU.ID);
m_facts.addElement(f);
Token t = new Token(RU.ADD, f);
// Send it to the Rete network
processToken(t);
return f.get(RU.ID).factIDValue();
}
}
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------