/*******************************************************************************
 *  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 java.io.IOException;

import cdac.medinfo.sdk.dcm30_04.commoninterface.IDataSet;
import cdac.medinfo.sdk.dcm30_04.commoninterface.IDicomStream;
import cdac.medinfo.sdk.dcm30_04.commoninterface.IDictionaryReader;
import cdac.medinfo.sdk.dcm30_04.commoninterface.ITransferSyntax;
import cdac.medinfo.sdk.dcm30_04.exceptions.InvalidIODException;
import cdac.medinfo.sdk.dcm30_04.exceptions.ParseException;




// TODO: Auto-generated Javadoc
/**
 \* The class NormalizedIOD.
 */
public class NormalizedIOD extends IOD 
{

	/**
	 * The Constant NORMALIZED_IOD.
	 */
	public static final String NORMALIZED_IOD = "Normalized IOD";
	
	/**
	 * Instantiates a new normalized iod.
	 */
	public NormalizedIOD()
	{
		super();
	}

	/**
	 * This constructor initializes the TransferSyntax in its superclass IOD.
	 * 
	 * @param objITransferSyntax_ Transfer Syntax of the IOD.
	 */
	public NormalizedIOD(ITransferSyntax objITransferSyntax_)
	{
		super(objITransferSyntax_);
	}

	/**
	 * This constructor initializes the DataSet in its superclass IOD.
	 * 
	 * @param objIDictionaryReader_ Dictionary Reader used by the IOD.
	 */
	public NormalizedIOD(IDictionaryReader objIDictionaryReader_)
	{
		super(objIDictionaryReader_);
	}

	/**
	 * This constructor accepts the DataSet from the user in its superclass IOD.
	 * 
	 * @param objIDataSet_ Dataset of the IOD
	 */
	public NormalizedIOD(IDataSet objIDataSet_)
	{
		super(objIDataSet_);
	}

	/**
	 * This constructor initializes the transfer Syntax and dictionary reader in its superclass IOD.
	 * 
	 * @param objITransferSyntax_ Transfer Syntax of the IOD.
	 * @param objIDictionaryReader_ Dictionary Reader used by the IOD.
	 */
	public NormalizedIOD(ITransferSyntax objITransferSyntax_,IDictionaryReader objIDictionaryReader_)
	{
		super(objITransferSyntax_,objIDictionaryReader_);
	}
	
	/**
	 * Creates IOD from a DICOM file containing corresponding DICOM data.
	 * @param strFileName DICOM File with absolute path.
	 * @throws IOException signals Exception caused due to wrong I/O operations. 
	 * @throws ParseException signals if some parse exceptions occurred.
	 */
	public NormalizedIOD(String strFileName)throws IOException, InvalidIODException
	{
		super(strFileName);
	}
	
	/**
	 *  This Method dumps the Name of Module and corresponding Attributes of IOD.
	 *  @param objIDicomStream - the Stream on which the Data is to be written.
	 *  @throws IOException - Exception is thrown indicating runtime failure of writing operation.
	 */
	public void dumpDICOMInfo(IDicomStream objIDicomStream) throws IOException
	{
		
	}
	
	/**
	 * Checks whether the Module is present in the IOD or not.
	 * @param strModuleName String value of module name 
	 * @return boolean - true if the module is present in the IOD, else false is returned.
	 */
	public boolean isModulePresent(String strModuleName)
	{
		return super.isModulePresent(strModuleName);
	}
}
