/*******************************************************************************
 *  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.commoninterface;

import java.io.Serializable;

/**
 * This interface needs to be implemented by all classes which implements the necessary functionality of a Macro.
 */
public interface IMacro extends Serializable
{
	/**
	 * Add the DataElement in the DataSet. 
	 * @param objIDataElement instance of DataElement.
	 * @return int - shows status as success or failure.
	 */
	int addDataElement(IDataElement objIDataElement);

	/**
	 * Retrieves the DataElement from DataSet
	 * @param iGroupNumber specifies the Group Number.
	 * @param iElementNumber specifies the Element Number.
	 * @return IDataElement - instance of DataElement.
	 */
	IDataElement getDataElement(int iGroupNumber, int iElementNumber);
	
	/**
	 * Create similar object of this class.
	 * This does the deep copy and create a new instance of this class and return it.
	 * @return Object instance of Class.
	 */
	public Object clone();
}