1 package net.javacoding.jspider.core.model; 2 3 import net.javacoding.jspider.api.model.DecisionStep; 4 import net.javacoding.jspider.core.rule.impl.RuleSetImpl; 5 6 9 public class DecisionStepInternal implements DecisionStep { 10 11 protected int ruleType; 12 protected int decision; 13 protected String comment; 14 protected String rule; 15 16 public DecisionStepInternal ( String rule, int ruleType, int decision, String comment) { 17 this.rule = rule; 18 this.ruleType = ruleType; 19 this.decision = decision; 20 this.comment = comment; 21 } 22 23 public String getRule ( ) { 24 return rule; 25 } 26 27 public int getRuleType() { 28 return ruleType; 29 } 30 31 public int getDecision() { 32 return decision; 33 } 34 35 public String getComment() { 36 return comment; 37 } 38 39 public String toString ( ) { 40 return "[DecisionStep] " + RuleSetImpl.translate(ruleType) + " rule " + rule + " - " + DecisionInternal.translate(decision) + " - " + comment; 41 } 42 43 } 44 | Popular Tags |