// FILE. . . . . d:/hak/hlt/src/hlt/fot/fuz/SignatureSimilarityTriple.java
// EDIT BY . . . Hassan Ait-Kaci
// ON MACHINE. . Hak-Laptop
// STARTED ON. . Fri Jul 20 09:38:48 2018

package hlt.fot.fuz;

import hlt.fot.Functor;

/**
 * This is a class of objects of triples of the form
 * <tt><i>[f,g,&alpha;]</i></tt> where <tt><i>f</i></tt> and
 * <tt><i>g</i></tt> are two similar functors and
 * <tt><i>&alpha;</i></tt> is their similarity degree.
 *
 * @see         SignatureSimilarity
 *
 * @version     Last modified on Mon Sep 24 10:08:01 2018 by hak
 * @author      <a href="mailto:hak@acm.org">Hassan A&iuml;t-Kaci</a>
 * @copyright   &copy; <a href="http://www.hassan-ait-kaci.net/">by the author</a>
 */

public class SignatureSimilarityTriple
{
  protected Functor left;
  protected Functor right;
  protected double degree;

  public Functor left ()
  {
    return left;
  }
  
  public Functor right ()
  {
    return right;
  }
  
  public double degree ()
  {
    return degree;
  }

  public SignatureSimilarityTriple (Functor left, Functor right, double degree)
  {
    this.left = left;
    this.right = right;
    this.degree = degree;
  }

  public String toString ()
  {
    return left.name()+" "+right.name()+" "+degree;
  }
}
