2ronwalf// Copyright (c) 2004 Evren Sirin 2ronwalf// Permission is hereby granted, free of charge, to any person obtaining a copy 2ronwalf// of this software and associated documentation files (the "Software"), to 2ronwalf// deal in the Software without restriction, including without limitation the 2ronwalf// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 2ronwalf// sell copies of the Software, and to permit persons to whom the Software is 2ronwalf// furnished to do so, subject to the following conditions: 2ronwalf// The above copyright notice and this permission notice shall be included in 2ronwalf// all copies or substantial portions of the Software. 2ronwalf// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2ronwalf// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 2ronwalf// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 2ronwalf// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2ronwalf// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2ronwalf// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 2ronwalf * A condition is simply an expression. Thhe truth value of a condition needs to be 2ronwalf * evaluated with respect to a KB. By default, this KB is the one that the condition 2ronwalf * is coming from but condition can be evaluated with respect to another KB (execution 2ronwalf * environment may be different) 2ronwalf * Returns true if this condition is true in its own KB. This is equivalent to the 2ronwalf * call <code>condition.isTrue(condition.getKB(), new ValueMap())</code>. 2ronwalf * Returns true if this condition is true in its own KB after applying the given 2ronwalf * <code>binding</code>. Condition expression may have some variables in it, so 2ronwalf * the <code>binding</code> is applied to the expression and then the resulting 2ronwalf * Returns true if the condition is true in the given model.