public class EERModel extends AbstractNetworkModel implements ERModel
ERModel
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_NUM_LINKS |
static java.lang.String |
PARAM_NUM_NODES |
Constructor and Description |
---|
EERModel(org.apache.commons.configuration.Configuration config,
org.apache.commons.math3.random.RandomGenerator random,
com.google.inject.Provider<Network> networkProvider) |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.commons.configuration.Configuration configuration)
Configures the
NetworkModel with a given Configuration
instance. |
void |
configure(int numNodes,
int numEdges,
long seed)
Configures a model to produce a network with a given number of nodes and
links.
|
void |
generateNetwork() |
generate, getConfiguration
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate, getConfiguration
public static final java.lang.String PARAM_NUM_NODES
public static final java.lang.String PARAM_NUM_LINKS
@Inject public EERModel(org.apache.commons.configuration.Configuration config, org.apache.commons.math3.random.RandomGenerator random, com.google.inject.Provider<Network> networkProvider)
public void generateNetwork()
public void configure(int numNodes, int numEdges, long seed) throws org.apache.commons.configuration.ConfigurationException
ERModel
public void configure(org.apache.commons.configuration.Configuration configuration) throws org.apache.commons.configuration.ConfigurationException
NetworkModel
Configures the NetworkModel
with a given Configuration
instance. Note that the configuration objects should be provided by each
network model instance and accessed using @
NetworkModel#getConfiguration()}.
configure
in interface NetworkModel
configuration
- a configuration with the appropriate parameters for the
network model to run.org.apache.commons.configuration.ConfigurationException
- an exception that should be thrown if the passed
configuration contains an invalid configuration (missing
parameters or invalid parameter values)