@Override
	public void updateClockOnReceive(TimeStamp ts) {
		VectorTimeStamp lts = (VectorTimeStamp) ts;
		HashMap<String, Integer> mp = lts.getTime();

		//If the two vector lengths are not equal return
	    if(mp.size() != vectorclockmap.size()){
			System.out.println("The number of entries in both the timestamps are unequal");
			return;
		}
	    
	    java.util.Iterator<Entry<String, Integer>> it = mp.entrySet().iterator();
	    while (it.hasNext()) {
	        Entry<String, Integer> pairs = it.next();
	        //If the entry your reading is yourself, ignore and increment your value by 1
	        if(pairs.getKey().equals(source))
	        	vectorclockmap.put(source, vectorclockmap.get(source)+1);
	        else
	        {
	        	//Get the value for the same src of both and compare, assign
	        	//the higher value for that src
	        	if(vectorclockmap.get(pairs.getKey()) < pairs.getValue())
	        		vectorclockmap.put(pairs.getKey(), pairs.getValue());
	        }
	    }
	}