Lab5/FCFS.cpp
void FCFS::propogationSimulation(FCFS **next, int simTime){
	//traverses sProcPtr and decrements the propogation time by one for each. Removes the first from the propogation quene 
	if(propogationQuene.decrementTime() == true){
		Link thisNode = propogationQuene.getNextEvent();
		if ((*next)->getPropogationTime() == -1){
			(*((Receiver**)next))->addEventReceiverSpecial(thisNode);
			return;
		}
		(*next)->addEvent(thisNode);
	}
}
//Simulates propogation, or the movement from one quene to the other, for a transmitted event quene/
Simulates propogation, or the movement from one quene to the other, for a transmitted event quene
Simulates propogation or the movement from one quene to the other for a transmitted event quene
void FCFS::propogationSimulation(FCFS **next, int simTime){
	if(propogationQuene.decrementTime() == true){
		Link thisNode = propogationQuene.getNextEvent();
		if ((*next)->getPropogationTime() == -1){
			(*((Receiver**)next))->addEventReceiverSpecial(thisNode);
			return;
		}
		(*next)->addEvent(thisNode);
	}
}
void FCFS :: propogationSimulation ( FCFS * * next , int simTime ) { if ( propogationQuene . decrementTime ( ) == true ) { Link thisNode = propogationQuene . getNextEvent ( ) ; if ( ( * next ) -> getPropogationTime ( ) == -1 ) { ( * ( ( Receiver * * ) next ) ) -> addEventReceiverSpecial ( thisNode ) ; return ; } ( * next ) -> addEvent ( thisNode ) ; } }
Simulates propogation, or the movement from one quene to the other, for a transmitted event quene
Simulates propogation or the movement from one quene to the other for a transmitted event quene
//traverses sProcPtr and decrements the propogation time by one for each. Removes the first from the propogation quene 