|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuaa.feral.context.SocialNetworkBuilder
public class SocialNetworkBuilder
Class for creating social networks in simulations with existing data.
Constructor Summary | |
---|---|
SocialNetworkBuilder(repast.simphony.space.graph.Network population,
repast.simphony.context.Context context)
Default constructor |
Method Summary | |
---|---|
void |
createLink(Person p1,
Person p2,
double weightF)
Method to create the social links in the network |
void |
createNetwork(java.util.Map<Person,java.util.Map<java.lang.String,java.lang.String>> tempData)
Method that creates the social network |
java.util.List<Person> |
parseSocialNetworkData(java.util.List<java.util.Map> data,
Community community)
Method to parse the initial social network input |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocialNetworkBuilder(repast.simphony.space.graph.Network population, repast.simphony.context.Context context)
population
- the social networkcontext
- the simulation context to add the populationMethod Detail |
---|
public java.util.List<Person> parseSocialNetworkData(java.util.List<java.util.Map> data, Community community)
data
- list of data pointscommunity
- the community associated with individuals
public void createNetwork(java.util.Map<Person,java.util.Map<java.lang.String,java.lang.String>> tempData)
tempData
- a map with people and their network datapublic void createLink(Person p1, Person p2, double weightF)
p1
- person 1 (the source)p2
- person 2 (the target)weightF
- the weight of the edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |