|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It's a factory for Nodes abstraction. It pretends build Nodes of any class. It has got two parameters:
Node
Method Summary | |
Node |
buildNode()
Builds a Node using the default IdFactory and the default Class for him. |
Node |
buildNode(Id id)
Builds a Node using the Id that appears in parameter, using the default Class for him. |
IdFactory |
getIdFactory()
Returns the IdFactory that the concrete implementation uses to generate new Ids for new instances of Nodes. |
java.lang.Class |
getNodeClass()
Gets Class for the generated Nodes. |
java.lang.String |
getTopology()
Gets the actual topology for the network. |
void |
setIdFactory(IdFactory idFactory)
Sets the IdFactory to use in the future, to generate new Ids. |
void |
setNodeClass(java.lang.Class nodeClass)
Sets Class to generate new Nodes. |
void |
setTopology(java.lang.String topology)
Sets the topology of the network to know how generates new Ids. |
Method Detail |
public Node buildNode() throws InitializationException
InitializationException
public Node buildNode(Id id) throws InitializationException
id
-
InitializationException
public IdFactory getIdFactory()
public void setIdFactory(IdFactory idFactory)
idFactory
- IdFactory to use to generate new Ids.public java.lang.Class getNodeClass()
public void setNodeClass(java.lang.Class nodeClass) throws InitializationException
nodeClass
- Class for the Nodes to build in the future.
InitializationException
public java.lang.String getTopology()
public void setTopology(java.lang.String topology) throws InitializationException
topology
- Topology of the network.
InitializationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |