|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is focused to allow the ability of build networks
of different topologies, size and Nodes, using the factory method
pattern design.
The future implementations
must use the values specified at setValues(...) method as the
default values to build networks. For all non specified values into the
buildNetwork(...) methods you will use the default ones. Each
Network implementation will interprete the actual network topology
value. The default interpreted network topologies appear at
planet.generic.commonapi.factory.Topology class.
Method Summary | |
Network |
buildNetwork()
Generates a new Network with the actual size of the Network. |
Network |
buildNetwork(int size)
Generates a new Network with the size of Nodes specified by parameter. |
Network |
buildNetwork(int size,
NodeFactory nodeFactory)
Generates a new Network with the size of Nodes specified by parameter. |
Network |
buildNetwork(int size,
NodeFactory nodeFactory,
java.lang.String topology)
Generates a new Network with the size of Nodes specified by parameter. |
Network |
buildNetwork(int size,
java.lang.String topology)
Generates a new Network with the size of Nodes specified by parameter. |
NetworkFactory |
setValues(java.lang.Class network,
int size,
NodeFactory nodeFactory,
java.lang.String topology)
Sets the initial values for the NetworkFactory instance with the specified values. |
Method Detail |
public NetworkFactory setValues(java.lang.Class network, int size, NodeFactory nodeFactory, java.lang.String topology) throws InitializationException
network
- The Class reference for the current Network implementation.size
- Desired network size.nodeFactory
- The NodeFactory implementation to be used.topology
- Desired network topology.
InitializationException
- if any error occurs during the
initialization process.public Network buildNetwork() throws InitializationException
InitializationException
public Network buildNetwork(int size) throws InitializationException
size
- Number of Nodes to generate in the network.
InitializationException
public Network buildNetwork(int size, NodeFactory nodeFactory) throws InitializationException
size
- Number of Nodes to generate in the network.nodeFactory
- NodeFactory to use to build Nodes for the new network.
InitializationException
public Network buildNetwork(int size, java.lang.String topology) throws InitializationException
size
- Number of Nodes to generate in the network.topology
- The network topology for the new network.
InitializationException
public Network buildNetwork(int size, NodeFactory nodeFactory, java.lang.String topology) throws InitializationException
size
- Number of Nodes to generate in the network.nodeFactory
- NodeFactory to use to build Nodes for the new network.topology
- The network topology for the new network.
InitializationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |