public class SpatialRegularSN extends CommunicationGraph
SocialGraph.EDGEMEDIUM
edges, neighbours, nodes, outgoingEdges, outgoingEdgesMedium
associatedSimulationContainer
Constructor and Description |
---|
SpatialRegularSN(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
int numberOfNodes) |
SpatialRegularSN(SimulationContainer associatedSimulationContainer,
SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes) |
SpatialRegularSN(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 |
---|---|
void |
addNodes(SNConfiguration sNconfiguration,
java.util.Set<SNNode> nodesToAdd)
(Network type specific) method to add a number of nodes (and the edges that go with them) to the social graph
|
java.util.Set<SNEdge> |
createEdges(SNConfiguration sNConfiguration,
java.util.Set<SNNode> initialNodes)
(Network type specific) method to generate edges between a set of initial nodes.
|
int |
getZ() |
getCommunicationNeighbours, getCommunicationNeighbours
addEdge, addIsolatedNode, getAllMediaNeighbours, getEdges, getNeighbours, getNeighbours, getNeighbours, getNeighbours, getNodes, modifyEdgeMedium, modifyEdgeNodes, modifyEdgeSource, modifyEdgeTarget, removeEdge, replaceEdge, retrieveAllEdges, retrieveEdge
getAssociatedSimulationContainer
public SpatialRegularSN(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> nodes, java.util.Set<SNEdge> edges, java.util.HashMap<SNNode,java.util.Set<SNNode>> neighbours)
public SpatialRegularSN(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
public SpatialRegularSN(SimulationContainer associatedSimulationContainer, SNConfiguration sNConfiguration, int numberOfNodes)
public int getZ()
public void addNodes(SNConfiguration sNconfiguration, java.util.Set<SNNode> nodesToAdd)
SocialGraph
addNodes
in class SocialGraph
sNconfiguration
- The configuration the social graph is based onnodesToAdd
- The nodes to be added to the social graphpublic java.util.Set<SNEdge> createEdges(SNConfiguration sNConfiguration, java.util.Set<SNNode> initialNodes)
SocialGraph
createEdges
in class SocialGraph
sNConfiguration
- The configuration of the social graph of interestinitialNodes
- The nodes the social graph should be initialized with