de.cesr.more.manipulate.agent
Class MEgoNetworkManagerComp<A,E extends MoreEdge<? super A>>

java.lang.Object
  extended by de.cesr.more.manipulate.agent.MEgoNetworkManagerComp<A,E>
Type Parameters:
A -
E -
All Implemented Interfaces:
MoreEgoNetworkManagerComp<A,E>

public class MEgoNetworkManagerComp<A,E extends MoreEdge<? super A>>
extends Object
implements MoreEgoNetworkManagerComp<A,E>

Agent component that manages the agents links according to differences between partners regarding some node property. The agents need to implement MoreNetStructureManageable. The component takes care of updating link weights and removing and establishing links if required. For making new connections, transitivity links and common-out-neighbour links are considered and ordered according to the property difference between the focal node and the potential partner node. Thresholds for weight changes and amounts of amount of changed can be defined by setter methods (defaults are given).

Date:
21.04.2011

Field Summary
protected  Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E>> processors
           
 
Constructor Summary
MEgoNetworkManagerComp(Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E>> processorMap)
           
 
Method Summary
 MoreEgoNetworkProcessor<A,E> getEgoNetworkProcessor(MoreEgoNetworkEvent event)
           
static
<A,E extends MoreEdge<? super A>>
Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E>>
getEmptyProcessorMap()
           
 void process(MoreEgoNetworkEvent event, A agent, MoreNetwork<A,E> network)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processors

protected Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E extends MoreEdge<? super A>>> processors
Constructor Detail

MEgoNetworkManagerComp

public MEgoNetworkManagerComp(Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E>> processorMap)
Parameters:
agent -
network -
Method Detail

getEmptyProcessorMap

public static <A,E extends MoreEdge<? super A>> Map<MoreEgoNetworkEvent,MoreEgoNetworkProcessor<A,E>> getEmptyProcessorMap()

getEgoNetworkProcessor

public MoreEgoNetworkProcessor<A,E> getEgoNetworkProcessor(MoreEgoNetworkEvent event)
Specified by:
getEgoNetworkProcessor in interface MoreEgoNetworkManagerComp<A,E extends MoreEdge<? super A>>
See Also:
MoreEgoNetworkManagerComp.getEgoNetworkProcessor(de.cesr.more.manipulate.agent.MoreEgoNetworkEvent)

process

public void process(MoreEgoNetworkEvent event,
                    A agent,
                    MoreNetwork<A,E> network)
Specified by:
process in interface MoreEgoNetworkManagerComp<A,E extends MoreEdge<? super A>>
See Also:
de.cesr.more.manipulate.agent.MoreEgoNetworkManagerComp#process(de.cesr.more.manipulate.agent.MoreEgoNetworkEvent)