#include "Pre-emptionVulnerability.hpp"

#include <iostream>
using namespace std;

namespace ngap{

	Pre_emptionVulnerability::Pre_emptionVulnerability(){}  

	Pre_emptionVulnerability::~Pre_emptionVulnerability(){} 

	void Pre_emptionVulnerability::setPre_emptionVulnerability(e_Ngap_Pre_emptionVulnerability value)
	{
		vulnerability = value;
	}
	bool Pre_emptionVulnerability::getPre_emptionVulnerability(e_Ngap_Pre_emptionVulnerability &value)
	{
		if((vulnerability==0) || (vulnerability==1))
			value = (e_Ngap_Pre_emptionVulnerability)vulnerability;
		else
			return false;
		
		return true;
	}
	
	bool Pre_emptionVulnerability::encode2Pre_emptionVulnerability(Ngap_Pre_emptionVulnerability_t *pre_emptionVulnerability)
	{
		*pre_emptionVulnerability = vulnerability;
	
		return true;
	}
	bool Pre_emptionVulnerability::decodefromPre_emptionVulnerability(Ngap_Pre_emptionVulnerability_t *pre_emptionVulnerability)
	{
		vulnerability = *pre_emptionVulnerability;
		
		return true;
	}
}
