Program5/Packet.cpp
Packet::Packet(int apacketID, int aTimeStamp, int size, vector<int> sourceRoute){
	packetID = apacketID;
	timeStamp = aTimeStamp;
	packetSize = size;
	SR = sourceRoute;
	sender = SR[0];
	SR.erase(SR.begin());
	next = NULL;
}
//Creates a Packet from a packetID, and an arrivalTime.
Creates a Packet from a packetID, and an arrivalTime.
Creates a Packet from a packetID and an arrivalTime .
Packet::Packet(int apacketID, int aTimeStamp, int size, vector<int> sourceRoute){
	packetID = apacketID;
	timeStamp = aTimeStamp;
	packetSize = size;
	SR = sourceRoute;
	sender = SR[0];
	SR.erase(SR.begin());
	next = NULL;
}
Packet :: Packet ( int apacketID , int aTimeStamp , int size , vector < int > sourceRoute ) { packetID = apacketID ; timeStamp = aTimeStamp ; packetSize = size ; SR = sourceRoute ; sender = SR [ 0 ] ; SR . erase ( SR . begin ( ) ) ; next = NULL ; }
Creates a Packet from a packetID, and an arrivalTime.
Creates a Packet from a packetID and an arrivalTime .