|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.SimModelImpl
uchicago.src.repastdemos.jinGirNew.JinGirNewModelII
public class JinGirNewModelII
This is an implementation of the second model (model II) described in Jin, Girvan, and Newman, "The Structure of Growing Social Networks." Santa Fe Institute 2001 working paper. This paper can be found on-line at http://www.santafe.edu/sfi/publications/Abstracts/01-06-032abs.html
Their abstract follows:
"We propose some simple models of the growth of social networks, based on three general principles: (1) meetings take place between pairs of individuals at a rate which is high if a pair has one or more mutual friends and low otherwise; (2) acquaintances between pairs of individuals who rarely meet decay over time; (3) there is an upper limit on the number of friendships an individual can maintain. using computer simulations, we find that models that incorporatge all of these features reproduce many of the features of real social networks, including high levels of clustering or network transitivity and strong community structure in which individuals have more links to others within their community than to individuals from other communities."
See the repast/demo/jinGirNew/readme for details on the parameters of this model.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.engine.SimModelImpl |
|---|
descriptors, modelManipulator |
| Constructor Summary | |
|---|---|
JinGirNewModelII()
|
|
| Method Summary | |
|---|---|
void |
begin()
Begins a simulation run. |
void |
buildDisplay()
|
void |
buildModel()
|
boolean |
getDegreeHist()
|
java.lang.String[] |
getInitParam()
Gets the names of the initial model parameters to set. |
java.lang.String |
getLayoutType()
|
int |
getMaxDegree()
|
java.lang.String |
getName()
Gets the name of the model/simulation. |
int |
getNumNodes()
|
boolean |
getPlot()
|
double |
getRemoveProb()
|
double |
getRsub0()
|
double |
getRsub1()
|
Schedule |
getSchedule()
Gets the Schedule created by the model. |
int |
getStartRemoveAfter()
|
int |
getUpdateEveryN()
|
int |
getWorldXSize()
|
int |
getWorldYSize()
|
void |
initialAction()
|
static void |
main(java.lang.String[] args)
|
void |
mainAction()
|
void |
removeInitialAction()
|
void |
setDegreeHist(boolean val)
|
void |
setLayoutType(java.lang.String type)
|
void |
setMaxDegree(int degree)
|
void |
setNumNodes(int n)
|
void |
setPlot(boolean val)
|
void |
setRemoveProb(double prob)
|
void |
setRsub0(double R)
|
void |
setRsub1(double R)
|
void |
setStartRemoveAfter(int steps)
|
void |
setup()
Prepares a model for a new run, typically by deallocating objects or setting them to some reasonable default. |
void |
setUpdateEveryN(int updates)
|
void |
setWorldXSize(int size)
|
void |
setWorldYSize(int size)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JinGirNewModelII()
| Method Detail |
|---|
public boolean getDegreeHist()
public void setDegreeHist(boolean val)
public boolean getPlot()
public void setPlot(boolean val)
public int getMaxDegree()
public void setMaxDegree(int degree)
public double getRsub0()
public void setRsub0(double R)
public double getRsub1()
public void setRsub1(double R)
public java.lang.String getLayoutType()
public void setLayoutType(java.lang.String type)
public void setUpdateEveryN(int updates)
public int getUpdateEveryN()
public double getRemoveProb()
public void setRemoveProb(double prob)
public int getStartRemoveAfter()
public void setStartRemoveAfter(int steps)
public void setNumNodes(int n)
public int getNumNodes()
public int getWorldXSize()
public void setWorldXSize(int size)
public int getWorldYSize()
public void setWorldYSize(int size)
public void buildModel()
public void buildDisplay()
public void initialAction()
public void mainAction()
public void removeInitialAction()
public void begin()
SimModel
public void setup()
SimModel
public java.lang.String[] getInitParam()
SimModel
public Schedule getSchedule()
SimModel
public java.lang.String getName()
SimModel
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||