/**
 * Nx_node_stats_t.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package gw;

public class Nx_node_stats_t  implements java.io.Serializable {
    private org.apache.axis.types.UnsignedInt uptime;

    private org.apache.axis.types.UnsignedInt mcu_active_time;

    private org.apache.axis.types.UnsignedInt radio_active_time;

    private org.apache.axis.types.UnsignedShort voltage;

    private org.apache.axis.types.UnsignedShort watchdog_resets;

    private org.apache.axis.types.UnsignedShort link_sent_preambles;

    private org.apache.axis.types.UnsignedShort link_sent;

    private org.apache.axis.types.UnsignedShort link_received;

    private org.apache.axis.types.UnsignedShort link_overheard;

    private org.apache.axis.types.UnsignedShort net_sent;

    private org.apache.axis.types.UnsignedShort net_missed;

    private org.apache.axis.types.UnsignedShort net_delivered;

    private org.apache.axis.types.UnsignedShort net_fwd_overflowed;

    private org.apache.axis.types.UnsignedShort svc_overflowed;

    public Nx_node_stats_t() {
    }

    public Nx_node_stats_t(
           org.apache.axis.types.UnsignedInt uptime,
           org.apache.axis.types.UnsignedInt mcu_active_time,
           org.apache.axis.types.UnsignedInt radio_active_time,
           org.apache.axis.types.UnsignedShort voltage,
           org.apache.axis.types.UnsignedShort watchdog_resets,
           org.apache.axis.types.UnsignedShort link_sent_preambles,
           org.apache.axis.types.UnsignedShort link_sent,
           org.apache.axis.types.UnsignedShort link_received,
           org.apache.axis.types.UnsignedShort link_overheard,
           org.apache.axis.types.UnsignedShort net_sent,
           org.apache.axis.types.UnsignedShort net_missed,
           org.apache.axis.types.UnsignedShort net_delivered,
           org.apache.axis.types.UnsignedShort net_fwd_overflowed,
           org.apache.axis.types.UnsignedShort svc_overflowed) {
           this.uptime = uptime;
           this.mcu_active_time = mcu_active_time;
           this.radio_active_time = radio_active_time;
           this.voltage = voltage;
           this.watchdog_resets = watchdog_resets;
           this.link_sent_preambles = link_sent_preambles;
           this.link_sent = link_sent;
           this.link_received = link_received;
           this.link_overheard = link_overheard;
           this.net_sent = net_sent;
           this.net_missed = net_missed;
           this.net_delivered = net_delivered;
           this.net_fwd_overflowed = net_fwd_overflowed;
           this.svc_overflowed = svc_overflowed;
    }


    /**
     * Gets the uptime value for this Nx_node_stats_t.
     * 
     * @return uptime
     */
    public org.apache.axis.types.UnsignedInt getUptime() {
        return uptime;
    }


    /**
     * Sets the uptime value for this Nx_node_stats_t.
     * 
     * @param uptime
     */
    public void setUptime(org.apache.axis.types.UnsignedInt uptime) {
        this.uptime = uptime;
    }


    /**
     * Gets the mcu_active_time value for this Nx_node_stats_t.
     * 
     * @return mcu_active_time
     */
    public org.apache.axis.types.UnsignedInt getMcu_active_time() {
        return mcu_active_time;
    }


    /**
     * Sets the mcu_active_time value for this Nx_node_stats_t.
     * 
     * @param mcu_active_time
     */
    public void setMcu_active_time(org.apache.axis.types.UnsignedInt mcu_active_time) {
        this.mcu_active_time = mcu_active_time;
    }


    /**
     * Gets the radio_active_time value for this Nx_node_stats_t.
     * 
     * @return radio_active_time
     */
    public org.apache.axis.types.UnsignedInt getRadio_active_time() {
        return radio_active_time;
    }


    /**
     * Sets the radio_active_time value for this Nx_node_stats_t.
     * 
     * @param radio_active_time
     */
    public void setRadio_active_time(org.apache.axis.types.UnsignedInt radio_active_time) {
        this.radio_active_time = radio_active_time;
    }


    /**
     * Gets the voltage value for this Nx_node_stats_t.
     * 
     * @return voltage
     */
    public org.apache.axis.types.UnsignedShort getVoltage() {
        return voltage;
    }


    /**
     * Sets the voltage value for this Nx_node_stats_t.
     * 
     * @param voltage
     */
    public void setVoltage(org.apache.axis.types.UnsignedShort voltage) {
        this.voltage = voltage;
    }


    /**
     * Gets the watchdog_resets value for this Nx_node_stats_t.
     * 
     * @return watchdog_resets
     */
    public org.apache.axis.types.UnsignedShort getWatchdog_resets() {
        return watchdog_resets;
    }


    /**
     * Sets the watchdog_resets value for this Nx_node_stats_t.
     * 
     * @param watchdog_resets
     */
    public void setWatchdog_resets(org.apache.axis.types.UnsignedShort watchdog_resets) {
        this.watchdog_resets = watchdog_resets;
    }


    /**
     * Gets the link_sent_preambles value for this Nx_node_stats_t.
     * 
     * @return link_sent_preambles
     */
    public org.apache.axis.types.UnsignedShort getLink_sent_preambles() {
        return link_sent_preambles;
    }


    /**
     * Sets the link_sent_preambles value for this Nx_node_stats_t.
     * 
     * @param link_sent_preambles
     */
    public void setLink_sent_preambles(org.apache.axis.types.UnsignedShort link_sent_preambles) {
        this.link_sent_preambles = link_sent_preambles;
    }


    /**
     * Gets the link_sent value for this Nx_node_stats_t.
     * 
     * @return link_sent
     */
    public org.apache.axis.types.UnsignedShort getLink_sent() {
        return link_sent;
    }


    /**
     * Sets the link_sent value for this Nx_node_stats_t.
     * 
     * @param link_sent
     */
    public void setLink_sent(org.apache.axis.types.UnsignedShort link_sent) {
        this.link_sent = link_sent;
    }


    /**
     * Gets the link_received value for this Nx_node_stats_t.
     * 
     * @return link_received
     */
    public org.apache.axis.types.UnsignedShort getLink_received() {
        return link_received;
    }


    /**
     * Sets the link_received value for this Nx_node_stats_t.
     * 
     * @param link_received
     */
    public void setLink_received(org.apache.axis.types.UnsignedShort link_received) {
        this.link_received = link_received;
    }


    /**
     * Gets the link_overheard value for this Nx_node_stats_t.
     * 
     * @return link_overheard
     */
    public org.apache.axis.types.UnsignedShort getLink_overheard() {
        return link_overheard;
    }


    /**
     * Sets the link_overheard value for this Nx_node_stats_t.
     * 
     * @param link_overheard
     */
    public void setLink_overheard(org.apache.axis.types.UnsignedShort link_overheard) {
        this.link_overheard = link_overheard;
    }


    /**
     * Gets the net_sent value for this Nx_node_stats_t.
     * 
     * @return net_sent
     */
    public org.apache.axis.types.UnsignedShort getNet_sent() {
        return net_sent;
    }


    /**
     * Sets the net_sent value for this Nx_node_stats_t.
     * 
     * @param net_sent
     */
    public void setNet_sent(org.apache.axis.types.UnsignedShort net_sent) {
        this.net_sent = net_sent;
    }


    /**
     * Gets the net_missed value for this Nx_node_stats_t.
     * 
     * @return net_missed
     */
    public org.apache.axis.types.UnsignedShort getNet_missed() {
        return net_missed;
    }


    /**
     * Sets the net_missed value for this Nx_node_stats_t.
     * 
     * @param net_missed
     */
    public void setNet_missed(org.apache.axis.types.UnsignedShort net_missed) {
        this.net_missed = net_missed;
    }


    /**
     * Gets the net_delivered value for this Nx_node_stats_t.
     * 
     * @return net_delivered
     */
    public org.apache.axis.types.UnsignedShort getNet_delivered() {
        return net_delivered;
    }


    /**
     * Sets the net_delivered value for this Nx_node_stats_t.
     * 
     * @param net_delivered
     */
    public void setNet_delivered(org.apache.axis.types.UnsignedShort net_delivered) {
        this.net_delivered = net_delivered;
    }


    /**
     * Gets the net_fwd_overflowed value for this Nx_node_stats_t.
     * 
     * @return net_fwd_overflowed
     */
    public org.apache.axis.types.UnsignedShort getNet_fwd_overflowed() {
        return net_fwd_overflowed;
    }


    /**
     * Sets the net_fwd_overflowed value for this Nx_node_stats_t.
     * 
     * @param net_fwd_overflowed
     */
    public void setNet_fwd_overflowed(org.apache.axis.types.UnsignedShort net_fwd_overflowed) {
        this.net_fwd_overflowed = net_fwd_overflowed;
    }


    /**
     * Gets the svc_overflowed value for this Nx_node_stats_t.
     * 
     * @return svc_overflowed
     */
    public org.apache.axis.types.UnsignedShort getSvc_overflowed() {
        return svc_overflowed;
    }


    /**
     * Sets the svc_overflowed value for this Nx_node_stats_t.
     * 
     * @param svc_overflowed
     */
    public void setSvc_overflowed(org.apache.axis.types.UnsignedShort svc_overflowed) {
        this.svc_overflowed = svc_overflowed;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Nx_node_stats_t)) return false;
        Nx_node_stats_t other = (Nx_node_stats_t) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.uptime==null && other.getUptime()==null) || 
             (this.uptime!=null &&
              this.uptime.equals(other.getUptime()))) &&
            ((this.mcu_active_time==null && other.getMcu_active_time()==null) || 
             (this.mcu_active_time!=null &&
              this.mcu_active_time.equals(other.getMcu_active_time()))) &&
            ((this.radio_active_time==null && other.getRadio_active_time()==null) || 
             (this.radio_active_time!=null &&
              this.radio_active_time.equals(other.getRadio_active_time()))) &&
            ((this.voltage==null && other.getVoltage()==null) || 
             (this.voltage!=null &&
              this.voltage.equals(other.getVoltage()))) &&
            ((this.watchdog_resets==null && other.getWatchdog_resets()==null) || 
             (this.watchdog_resets!=null &&
              this.watchdog_resets.equals(other.getWatchdog_resets()))) &&
            ((this.link_sent_preambles==null && other.getLink_sent_preambles()==null) || 
             (this.link_sent_preambles!=null &&
              this.link_sent_preambles.equals(other.getLink_sent_preambles()))) &&
            ((this.link_sent==null && other.getLink_sent()==null) || 
             (this.link_sent!=null &&
              this.link_sent.equals(other.getLink_sent()))) &&
            ((this.link_received==null && other.getLink_received()==null) || 
             (this.link_received!=null &&
              this.link_received.equals(other.getLink_received()))) &&
            ((this.link_overheard==null && other.getLink_overheard()==null) || 
             (this.link_overheard!=null &&
              this.link_overheard.equals(other.getLink_overheard()))) &&
            ((this.net_sent==null && other.getNet_sent()==null) || 
             (this.net_sent!=null &&
              this.net_sent.equals(other.getNet_sent()))) &&
            ((this.net_missed==null && other.getNet_missed()==null) || 
             (this.net_missed!=null &&
              this.net_missed.equals(other.getNet_missed()))) &&
            ((this.net_delivered==null && other.getNet_delivered()==null) || 
             (this.net_delivered!=null &&
              this.net_delivered.equals(other.getNet_delivered()))) &&
            ((this.net_fwd_overflowed==null && other.getNet_fwd_overflowed()==null) || 
             (this.net_fwd_overflowed!=null &&
              this.net_fwd_overflowed.equals(other.getNet_fwd_overflowed()))) &&
            ((this.svc_overflowed==null && other.getSvc_overflowed()==null) || 
             (this.svc_overflowed!=null &&
              this.svc_overflowed.equals(other.getSvc_overflowed())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getUptime() != null) {
            _hashCode += getUptime().hashCode();
        }
        if (getMcu_active_time() != null) {
            _hashCode += getMcu_active_time().hashCode();
        }
        if (getRadio_active_time() != null) {
            _hashCode += getRadio_active_time().hashCode();
        }
        if (getVoltage() != null) {
            _hashCode += getVoltage().hashCode();
        }
        if (getWatchdog_resets() != null) {
            _hashCode += getWatchdog_resets().hashCode();
        }
        if (getLink_sent_preambles() != null) {
            _hashCode += getLink_sent_preambles().hashCode();
        }
        if (getLink_sent() != null) {
            _hashCode += getLink_sent().hashCode();
        }
        if (getLink_received() != null) {
            _hashCode += getLink_received().hashCode();
        }
        if (getLink_overheard() != null) {
            _hashCode += getLink_overheard().hashCode();
        }
        if (getNet_sent() != null) {
            _hashCode += getNet_sent().hashCode();
        }
        if (getNet_missed() != null) {
            _hashCode += getNet_missed().hashCode();
        }
        if (getNet_delivered() != null) {
            _hashCode += getNet_delivered().hashCode();
        }
        if (getNet_fwd_overflowed() != null) {
            _hashCode += getNet_fwd_overflowed().hashCode();
        }
        if (getSvc_overflowed() != null) {
            _hashCode += getSvc_overflowed().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Nx_node_stats_t.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:gw", "nx_node_stats_t"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("uptime");
        elemField.setXmlName(new javax.xml.namespace.QName("", "uptime"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedInt"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("mcu_active_time");
        elemField.setXmlName(new javax.xml.namespace.QName("", "mcu_active_time"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedInt"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("radio_active_time");
        elemField.setXmlName(new javax.xml.namespace.QName("", "radio_active_time"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedInt"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("voltage");
        elemField.setXmlName(new javax.xml.namespace.QName("", "voltage"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("watchdog_resets");
        elemField.setXmlName(new javax.xml.namespace.QName("", "watchdog_resets"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("link_sent_preambles");
        elemField.setXmlName(new javax.xml.namespace.QName("", "link_sent_preambles"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("link_sent");
        elemField.setXmlName(new javax.xml.namespace.QName("", "link_sent"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("link_received");
        elemField.setXmlName(new javax.xml.namespace.QName("", "link_received"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("link_overheard");
        elemField.setXmlName(new javax.xml.namespace.QName("", "link_overheard"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("net_sent");
        elemField.setXmlName(new javax.xml.namespace.QName("", "net_sent"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("net_missed");
        elemField.setXmlName(new javax.xml.namespace.QName("", "net_missed"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("net_delivered");
        elemField.setXmlName(new javax.xml.namespace.QName("", "net_delivered"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("net_fwd_overflowed");
        elemField.setXmlName(new javax.xml.namespace.QName("", "net_fwd_overflowed"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("svc_overflowed");
        elemField.setXmlName(new javax.xml.namespace.QName("", "svc_overflowed"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           java.lang.String mechType, 
           java.lang.Class _javaType,  
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}