示例#1
0
  /**
   * Returns if the classifier of the class is equal to the classifier given as a parameter.
   *
   * @param cl is a classifier.
   * @return a boolean indicating if they are equals.
   */
  public boolean equals(Classifier cl) {
    try {
      if (rep.getAction() != cl.rep.getAction()) return false;
      return rep.equals(cl.rep);

    } catch (Exception e) {
      return false;
    }
  } // end equals
示例#2
0
  /**
   * 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
示例#3
0
 /**
  * Returns the action of the classifier
  *
  * @return an integer with the action of the classifier
  */
 public int getAction() {
   return rep.getAction();
 } // end getAction