public int countForeignHosts() {
        int retval = 0;
        for (ForeignHost host : m_foreignHosts.values()) {
            if ((host != null) && (host.isUp())) {
                retval++;
            }
        }
        return retval;
    }
public int countForeignHosts ( ) { int retval = 0 ; for ( ForeignHost host : m_foreignHosts . values ( ) ) { if ( ( host != null ) && ( host . isUp ( ) ) ) { retval ++ ; } } return retval ; }
Get the number of up foreign hosts. Used for test purposes.
@return The number of up foreign hosts.