/*******************************************************************************
 * Copyright 2016 Centre for Development of Advanced Computing(C-DAC), Pune
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package in.cdac.medinfo.csnotk.csnolib.icdmap;

/**
 * Creates a key with provided mapGroup and mapPriority.
 */
class MapKey {

	private int iGroup;
	private int iPriority;

	/**
	 * Default constructor.
	 */
	MapKey() {
	}

	/**
	 * Parameterized constructor
	 * @param iGroup
	 * map group  number
	 * @param iPriority
	 * map priority within the group
	 */
	MapKey(int iGroup, int iPriority) {
		super();
		this.iGroup = iGroup;
		this.iPriority = iPriority;
	}

	/**
	 * Returns the map group number.
	 * @return
	 * map group number
	 */
	int getGroup() {
		return iGroup;
	}

	/**
	 * Sets the map group number.
	 * @param iGroup
	 * map group number
	 */
	void setGroup(int iGroup) {
		this.iGroup = iGroup;
	}

	/**
	 * Returns the map priority within  a group.
	 * @return
	 * map priority number
	 */
	int getPriority() {
		return iPriority;
	}

	/**
	 * Sets the map priority number.
	 * @param iPriority
	 * map priority number
	 */
	void setPriority(int iPriority) {
		this.iPriority = iPriority;
	}

}
