de.cesr.more.building.network
Class MWattsBetaSwBuilder<AgentType,EdgeType extends MoreEdge<AgentType>>

java.lang.Object
  extended by de.cesr.more.building.network.MNetworkService<AgentType,EdgeType>
      extended by de.cesr.more.building.network.MWattsBetaSwBuilder<AgentType,EdgeType>
All Implemented Interfaces:
MoreNetworkBuilder<AgentType,EdgeType>, MoreNetworkService<AgentType,EdgeType>, MoreNetworkEdgeModifier<AgentType,EdgeType>, MoreNetworkModifier<AgentType,EdgeType>

public class MWattsBetaSwBuilder<AgentType,EdgeType extends MoreEdge<AgentType>>
extends MNetworkService<AgentType,EdgeType>

MORe

Date:
22.11.2011

Field Summary
protected  String name
           
 
Fields inherited from class de.cesr.more.building.network.MNetworkService
edgeFac, edgeModifier
 
Constructor Summary
MWattsBetaSwBuilder()
           
MWattsBetaSwBuilder(MoreEdgeFactory<AgentType,EdgeType> eFac)
           
MWattsBetaSwBuilder(MoreEdgeFactory<AgentType,EdgeType> eFac, String name)
           
 
Method Summary
 boolean addAndLinkNode(MoreNetwork<AgentType,EdgeType> network, AgentType node)
          Removes an agent from the given network and deletes all its links.
 MoreNetwork<AgentType,EdgeType> buildNetwork(Collection<AgentType> agents)
          Links the given collection of agents and thus generates the network.
 String toString()
           
 
Methods inherited from class de.cesr.more.building.network.MNetworkService
addAgents, checkAgentCollection, createEdge, getEdgeFactory, getEdgeModifier, logEdges, removeEdge, removeNode, setEdgeModifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

MWattsBetaSwBuilder

public MWattsBetaSwBuilder()

MWattsBetaSwBuilder

public MWattsBetaSwBuilder(MoreEdgeFactory<AgentType,EdgeType> eFac)

MWattsBetaSwBuilder

public MWattsBetaSwBuilder(MoreEdgeFactory<AgentType,EdgeType> eFac,
                           String name)
Parameters:
eFac -
Method Detail

buildNetwork

public MoreNetwork<AgentType,EdgeType> buildNetwork(Collection<AgentType> agents)
Description copied from interface: MoreNetworkBuilder
Links the given collection of agents and thus generates the network.

Returns:
See Also:
Parameters are assigned through the parameter framework to allow network builders to be initialises automatically.

addAndLinkNode

public boolean addAndLinkNode(MoreNetwork<AgentType,EdgeType> network,
                              AgentType node)
Description copied from interface: MoreNetworkModifier
Removes an agent from the given network and deletes all its links. Basically, this method reverses all the action that #addAgent(Object, MoreRsNetwork) performed.

Parameters:
network - the network to remove the given agent from
Returns:
true if the agent could be completely removed
See Also:
MoreNetworkModifier.addAndLinkNode(de.cesr.more.basic.network.MoreNetwork, java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()