|
|||||||||||
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. The future implementation must read the properties file to known the default values of the future networks. In that are four values:
Topology
,
NodeFactory
,
Network
,
Id
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,
NodeFactory nodeFactory,
java.lang.String topology,
int k)
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. |
int |
getNetworkSize()
Returns the actual size of the new Networks. |
NodeFactory |
getNodeFactory()
Returns the actual NodeFactory to use to generate networks. |
java.lang.String |
getSerializedFile()
Gets the actual file from where capture a serialized state of a network. |
java.lang.String |
getTopology()
Gets the actual network's topology of the generated networks. |
void |
setNetworkSize(int size)
Sets the size of new networks. |
void |
setNodeFactory(NodeFactory nodeFactory)
Sets the NodeFactory to use in the future to generate new networks. |
void |
setSerializedFile(java.lang.String file)
Sets the filename from where capture a serialized state of a network. |
void |
setTopology(java.lang.String topology)
Sets the topology of the new generated networks. |
Method Detail |
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
public Network buildNetwork(int size, NodeFactory nodeFactory, java.lang.String topology, int k) 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.k
- The number of bits for the NodeImpl's Ids.
InitializationException
Id
public NodeFactory getNodeFactory()
public void setNodeFactory(NodeFactory nodeFactory)
nodeFactory
- NodeFactory's instance to generate new networks.NodeFactory
,
Network
public int getNetworkSize()
Network
public void setNetworkSize(int size)
size
- Size of new networks.public java.lang.String getTopology()
public void setTopology(java.lang.String topology) throws InitializationException
topology
- Topology of the new networks.
InitializationException
- if the topology is not suported.public java.lang.String getSerializedFile()
public void setSerializedFile(java.lang.String file) throws InitializationException
file
- Filename from read a serialized state of a network.
InitializationException
- if occur some problem with the filename.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |