|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.generic.commonapi.factory.NetworkFactoryImpl
This class allows the ability of build networks of different topologies, size and Nodes. This implementation offers network building with:
Field Summary | |
protected java.lang.Class |
network
The default Class reference for the current Network implementation. |
protected int |
networkSize
The default network size to use for build a network. |
protected NodeFactory |
nodeFactory
The default NodeFactory. |
protected java.lang.String |
topology
The default topology to use for build a network. |
Constructor Summary | |
NetworkFactoryImpl()
Builds a NetworkFactoryImpl instance. |
Method Summary | |
protected Network |
_buildNetwork(int size,
NodeFactory nodeFactory,
java.lang.String topology)
Builds a network with the specified parameters. |
Network |
buildNetwork()
Builds a network with the actual specified properties. |
Network |
buildNetwork(int size)
Builds a network with the actual specified properties, but overwriting the number of nodes to build within. |
Network |
buildNetwork(int size,
NodeFactory nodeFactory)
Builds a new network with the specified size and this concrete nodeFactory. |
Network |
buildNetwork(int size,
NodeFactory nodeFactory,
java.lang.String topology)
Builds a new network with the specified size, this concrete nodeFactory and network topology. |
Network |
buildNetwork(int size,
java.lang.String topology)
Builds a network with the specified size for the network, building it under this concrete topology. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Class network
protected NodeFactory nodeFactory
protected int networkSize
protected java.lang.String topology
Constructor Detail |
public NetworkFactoryImpl()
Method Detail |
public NetworkFactory setValues(java.lang.Class network, int size, NodeFactory nodeFactory, java.lang.String topology) throws InitializationException
setValues
in interface NetworkFactory
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.NetworkFactory.setValues(java.lang.Class, int, planet.commonapi.factory.NodeFactory, java.lang.String)
public Network buildNetwork() throws InitializationException
buildNetwork
in interface NetworkFactory
InitializationException
- if occurs any problem during
the process to build the network.NetworkFactory.buildNetwork()
public Network buildNetwork(int size) throws InitializationException
buildNetwork
in interface NetworkFactory
size
- The number of Nodes for the new Network
InitializationException
- if occurs any problem during
the process to build the network.NetworkFactory.buildNetwork(int)
public Network buildNetwork(int size, java.lang.String topology) throws InitializationException
buildNetwork
in interface NetworkFactory
size
- The number of Nodes for the new Networktopology
- The network topology to constructs new network.
InitializationException
- if occurs any problem during
the process to build the network.NetworkFactory.buildNetwork(int, java.lang.String)
public Network buildNetwork(int size, NodeFactory nodeFactory) throws InitializationException
buildNetwork
in interface NetworkFactory
size
- The number of Nodes for the new NetworknodeFactory
- The NodeFactory to use to build Nodes for the new network.
InitializationException
- if occurs any problem during
the process to build the network.NetworkFactory.buildNetwork(int, planet.commonapi.factory.NodeFactory)
public Network buildNetwork(int size, NodeFactory nodeFactory, java.lang.String topology) throws InitializationException
buildNetwork
in interface NetworkFactory
size
- The number of Nodes for the new NetworknodeFactory
- The NodeFactory to use to build Nodes for the new network.topology
- The network topology to constructs new network.
InitializationException
- if occurs any problem during
the process to build the network.NetworkFactory.buildNetwork(int, planet.commonapi.factory.NodeFactory, java.lang.String)
protected Network _buildNetwork(int size, NodeFactory nodeFactory, java.lang.String topology) throws InitializationException
size
- Number of nodes to build under in the network.nodeFactory
- NodeFactory to use to build new Nodes.topology
- Topology of the new network.
InitializationException
- if occurs any problem during the
initialization process.Topology
,
Properties
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |