AIMA.Probability.Util.RandVar.equals C# (CSharp) Méthode

equals() public méthode

public equals ( Object o ) : bool
o Object
Résultat bool
        public bool equals(Object o)
        {

            if (this == o)
            {
                return true;
            }
            if (!(o is RandomVariable))
            {
                return false;
            }

            // The name (not the name:domain combination) uniquely identifies a
            // Random Variable
            RandomVariable other = (RandomVariable) o;

            return this.name.Equals(other.getName());
        }