se.timestamp = now(); if (se.currentLocation == null || !se.currentLocation.equals(loc)) { se.priorLocation = se.currentLocation; if (thisAgent.equals(se.priorLocation)) {
if (se != null) { se.timestamp = now(); if (se.currentLocation == null || !se.currentLocation.equals(loc)) { se.priorLocation = se.currentLocation; se.currentLocation = loc; queueChangeEvent( new CommunityStatusChangeEvent(CommunityStatusChangeEvent. LOCATION_CHANGE, se));
  public void setLocation(String name, String loc) {    logger.debug("setLocation: agent=" + name + " loc=" + loc);    StatusEntry se = (StatusEntry)statusMap.get(name);    se.timestamp = now();    if (se.currentLocation == null || !se.currentLocation.equals(loc)) {      se.priorLocation = se.currentLocation;      if (thisAgent.equals(se.priorLocation)) {      }      se.currentLocation = loc;      queueChangeEvent(        new CommunityStatusChangeEvent(CommunityStatusChangeEvent.LOCATION_CHANGE, se));    }  }