/*******************************************************************************
 * Copyright 2014 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.model;
import java.util.Date;

/**
 * Component is an abstract class which has been derived from {@link VersionedComponent} class.
 * Component refers to SNOMED CT component which can be- {@link Concept}, {@link Description} or
 * {@link Relationship}. Every component has a unique id and it derives its other attributes
 * from its parent class VersionedComponent.
 *
 *  */

public abstract class Component extends VersionedComponent
{
	/**
	 * A permanent unique numeric identifier which does not convey any information about the meaning
	 * or nature of the Component.
	 */
	protected String id;

	/**
	 * Default constructor
	 */


	protected Component()
	{

	}
	/**
	 * Parameterized constructor
	 * @param id
	 * 			 	 {@link Component} represents the Component id.
	 * @param effTime
	 * 			 	 represents Effective time associated with that component.
	 * @param status
	 * 				 represents the status of the component(0 for inactive and 1 for active).
	 * @param modId
	 * 				 represents the module Id.
	 */
	protected Component(String id,Date effTime,Byte status,String modId)
	{
		super(effTime,status,modId);
		this.id=id;
	}
	/**
	 * Returns the component identifier.
	 * @return id of the component.
	 */
	public String getId()
	{
		return this.id;
	}
	/**
	 * Sets the id for a particular Component.
	 * @param id
	 * 			 represents Component id.
	 */
	public void setId(String id)
	{
		this.id=id;
	}

}
