public class HeterogeneousRegularCommunicationGraph extends CommunicationGraph
SocialGraph.EDGEMEDIUMedges, neighbours, nodes, outgoingEdges, outgoingEdgesMediumassociatedSimulationContainer| Constructor and Description |
|---|
HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> nodes,
java.util.Set<SNEdge> edges,
java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<SNEdge> |
createEdges(SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes)
Method to create the edges of a newly instantiated graph.
|
static java.util.Set<SNEdge> |
createHeterogeneousRegularCommunicationEdges(SimulationContainer associatedSimulationContainer,
java.util.Map<ConsumerAgentGroup,java.lang.Integer> consumerGroupZMapping,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes)
Helper method to provide the functionality to create the respective edges for a heterogeneous regular network
to other methods by making the method static.
|
java.util.Map<ConsumerAgentGroup,java.lang.Integer> |
getConsumerGroupZMapping() |
getCommunicationNeighbours, getCommunicationNeighboursaddEdge, addIsolatedNode, addNodes, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdgegetAssociatedSimulationContainerpublic HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public HeterogeneousRegularCommunicationGraph(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes)
public java.util.Map<ConsumerAgentGroup,java.lang.Integer> getConsumerGroupZMapping()
public java.util.Set<SNEdge> createEdges(SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
createEdges in class SocialGraphsNConfiguration - The configuration of the social graph of interestinitialNodes - The nodes the social graph should be initialized withpublic static java.util.Set<SNEdge> createHeterogeneousRegularCommunicationEdges(SimulationContainer associatedSimulationContainer, java.util.Map<ConsumerAgentGroup,java.lang.Integer> consumerGroupZMapping, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
associatedSimulationContainer - The container the graph is used inconsumerGroupZMapping - The map of how many neighbours to create for each ConsumerAgentGroupsNConfiguration - The configuration of the social graph of interestinitialNodes - The nodes the social graph should be initialized with