/*Implementation of BiDirectionalLabels.h

It contains the member functions of ForwardLabel and BackwardLabel

*/

#include "BiDirectionalLabels.h"

//ForwardLabel:
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

//Print functions
//------------------------------------------------------------------------------------

//Print resources
void ForwardLabel::PrintResources(){

	//Print
	std::cout << "Cost:           " << Cost << std::endl;
	std::cout << "Load:           " << Load << std::endl;
	std::cout << "Last Location:  " << LastLocation << std::endl;
	std::cout << "Reachable:" << std::endl;
	for (short int i = 0; i<NumberOfCustomers; i++){
		std::cout << i + 1 << " " << Reachable[i] << std::endl;
	}

}

//BackwardLabel:
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

//Print functions
//------------------------------------------------------------------------------------

//Print resources
void BackwardLabel::PrintResources(){

	//Print
	std::cout << "Cost:           " << Cost << std::endl;
	std::cout << "Load:           " << Load << std::endl;
	std::cout << "First Location: " << FirstLocation << std::endl;
	std::cout << "Reachable:" << std::endl;
	for (short int i = 0; i<NumberOfCustomers; i++){
		std::cout << i + 1 << " " << Reachable[i] << std::endl;
	}

}