DecisionStepInternal.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.model;
  2. import net.javacoding.jspider.api.model.DecisionStep;
  3. import net.javacoding.jspider.core.rule.impl.RuleSetImpl;
  4. /**
  5.  * $Id: DecisionStepInternal.java,v 1.3 2003/04/04 20:06:06 vanrogu Exp $
  6.  */
  7. public class DecisionStepInternal implements DecisionStep {
  8.     protected int ruleType;
  9.     protected int decision;
  10.     protected String comment;
  11.     protected String rule;
  12.     public DecisionStepInternal ( String rule, int ruleType, int decision, String comment) {
  13.         this.rule = rule;
  14.         this.ruleType = ruleType;
  15.         this.decision = decision;
  16.         this.comment = comment;
  17.     }
  18.     public String getRule ( ) {
  19.         return rule;
  20.     }
  21.     public int getRuleType() {
  22.         return ruleType;
  23.     }
  24.     public int getDecision() {
  25.         return decision;
  26.     }
  27.     public String getComment() {
  28.         return comment;
  29.     }
  30.     public String toString ( ) {
  31.         return "[DecisionStep] " + RuleSetImpl.translate(ruleType) + " rule " + rule + " - " + DecisionInternal.translate(decision) + " - " + comment;
  32.     }
  33. }