public boolean isValidAttachmentPoint(long switchDPID,int switchPort){
  if (topology.isAttachmentPointPort(switchDPID,(short)switchPort) == false)   return false;
  if (suppressAPs.contains(new SwitchPort(switchDPID,switchPort)))   return false;
  return true;
}

public boolean isValidAttachmentPoint ( long switchDPID , int switchPort ) { if ( topology . isAttachmentPointPort ( switchDPID , ( short ) switchPort ) == false ) return false ; if ( suppressAPs . contains ( new SwitchPort ( switchDPID , switchPort ) ) ) return false ; return true ; }
check whether the given attachment point is valid given the current topology
