/*************** <auto-copyright.pl BEGIN do not edit this line> **************
 *
 * VR Juggler is (C) Copyright 1998-2005 by Iowa State University
 *
 * Original Authors:
 *   Allen Bierbaum, Christopher Just,
 *   Patrick Hartling, Kevin Meinert,
 *   Carolina Cruz-Neira, Albert Baker
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -----------------------------------------------------------------
 * File:          $RCSfile$
 * Date modified: $Date$
 * Version:       $Revision$
 * -----------------------------------------------------------------
 *
 *************** <auto-copyright.pl END do not edit this line> ***************/

package org.vrjuggler.vrjconfig.commoneditors.devicegraph;


public class UnitInfo
   implements UnitConstants
{
   public UnitInfo(Integer unitType, Integer unitNumber)
   {
      this.unitType   = unitType;
      this.unitNumber = unitNumber;
   }

   public Integer getUnitType()
   {
      return this.unitType;
   }

   public Integer getUnitNumber()
   {
      return this.unitNumber;
   }

   public void setUnitNumber(Integer unitNumber)
   {
      this.unitNumber = unitNumber;
   }

   public void decrementUnitNumber()
   {
      this.unitNumber = new Integer(this.unitNumber.intValue() - 1);
   }

   public void incrementUnitNumber()
   {
      this.unitNumber = new Integer(this.unitNumber.intValue() + 1);
   }

   private Integer unitType   = null;
   private Integer unitNumber = null;
}

@@ -2056,24 +2056,460 @@
 + 1);%0A   %7D%0A%0A
+   public boolean equals(Object obj)%0A   %7B%0A      boolean result = false;%0A%0A      if ( this == obj )%0A      %7B%0A         result = true;%0A      %7D%0A      else if ( obj instanceof UnitInfo )%0A      %7B%0A         UnitInfo info_obj = (UnitInfo) obj;%0A%0A         if ( this.unitType.equals(info_obj.unitType) &&%0A              this.unitNumber.equals(info_obj.unitNumber) )%0A         %7B%0A            result = true;%0A         %7D%0A      %7D%0A%0A      return result;%0A   %7D%0A%0A
    private I

Implement equality comparison for this type.