コード例 #1
0
        /// <summary> The current implementation will Remove the first activation
        /// and return it. If there's no more activations, the method
        /// return null;
        /// </summary>
        public virtual IActivation nextActivation(Rete engine)
        {
            IActivation act = activations.nextActivation();

            if (act is LinkedActivation)
            {
                ((LinkedActivation)act).remove(engine);
            }
            return(act);
        }
コード例 #2
0
        /* (non-Javadoc)
         * @see woolfel.engine.rete.Strategy#nextActivation(woolfel.engine.rete.ActivationList)
         */

        public virtual IActivation nextActivation(IActivationList thelist)
        {
            return(thelist.nextActivation());
        }
コード例 #3
0
 /* (non-Javadoc)
 * @see woolfel.engine.rete.Strategy#nextActivation(woolfel.engine.rete.ActivationList)
 */
 public virtual IActivation nextActivation(IActivationList thelist)
 {
     return thelist.nextActivation();
 }