Mandarax的改进方向(From mandarax maillist)

From: sabari <nathsabari@ya...>
Passing Collection of objects and multiple arguments  
2004-01-12 08:05
 Hi, 
    We prefer to use mandarax as the rule engine in our
 Hospital Information System. To begin with, we have
 some fundamnetal doubts regarding the implemetation.
 We expect your advice  for the follwing doubts.
 
  1)Can we pass a group of objects in a collection to
 the query? Say a collection of Customer objects .  
 We have situations similar to, hundreds of customer
 instances which go through the rule checks and only
 valid customers need to be returned ( by querying the
 knowledgebase ) . So here a collection of customers
 are passed and a collection of valid customers (may be
 a Collection of valid discounts ) returned. 
 
  2)How can we pass multiple arguments in to the
 inference engine at query time? 
 Say I want to pass both customer object, and his
 turn_over_object. Is there any limitation to the
 number of arguments? Can we pass an object array? And
 if so, what should be their order?
 
 
  3)To access the member variables of the passing
 object we need to create Separate JFunctions for each
 member. This is a tedious process. Is there any other
 simple alternative? We want to access the values just
 by specifying the Class name and its member variables
 name.
 
 Thanks ,
 Sabarinathan.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值