Clover coverage report - Drools - 2.0-rc2
Coverage timestamp: Wed May 11 2005 07:12:26 BST
file stats: LOC: 117   Methods: 0
NCLOC: 16   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
RuleBase.java - - - -
coverage
 1    package org.drools;
 2   
 3    /*
 4    * $Id: RuleBase.java,v 1.37.2.1 2005/05/10 12:11:24 mproctor Exp $
 5    *
 6    * Copyright 2001-2004 (C) The Werken Company. All Rights Reserved.
 7    *
 8    * Redistribution and use of this software and associated documentation
 9    * ("Software"), with or without modification, are permitted provided that the
 10    * following conditions are met:
 11    *
 12    * 1. Redistributions of source code must retain copyright statements and
 13    * notices. Redistributions must also contain a copy of this document.
 14    *
 15    * 2. Redistributions in binary form must reproduce the above copyright notice,
 16    * this list of conditions and the following disclaimer in the documentation
 17    * and/or other materials provided with the distribution.
 18    *
 19    * 3. The name "drools" must not be used to endorse or promote products derived
 20    * from this Software without prior written permission of The Werken Company.
 21    * For written permission, please contact bob@werken.com.
 22    *
 23    * 4. Products derived from this Software may not be called "drools" nor may
 24    * "drools" appear in their names without prior written permission of The Werken
 25    * Company. "drools" is a registered trademark of The Werken Company.
 26    *
 27    * 5. Due credit should be given to The Werken Company.
 28    * (http://drools.werken.com/).
 29    *
 30    * THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS ``AS IS''
 31    * AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 32    * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 33    * ARE DISCLAIMED. IN NO EVENT SHALL THE WERKEN COMPANY OR ITS CONTRIBUTORS BE
 34    * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 35    * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 36    * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 37    * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 38    * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 39    * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 40    * POSSIBILITY OF SUCH DAMAGE.
 41    *
 42    */
 43   
 44    import java.io.Serializable;
 45    import java.util.List;
 46   
 47    import org.drools.reteoo.FactHandleFactory;
 48    import org.drools.spi.ConflictResolver;
 49    import org.drools.spi.RuleBaseContext;
 50   
 51    /**
 52    * Active collection of <code>Rule</code>s.
 53    *
 54    * <p>
 55    * From a <code>RuleBase</code> many <code>WorkingMemory</code> rule
 56    * sessions may be instantiated. Additionally, it may be inspected to determine
 57    * which <code>RuleSet</code> s it contains.
 58    * </p>
 59    *
 60    *
 61    * @see WorkingMemory
 62    *
 63    * @author <a href="mailto:bob@werken.com">bob mcwhirter </a>
 64    * @author <a href="mailto:mproctor@codehaus.org"> mark proctor </a>
 65    *
 66    * @version $Id: RuleBase.java,v 1.37.2.1 2005/05/10 12:11:24 mproctor Exp $
 67    */
 68    public interface RuleBase
 69    extends
 70    Serializable
 71    {
 72    /**
 73    * Create a new <code>WorkingMemory</code> session for this
 74    * <code>RuleBase</code>.
 75    *
 76    * <p>
 77    * The created <code>WorkingMemory</code> uses the default conflict
 78    * resolution strategy.
 79    * </p>
 80    *
 81    * @see WorkingMemory
 82    * @see org.drools.conflict.DefaultConflictResolver
 83    *
 84    * @return A newly initialized <code>WorkingMemory</code>.
 85    */
 86    WorkingMemory newWorkingMemory( );
 87   
 88    /**
 89    * Retrieve the <code>ConflictResolver</code>.
 90    *
 91    * @return The conflict resolution strategy.
 92    */
 93    ConflictResolver getConflictResolver( );
 94   
 95    /**
 96    * Retrieve the <code>FactHandleFactory</code>.
 97    *
 98    * @return The fact handle factory.
 99    */
 100    FactHandleFactory getFactHandleFactory( );
 101   
 102    /**
 103    * @return a List of <code>RuleSet</code>s
 104    */
 105    List getRuleSets( );
 106   
 107   
 108   
 109    /**
 110    * Each rulebase provides a shared Context for storing information.
 111    * This information is normally used in the building of a <code>RuleBase</code>
 112    * so that it can use objects common to the nodes being build.
 113    *
 114    * @return The <code>RuleBaseContext</code>
 115    */
 116    RuleBaseContext getRuleBaseContext( );
 117    }