I want to display all my current activations in a JTable object. On
selection of one of the hereby created rows (each representing an activated
rule by its name), I want to display additional info on this rule.
It is no problem to retrieve the rule from the RuleBase, as I know the
Package and Rule names. Unfortunately the toString()-output of the
associated Consequence is not really what I want.
What I really want is the RHS of the rule in analogy to the Rule.getLHS()
method. Unfortunately there is no such method for the RHS.
The RHS of the rule is a compiled code block, so its just an object,
there is no meaningul toString that I think we could give this, so we
don't bother. I'd recommend you maintain a mapping from the rule to the
RHS toStrig() output that you require.
Is there a work-around for this? I would really like to avoid parsing
rule file just to get the RHS of a rule.