// Path: src/fdt/fuzzy/FuzzySet.java
// public interface FuzzySet {
// 
//     /**
//      *
//      * @param x
//      * @return
//      */
//     double getMembership(double x);
// }
// 
// Path: src/fdt/fuzzy/IdentityFuzzySet.java
// public class IdentityFuzzySet implements FuzzySet {
// 
//     /**
//      *
//      * @param x
//      * @return
//      */
//     @Override
//     public double getMembership(double x) {
//         return x;
//     }
//     
// }


import fdt.fuzzy.FuzzySet;
import fdt.fuzzy.IdentityFuzzySet;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

package fdt.data;


/**
 *
 * To represent a linguistic term, e.g. Old.
 * 
 * @author Mohammed Jabreel
 */
public class Term {
    
    /**
     * The list of the fuzzy values.
     */
    private final List<Double> storage = new ArrayList<>();
    
    /**
     * The term name.
     */
    private final String name;
    
    /**
     * The fuzzy set of the term that will be used to convert the crisp value into a fuzzy membership value.
     */
// Path: src/fdt/fuzzy/FuzzySet.java
// public interface FuzzySet {
// 
//     /**
//      *
//      * @param x
//      * @return
//      */
//     double getMembership(double x);
// }
// 
// Path: src/fdt/fuzzy/IdentityFuzzySet.java
// public class IdentityFuzzySet implements FuzzySet {
// 
//     /**
//      *
//      * @param x
//      * @return
//      */
//     @Override
//     public double getMembership(double x) {
//         return x;
//     }
//     
// }


// Path: src/fdt/data/Term.java
import fdt.fuzzy.FuzzySet;
import fdt.fuzzy.IdentityFuzzySet;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;


package fdt.data;


/**
 *
 * To represent a linguistic term, e.g. Old.
 * 
 * @author Mohammed Jabreel
 */
public class Term {
    
    /**
     * The list of the fuzzy values.
     */
    private final List<Double> storage = new ArrayList<>();
    
    /**
     * The term name.
     */
    private final String name;
    
    /**
     * The fuzzy set of the term that will be used to convert the crisp value into a fuzzy membership value.
     */
    private FuzzySet fuzzySet = new IdentityFuzzySet();