rule "miningField_RPart_Model_AC_CSE_TYP_RE"
when
$src : AC_CSE_TYP_RE( $m : missing, $v : valid, $x : value, context ==
null )
then
System.out.println("miningField_RPart_Model_AC_CSE_TYP_RE");
AC_CSE_TYP_RE x = new AC_CSE_TYP_RE();
x.setValue($x);
x.setMissing($m);
x.setValid($v);
x.setName("AC_CSE_TYP_RE");
x.setContext("RPart_Model");
insertLogical(x);
end
declare RPart_ModelTreeToken extends TreeToken
vAC_CSE_TYP_RE : java.lang.String
mAC_CSE_TYP_RE : boolean
vAC_TYP_RE : java.lang.String
mAC_TYP_RE : boolean
vCOV_CD_RE : java.lang.String
mCOV_CD_RE : boolean
vHDCAP_RATE_RE : java.lang.String
mHDCAP_RATE_RE : boolean
vAC_STAT_CD_RE : java.lang.String
mAC_STAT_CD_RE : boolean
vFDS_AC_YN : java.lang.String
mFDS_AC_YN : boolean
vAGE_GRD : java.lang.String
mAGE_GRD : boolean
vAC_COT_DAY : double
mAC_COT_DAY : boolean
outcome : java.lang.String
end
rule "Tree Input Link RPart_Model"
when
AC_CSE_TYP_RE( context == "RPart_Model", AC_CSE_TYP_RE : value,
mAC_CSE_TYP_RE : missing, valid == true || ( valid == false && missing ==
true) )
AC_TYP_RE( context == "RPart_Model", AC_TYP_RE : value, mAC_TYP_RE :
missing, valid == true || ( valid == false && missing == true) )
COV_CD_RE( context == "RPart_Model", COV_CD_RE : value, mCOV_CD_RE :
missing, valid == true || ( valid == false && missing == true) )
HDCAP_RATE_RE( context == "RPart_Model", HDCAP_RATE_RE : value,
mHDCAP_RATE_RE : missing, valid == true || ( valid == false && missing ==
true) )
AC_STAT_CD_RE( context == "RPart_Model", AC_STAT_CD_RE : value,
mAC_STAT_CD_RE : missing, valid == true || ( valid == false && missing ==
true) )
FDS_AC_YN( context == "RPart_Model", FDS_AC_YN : value, mFDS_AC_YN :
missing, valid == true || ( valid == false && missing == true) )
AGE_GRD( context == "RPart_Model", AGE_GRD : value, mAGE_GRD :
missing, valid == true || ( valid == false && missing == true) )
AC_COT_DAY( context == "RPart_Model", AC_COT_DAY : value,
mAC_COT_DAY : missing, valid == true || ( valid == false && missing == true)
)
then
System.out.println( "Creating the tree token" );
RPart_ModelTreeToken tok = new RPart_ModelTreeToken( "RPart_Model",
"1",
null,
"DEFAULT_CHILD",
true,
new
java.util.ArrayList(),
new
java.util.HashMap(),
1.0,
0.0,
AC_CSE_TYP_RE,
mAC_CSE_TYP_RE , AC_TYP_RE, mAC_TYP_RE , COV_CD_RE, mCOV_CD_RE ,
HDCAP_RATE_RE, mHDCAP_RATE_RE , AC_STAT_CD_RE, mAC_STAT_CD_RE , FDS_AC_YN,
mFDS_AC_YN , AGE_GRD, mAGE_GRD , AC_COT_DAY, mAC_COT_DAY ,
null
);
insertLogical( tok );
end
rule "Result RPart_Model"
salience -2
when
$tok : RPart_ModelTreeToken( context == "RPart_Model", current ==
"null", $out : outcome != null, $conf : confidence )
then
System.out.println( "EVENTUALLY GENERATE THE SOLUTION ");
CHK_YN x = new CHK_YN();
x.setContext( "RPart_Model" );
x.setValid( true );
x.setMissing( false );
x.setValue( $out );
x.setWeight( $conf );
insertLogical( x );
end
rule "Eval Tree Node RPart_Model - Up"
when
$node : TreeNode( context == "RPart_Model", $id : id, $master : parent )
$tok : RPart_ModelTreeToken( context == "RPart_Model", current == $id )
not CHK_YN( context == "RPart_Model" )
then
System.out.println( "I'm here at " + $id + ", going back up to
" +
$master );
modify ( $tok ) {
setDownward( false ),
setCurrent( $master );
}
end
--
View this message in context:
http://drools.46999.n3.nabble.com/PMML-Exception-excuting-consequence-for...
Sent from the Drools: User forum mailing list archive at
Nabble.com.