/** @param args */
  public static void main(String[] args) throws FunctionException {
    BasicFuzzyController bfc = new BasicFuzzyController();
    ExampleFuzzyInference fle = new ExampleFuzzyInference();

    fle.createVariables(bfc);
    fle.createRules(bfc);

    // Here input to value is introduced
    bfc.fuzzify("BANDWIDTH", 100);
    bfc.fuzzify("CPULOAD", 10);
    bfc.fuzzify("CONNECTIONS", 150);

    CentroidMethod cm = new CentroidMethod();
    cm.setSamplesPoints(10);
    bfc.setDefuzzifyerMethod(cm);

    System.out.println("Delegate with a grade of truth to: " + bfc.defuzzify("OFFLOAD"));
  }