/**
 * @author	STF 424_ITS_Test_Platform
 * @version    $URL:$
 *             $Id:$
 */
package org.etsi.its.tool.testingtech;

import org.etsi.its.codec.ttcn.LibItsIpv6OverGeoNetworking_TypesAndValues.LibItsIpv6OverGeoNetworking_TypesAndValuesCodec;
import org.etsi.ttcn.tci.TciCDProvided;

import com.testingtech.ttcn.extension.CodecProvider;
import com.testingtech.util.plugin.PluginInitException;

import de.tu_berlin.cs.uebb.muttcn.runtime.RB;

/** 
 * This is the main entry point for Its codec
 */
public class LibItsIpv6OverGeoNetworking_TypesAndValuesCodecProvider implements CodecProvider {

	/** 
	 * This method provides the codec associated to the specified encoding identifier
	 * 
	 * @param rb TTwb Runtime reference
	 * @param encodingName The name of the encoding, specified by the TTCN-3 key words 'with/encode'
	 * @return The codec associated to the specified encoding identifier
	 */
	@Override
	public TciCDProvided getCodec(RB rb, String encodingName)
			throws PluginInitException {
		//TTWBCodecSupport.setCodec(new BaseCodec(rb));
		return new LibItsIpv6OverGeoNetworking_TypesAndValuesCodec(rb.getTciCDRequired());
	}
}
