Java implementation of a fuzzy control system