FLC impl = ControllerBuilder.newBuilder()
.when().var(service).is(poor).or().var(food).is(rancid).then().var(tip).is(cheap)
.when().var(service).is(good).then().var(tip).is(average)
.when().var(service).is(excellent).then().var(tip).is(generous)
.defuzzifier(new Centroid())
.create();
Map<Variable, Double> map=new HashMap<Variable, Double>();
map.put(service, (double) 9);
map.put(food, (double) 3);