Java Implementation : Discussion of Approach Desired
<p><em><strong>Issue</em></strong></p>

<p>I want to implement <code>TransparencyChecker Interface</code> which would verify that from any exchange in the network all trading information from other exchanges is available. </p>

<p><em><strong>Q:</em></strong> How would <code>TransparencyChecker Inferface</code> implemented ?</p>

<p><em><strong>Problem Background</em></strong> </p>

<p>Stock exchanges decided to share trading information with each other. If one exchange wants to share information with another exchange, it
installs an outgoing network link to dump all transactions. The network links are one-way and the exchange also shares transactions, which have
been received from incoming network links.</p>

<p><em><strong>Code</em></strong></p>

<pre><code>interface Exchange {

 /**
 * Returns list of names of exchanges which receive all trading information
 * from this exchange.
 * @return list of exchanges
 */
 Set&lt;String&gt; getOutgoingConnections ();

 /**
 * Name of the exchange
 * @return name
 */
 String getName ();
}

interface TransparencyChecker {

 /**
 * Checks the transparency of the network. The network is the
 * collection of exchanges and each of them has a unique name.
 * @param exchanges list of exchanges in the network
 * @return true if all trading information is available for every exchange
 */
 boolean isTransparent (Set&lt;Exchange&gt; exchanges);

}
</code></pre>
