/*******************************************************************************
 *  Copyright 2017-2018 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 cdac.medinfo.sdk.dcm30_04.dicommodel.modules;




import cdac.medinfo.sdk.dcm30_04.commoninterface.IDataSet;
import cdac.medinfo.sdk.dcm30_04.commoninterface.ITag;
import cdac.medinfo.sdk.dcm30_04.exceptions.InvalidModuleException;
import cdac.medinfo.sdk.dcm30_04.utils.ISingleCollection;
import cdac.medinfo.sdk.dcm30_04.utils.SingleCollection;

// TODO: Auto-generated Javadoc
/*
 * Modified by PB on 8/8/07
 * The module holds its map of data in a collection wrapper called SingleCollection
 */
/**
 \* This module defines Attributes of Curves. A Curve may or may not be related to an Image and/or
 * a Curve.
 */
public class CurveModule extends Module  
{

 
 /**
  * The obj single collection.
  */
 public static ISingleCollection<ITag> objSingleCollection = null;
	 
	
	/**
	 * Instantiates a new curve module.
	 * 
	 * @param objIDataSet the obj i data set
	 */
	public CurveModule(IDataSet objIDataSet)
	{
		super(objIDataSet);
	}
	
	static
	{
		objSingleCollection = new SingleCollection<ITag>();
	}
		
	/**
	 * Validates the module according to the DICOM Rules.
	 * 
	 * @return - validation status as success or failure
	 * 
	 * @throws InvalidModuleException the invalid module exception
	 */
	public boolean validateModule() throws InvalidModuleException
	{
		return true;
	}
	
	/*	Added by PB on 1/8/07 
	 * This method is used by the Module Iterator to iterate through the DataSet and return only
	 * those elements that belong to the respective Module class whose getVectorOfKeys is called.
	 * Modified bt PB on 21/6/07 made access protected
	 */
	/**
	 * This method returns the vector of keys representing the DataElements
	 * that belong to this module.
	 * 
	 * @return - the customized collection containing the dataelement tags that belong
	 * to this module
	 */
	public ISingleCollection<ITag> getVectorOfKeys()
	{
		return objSingleCollection;
	}
	
	
}
