public void addHop(int id){
  if (entities == null) {
    return;
  }
  hopsNumber++;
  entities.add(Integer.valueOf(id));
}

public void addHop ( int id ) { if ( entities == null ) { return ; } hopsNumber ++ ; entities . add ( Integer . valueOf ( id ) ) ; }
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 .
