de.cesr.more.basic.agent
Interface MoreAgentNetworkComp<A,E extends MoreEdge<? super A>>
- Type Parameters:
A
- the common type (of agents) that is contained as nodes in the networksE
- the edge type
- All Known Subinterfaces:
- MoreAgentAnalyseNetworkComp<A,E>, MoreLaraNetworkAgent<A,E,BO>
- All Known Implementing Classes:
- MAbstractAnalyseNetworkAgent, MAbstractLaraAnalyseNetworkAgent, MAbstractLaraNetworkAgent, MAbstractNetworkAgent, MAgentAnalyseNetworkComp, MAgentNetworkComp, MRsEncapsulatedContextJungNetworkTest.TestAgent, MTestUtilsLara.MTestNetworkAgent
public interface MoreAgentNetworkComp<A,E extends MoreEdge<? super A>>
Supports a main network that is meant to be the agent's primary
social network. If not set explicitly the network that is set first
becomes main network.
- Date:
- 19.01.2010
setNetwork
void setNetwork(MoreNetwork<A,E> network)
- Registers the given network by the given network's
name (network.getName()).
If it is the first network registered the given network
also becomes main network.
- Parameters:
network
-
getNetwork
MoreNetwork<A,E> getNetwork(String name)
- Parameters:
name
-
- Returns:
- the network with the given name
setMainNetwork
void setMainNetwork(MoreNetwork<A,E> network)
- Parameters:
main
- network
getMainNetwork
MoreNetwork<A,E> getMainNetwork()
- Parameters:
name
-
- Returns:
- the agent's main social network
getNetworks
Collection<MoreNetwork<A,E>> getNetworks()
- Returns:
- collection of all networks