From: <jbo...@li...> - 2006-05-15 11:26:31
|
Author: mar...@jb... Date: 2006-05-15 07:26:23 -0400 (Mon, 15 May 2006) New Revision: 4223 Modified: labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/model/Rule.java labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java Log: -Change xor-group to activation-group Modified: labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/model/Rule.java =================================================================== --- labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/model/Rule.java 2006-05-15 11:26:12 UTC (rev 4222) +++ labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/model/Rule.java 2006-05-15 11:26:23 UTC (rev 4223) @@ -47,8 +47,8 @@ private String _noLoop; // RIK: New variable to the Rule class (Set the // no-loop parameter of the rule tag) - private String _xorGroup; // RIK: New variable to the Rule class (Set the - // xor-group parameter of the rule tag) + private String _activationGroup; // RIK: New variable to the Rule class (Set the + // activation-group parameter of the rule tag) private List _lhs; @@ -88,7 +88,7 @@ out.writeLine("rule " + "\"" + _name + "\""); if (_description != null) out.writeLine("\t" + _description); if (_salience != null) out.writeLine("\tsalience " + _salience); - if (_xorGroup != null) out.writeLine("\txor-group" + _xorGroup); + if (_activationGroup != null) out.writeLine("\tactivation-group" + _activationGroup); if (_noLoop != null) out.writeLine("\tno-loop" + _noLoop); if (_duration != null) out.writeLine("\tduration" + _duration); @@ -205,13 +205,13 @@ return _duration.getSnippet(); } - public void setXorGroup(String value) // Set the duration of the rule + public void setActivationrGroup(String value) // Set the duration of the rule { - _xorGroup = value; + _activationGroup = value; } - public String getXorGroup() { - return _xorGroup; + public String getActivationGroup() { + return _activationGroup; } public void setNoLoop(String value) // Set the no-loop attribute of the rule Modified: labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java =================================================================== --- labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java 2006-05-15 11:26:12 UTC (rev 4222) +++ labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java 2006-05-15 11:26:23 UTC (rev 4223) @@ -56,8 +56,8 @@ // NOLOOP is used to set the no-loop parameter of a rule tag public static final int NOLOOP = 6; - // XOR-GROUP is used to set the xor-group parameter of a rule tag - public static final int XORGROUP = 7; + // XOR-GROUP is used to set the activation-group parameter of a rule tag + public static final int ACTIVATIONGROUP = 7; int type; @@ -160,7 +160,7 @@ // list { actionTypeMap.put( new Integer( column ), - new ActionType( ActionType.XORGROUP, + new ActionType( ActionType.ACTIVATIONGROUP, null ) ); } else Modified: labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java =================================================================== --- labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java 2006-05-15 11:26:12 UTC (rev 4222) +++ labs/jbossrules/trunk/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java 2006-05-15 11:26:23 UTC (rev 4223) @@ -364,7 +364,7 @@ // from the cell { _currentRule.setDescription( value ); - } else if ( actionType.type == ActionType.XORGROUP ) // if the actionType + } else if ( actionType.type == ActionType.ACTIVATIONGROUP ) // if the actionType // type is NOLOOP // then set the // current Rule's @@ -373,7 +373,7 @@ // the value got // from the cell { - _currentRule.setXorGroup( value ); + _currentRule.setActivationrGroup( value ); } else if ( actionType.type == ActionType.NOLOOP ) // if the actionType // type is NOLOOP // then set the |