com.monkeycoder.monkeynetwork
Class NetworkFactory

java.lang.Object
  extended by com.monkeycoder.monkeynetwork.NetworkFactory

public class NetworkFactory
extends java.lang.Object

This class is for creating network objects by protocol. This is the primary starting point when using MonkeyNetwork.

Author:
David Stephens

Method Summary
static Network getNetwork(int inProtocol)
          Factory function for generating Network objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNetwork

public static Network getNetwork(int inProtocol)
                          throws MonkeyException
Factory function for generating Network objects.

Parameters:
inProtocol - The protocol of the network you are requesting.
Returns:
A network of the requested type.
Throws:
MonkeyException - When the requested protocol is unknown or unsupported.
See Also:
NetworkProtocol