01: package net.javacoding.jspider.core.model;
02:
03: import net.javacoding.jspider.api.model.DecisionStep;
04: import net.javacoding.jspider.core.rule.impl.RuleSetImpl;
05:
06: /**
07: * $Id: DecisionStepInternal.java,v 1.3 2003/04/04 20:06:06 vanrogu Exp $
08: */
09: 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,
17: int decision, String comment) {
18: this .rule = rule;
19: this .ruleType = ruleType;
20: this .decision = decision;
21: this .comment = comment;
22: }
23:
24: public String getRule() {
25: return rule;
26: }
27:
28: public int getRuleType() {
29: return ruleType;
30: }
31:
32: public int getDecision() {
33: return decision;
34: }
35:
36: public String getComment() {
37: return comment;
38: }
39:
40: public String toString() {
41: return "[DecisionStep] " + RuleSetImpl.translate(ruleType)
42: + " rule " + rule + " - "
43: + DecisionInternal.translate(decision) + " - "
44: + comment;
45: }
46:
47: }
|