FIS fis = new FIS();
FunctionBlock fb = new FunctionBlock(fis);
Variable v = new Variable("a", 0.0, 20.0);
MembershipFunction triangular = new MembershipFunctionTriangular(new Value(0.0000343232), new Value(10.0), new Value(13.0));
LinguisticTerm t1 = new LinguisticTerm("lt1", triangular);
LinguisticTerm t2 = new LinguisticTerm("lt2", triangular);
v.add(t1);
v.add(t2);
Variable v_out = new Variable("out", 0.0, 20.0);
MembershipFunction triangularOut = new MembershipFunctionTriangular(new Value(2.0), new Value(10.0), new Value(13.0));
v_out.setDefaultValue(2.0);
v_out.setDefuzzifier(new DefuzzifierCenterOfGravity(v_out));
fb.setVariable("a", v);
fb.setVariable("out", v_out);