コード例 #1
0
ファイル: Classifier.java プロジェクト: TheMurderer/keel
  /**
   * Returns if the classifier of the class subsumes the classifier passed as a parameter.
   *
   * @param cl is the subsumed classifier.
   * @return a boolean indicating if it subsumes
   */
  public boolean doesSubsume(Classifier cl) {

    if (rep.getAction() != cl.rep.getAction()) return false;

    if (parameters.couldSubsume()) {
      if (rep.isMoreGeneral(cl.rep)) {
        return true;
      }
    }
    return false;
  } // end doesSubsume
コード例 #2
0
ファイル: Classifier.java プロジェクト: TheMurderer/keel
 /**
  * Indicates if the classifier is more general than the classifier passed as a parameter.
  *
  * @param cl is the classifier to which the current classifier is compared.
  * @return a boolean indicating if the current classifier is more general
  */
 public boolean isMoreGeneral(Classifier cl) {
   return rep.isMoreGeneral(cl.rep);
 }