Fork me on GitHub
#clara
<
2018-01-17
>
cfleming02:01:09

What is the logic by which class members from fact types are used to create local variables for the constraints?

cfleming02:01:38

In clara.examples.java.shopping, there are some examples [Customer (= true VIP)] and [Order (> total 200)]. I assume VIP is mapped to the isVIP() method and total is mapped to the getTotal() method?

cfleming02:01:05

Are the rules around this defined anywhere, or could someone point me to the relevant DSL code?

cfleming02:01:04

@alex-dixon Isn’t that dealing with unification vars?

cfleming02:01:44

Oh, it looks like field-name->accessors-used, right?

alex-dixon02:01:02

@cfleming Er. get-fields a few down from there what you’re looking for?

cfleming02:01:30

Yes, I think so - thanks!