fcmodeler.mapping
Interface Connective
- All Known Implementing Classes:
- OrConnective, AndConnective
- public interface Connective
A connective used to create complex sentences. Concrete implementations provide the actual
functionality of their connective. This interface is mainly geared towards logical operator
connectives, such as AND, OR, etc.
- Since:
- JDK1.3
- Version:
- $Revision: 1.1 $
- Author:
- Julie Dickerson , Zach Cox
Method Summary |
boolean |
evaluate(boolean first,
boolean second)
Evaluates the sentence first CONNECTIVE second using this connective. |
evaluate
public boolean evaluate(boolean first,
boolean second)
- Evaluates the sentence
first
CONNECTIVE second
using this connective.
- Parameters:
first
- the first term in the sentence.second
- the second term in the sentence.- Returns:
true
if the sentence evaluates to true; false
otherwise.