de.cesr.more.manipulate.network
Interface MoreNetworkModifier<AgentType,EdgeType extends MoreEdge<? super AgentType>>

Type Parameters:
AgentType -
EdgeType -
All Superinterfaces:
MoreNetworkEdgeModifier<AgentType,EdgeType>
All Known Subinterfaces:
MoreGeoNetworkService<AgentType,EdgeType>, MoreGeoRsNetworkService<AgentType,EdgeType>, MoreNetworkService<AgentType,EdgeType>, MoreRsNetworkService<AgentType,EdgeType>
All Known Implementing Classes:
MCompleteNetworkBuilder, MGCompleteNetworkBuilder, MGeoHomophilyDistanceFfNetworkService, MGeoNetworkService, MGeoRsBaselineNumberNetworkService, MGeoRsBaselineRadiusNetworkService, MGeoRsBaselineRingNetworkService, MGeoRsCompleteNetworkBuilder, MGeoRsHomophilyDistanceFfNetworkService, MGeoRsHomophilyDistanceNetworkService, MGeoRsIdealHomophilyDistanceNetworkService, MGeoRsIdealNetworkService, MGeoRsNetworkService, MGeoRsRandomNetworkService, MGeoRsSocialDistanceAttachNetworkBuilder, MGeoRsWattsBetaSwBuilder, MGeoRsWattsBetaSwPartnerCheckingBuilder, MGroupBaselineRadiusNetworkService, MNetworkService, MRsCompleteNetworkBuilder, MRsErdosRenyiRandomNetworkService, MRsNetworkService, MWattsBetaSwBuilder

public interface MoreNetworkModifier<AgentType,EdgeType extends MoreEdge<? super AgentType>>
extends MoreNetworkEdgeModifier<AgentType,EdgeType>

MORe The MoreNetworkModifier interface provides methods to consistently add agents to and remove agents from an existing network. It is especially useful in combination with MoreNetworkBuilder and part of the MoreNetworkService interface. It goes beyond a MoreNetworkEdgeModifier and MoreEdgeFactory and rather uses MoreNetworkEdgeModifiers to handle edges.

Date:
14.06.2011

Method Summary
 boolean addAndLinkNode(MoreNetwork<AgentType,EdgeType> network, AgentType node)
          Removes an agent from the given network and deletes all its links.
 boolean removeNode(MoreNetwork<AgentType,EdgeType> network, AgentType node)
          Adds an agent to the given network.
 void setEdgeModifier(MoreNetworkEdgeModifier<AgentType,EdgeType> edgeModifier)
           
 
Methods inherited from interface de.cesr.more.manipulate.edge.MoreNetworkEdgeModifier
createEdge, getEdgeFactory, removeEdge
 

Method Detail

addAndLinkNode

boolean addAndLinkNode(MoreNetwork<AgentType,EdgeType> network,
                       AgentType node)
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:
agent - the agent to remove
network - the network to remove the given agent from
Returns:
true if the agent could be completely removed

removeNode

boolean removeNode(MoreNetwork<AgentType,EdgeType> network,
                   AgentType node)
Adds an agent to the given network. In combination with MoreNetworkBuilder this method should connect the agent in a way the

Parameters:
agent - the agent to add
network - the network the given agent is added to
Returns:
true if the agent could be added an all additional steps could be performed

setEdgeModifier

void setEdgeModifier(MoreNetworkEdgeModifier<AgentType,EdgeType> edgeModifier)