void removeNeighbour(Neighbour neighbour)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "removeNeighbour", neighbour);

    Neighbour[] tmp = iNeighbours;

    // Loop through the Neighbours in this Bus
    for (int i = 0; i < iNeighbours.length; ++i)
      if (iNeighbours[i].equals(neighbour))
      {
        // If the Neighbours match, then resize the array without this
        // Neighbour in it.
        tmp = new Neighbour[iNeighbours.length - 1];
        System.arraycopy(iNeighbours, 0, tmp, 0, i);
        System.arraycopy(
          iNeighbours,
          i + 1,
          tmp,
          i,
          iNeighbours.length - i - 1);

        iNeighbours = tmp;

        break;
      }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "removeNeighbour");
  }
void removeNeighbour ( Neighbour neighbour ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeNeighbour" , neighbour ) ; Neighbour [ ] tmp = iNeighbours ; for ( int i = 0 ; i < iNeighbours . length ; ++ i ) if ( iNeighbours [ i ] . equals ( neighbour ) ) { tmp = new Neighbour [ iNeighbours . length - 1 ] ; System . arraycopy ( iNeighbours , 0 , tmp , 0 , i ) ; System . arraycopy ( iNeighbours , i + 1 , tmp , i , iNeighbours . length - i - 1 ) ; iNeighbours = tmp ; break ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "removeNeighbour" ) ; }
Removes a Neighbour reference from this Bus group

@param neighbour  The Neighbour to be removed