package com.example.unodtantos.appqueology2.modelo;

import java.io.Serializable;

/**
 * Created by unodtantos on 03/04/2015.
 */
public class Arista implements Serializable {

    /*--------------------------------------------------------------------------------------------*/

    // <editor-fold defaultstate="collapsed" desc="Atributos de la clase">

    /* Atributos */

    Object Elemento;
    private Nodo nodo;
    private boolean directed;
    private Vertice v1;
    private Vertice v2;
    private int pos;
    private static int cv = 0;

    // </editor-fold>

    /*--------------------------------------------------------------------------------------------*/

    // <editor-fold defaultstate="collapsed" desc="Constructores de la clase">

    public Arista() {
        cv++;
    }

    public Arista(Vertice v_padre, Vertice v_hijo, Object O) {
        cv++;
        v1 = v_padre;
        v2 = v_hijo;
        Elemento = O;
        directed = false;
    }

    // </editor-fold>

    /*--------------------------------------------------------------------------------------------*/

    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">

    public Vertice getV1(){
        return v1;
    }

    public Vertice getV2(){
        return v2;
    }

    // </editor-fold>

    /*--------------------------------------------------------------------------------------------*/

}
