question: public void addHop ( int id ) { if ( entities == null ) { return ; } hopsNumber ++ ; entities . add ( Integer . valueOf ( id ) ) ; }
target:  Add an entity where the InfoPacket traverses. This method should be called by network entities that count as hops,  for instance Routers or CloudResources. It should not be called by links etc.