| Method parameters in org.zilonis.shell with type arguments of type Entity |
protected Action |
GenericEventHandler.getAction(int id,
antlr.collections.AST action,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Action |
GenericEventHandler.getActionList(antlr.collections.AST actionList,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Condition |
GenericEventHandler.getAssignmentCondition(java.lang.String id,
antlr.collections.AST condition,
antlr.collections.AST action,
java.util.HashMap<java.lang.String,Entity> symbolTable)
generates the conditions for an assignment on the left hand side example:
(defrule wholesalerPricing ?x <- (SKU (wholesalerOnly true) (sellPrice
?price)) => (modify ?x (sellPrice 0) (listPrice (* ?price 0.75)
(discountPrice (* 0.5 ?price))))
needs to be: (defrule wholesalerPricing (?id clazz SKU) //
getConditionTemplate returns from here (?id wholesalerOnly true) (?id
sellPrice ?price) // to here (?id listPrice ?id_var_1) (?id discountPrice
?id_var_2) => (retract (?id listPrice ?id_var_1)) (retract (?id
discountPrice ?id_var_2)) (retract (?id sellPrice ?price)) (assert (?id
sellPrice 0)) (assert (?id listPrice (* ?price 0.75))) (assert (?id
discountPrice (* ?price 0.5))))
for achieving that, we first iterate over the actions to select the
attributes that will be modified on the selected object. |
protected Condition |
GenericEventHandler.getCondition(IdGenerator idGenerator,
antlr.collections.AST condition,
antlr.collections.AST action,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Condition |
GenericEventHandler.getConditionList(antlr.collections.AST conditionList,
antlr.collections.AST actionList,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Condition |
GenericEventHandler.getConditionList(IdGenerator idGenerator,
antlr.collections.AST conditionList,
antlr.collections.AST actionList,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Action |
GenericEventHandler.getExpressionAction(int id,
antlr.collections.AST action,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|
protected Action |
GenericEventHandler.getModifyAction(antlr.collections.AST action,
java.util.HashMap<java.lang.String,Entity> symbolTable)
|