Ejemplo n.º 1
0
 public bool Equals(ITransicion other)
 {
     return((!EsAutomatica || other.EsAutomatica) && (!other.EsAutomatica || EsAutomatica)
            //&& Descripcion.Equals(other.Descripcion)
            && FechaTransicion.Equals(other.FechaTransicion) &&
            Flujograma.Equals(other.Flujograma) &&
            Origen.Equals(other.Origen) &&
            Destino.Equals(other.Destino));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Verifica igualdade entre duas arestas
        /// </summary>
        /// <param name="other">Aresta com a qual comparar</param>
        /// <returns>Verdadeiro se forem iguais, falso se não</returns>
        public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(Aresta <Tipo>))
            {
                return(false);
            }

            Aresta <Tipo> a = (Aresta <Tipo>)other;

            return(Origem.Equals(a.Origem) && Destino.Equals(a.Destino) && Valor == a.Valor);
        }
Ejemplo n.º 3
0
 public bool Equals(Rota obj) => Origem.Equals(obj.Origem) && Destino.Equals(obj.Destino);