Thanx again Ernest! I was guessing it "d be a test CE, but the name NONE made me think of it as a part not containing sth...
Fred Freitas ---------------------------------------------------- PhD student - Artificial Intelligence & Internet Federal University of Santa Catarina - UFSC -----Mensagem original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Em nome de [EMAIL PROTECTED] Enviada em: sexta-feira, 9 de novembro de 2001 15:10 Para: [EMAIL PROTECTED] Assunto: Re: JESS: Network node with too many links Hi Fred, If you don't know what it does, how do you know that it has "too many links?" :) The right number of links, actually, is one for every 'test' CE in your whole rulebase. Anyway, the only way to find out about this class would be by looking at the source code. At about line 170 in jess/ReteCompiler.java in Jess 6.0b3 you see //////////////////////////////////////////////////////////// // Every pattern must have a definite class name // Therefore, the first node in a chain always // checks the class name of a token (except for test CEs) //////////////////////////////////////////////////////////// Node last = null; last = m_root.mergeSuccessor( isTest? (Node1) new Node1NONE() : (Node1) new Node1TECT(p.getName()),r); m_root is the root node of the whole network. mergeSuccessor is a Node method that returns either its argument, or one of the node's children if the node already has a node equal to the argument. Node1TECT nodes match the 'head' of a fact when it first comes into the network. For 'test' CEs there's no fact, so I can't use a normal TECT node. The Node1NONE is a placeholder to connect to the right input of the join node for a 'test' CE. If you look at the Node1NONE class itself, you see public boolean equals(Object o) { return (o instanceof Node1NONE); } i.e., every Node1NONE is equal to every other one. Therefore, once a Node1NONE has been added to m_root, m_root.mergeSuccessor is always going to return it when the argument is another Node1NONE. So that single node is going to get one connection for every 'text' CE. Got it? Good. I think Fred Freitas wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello, > > Although my system is running ok, I verified in the network generated by the > (view) command that the red node jess.Node1NONE@710a67 has too many links. > Will it generate problems in the future? Is there a way to know what this > node is actually representing ? > > Any help is welcome, > > Fred Freitas > ---------------------------------------------------- > PhD student - Artificial Intelligence & Internet > Federal University of Santa Catarina - UFSC > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 Org. 8920, MS 9012 [EMAIL PROTECTED] PO Box 969 http://herzberg.ca.sandia.gov Livermore, CA 94550 -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] -------------------------------------------------------------------- -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
