Lab5/Receiver.cpp
void Receiver::addEventReceiverSpecial(Link thisNode){
	thisNode->setPropogationTime(getPropogationTime());
	if (thisNode->getSender() == "S1"){
		thisNode->printNode();
		allTimesS1.push_back(thisNode->getResponseTime());
	}
	else if (thisNode->getSender() == "S2"){
		thisNode->printNode();
		allTimesS2.push_back(thisNode->getResponseTime());
	}
	else {
		cout << "Something went wrong" << endl;
	}
	sendToTQ(thisNode);
}
//Adds an event to the receiving eventQuene.
Adds an event to the receiving eventQuene.
Adds an event to the receiving eventQuene .
void Receiver::addEventReceiverSpecial(Link thisNode){
	thisNode->setPropogationTime(getPropogationTime());
	if (thisNode->getSender() == "S1"){
		thisNode->printNode();
		allTimesS1.push_back(thisNode->getResponseTime());
	}
	else if (thisNode->getSender() == "S2"){
		thisNode->printNode();
		allTimesS2.push_back(thisNode->getResponseTime());
	}
	else {
		cout << "Something went wrong" << endl;
	}
	sendToTQ(thisNode);
}
void Receiver :: addEventReceiverSpecial ( Link thisNode ) { thisNode -> setPropogationTime ( getPropogationTime ( ) ) ; if ( thisNode -> getSender ( ) == " " ) { thisNode -> printNode ( ) ; allTimesS1 . push_back ( thisNode -> getResponseTime ( ) ) ; } else if ( thisNode -> getSender ( ) == " " ) { thisNode -> printNode ( ) ; allTimesS2 . push_back ( thisNode -> getResponseTime ( ) ) ; } else { cout << " " << endl ; } sendToTQ ( thisNode ) ; }
Adds an event to the receiving eventQuene.
Adds an event to the receiving eventQuene .