|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuaa.feral.social.leadership.AbstractLeadershipModel
uaa.feral.social.leadership.AgentTypesModel
public class AgentTypesModel
Model evaluates agent responses and satisfaction, then adjusts agent social weights in a network. Concepts are similar to Kitts (2006): Kitts, James A. 2006. Social influence and the emergence of norms amid ties of amity and enmity. Simulation Modelling Practice and Theory 14:407-422. However, differences are found between this and Kitts' model.
Constructor Summary | |
---|---|
AgentTypesModel(Community community)
Initialize the model and associate it with a community object. |
Method Summary | |
---|---|
double |
approvalBias(Person person1,
Person person2)
Delta ABij=(ASij+T(ABij))/2, j!=i |
double |
approvalByPeers(Person p)
Ai=(1/N)*Sum(aji*wij), i!=j. |
double |
approvalSatisfaction(Person person1,
Person person2)
ASij=(1-Di)*Aj+Di*aji*wij. |
double |
choiceSatisfaction(Person p)
CSi=(1-Di)*S+Di*ci-ei. |
double |
complianceBias(Person p)
Delta CBi=(CSi+T(CBi))/2. |
double[] |
determineResponse(double[] propensity)
Adjustment method to modify propensity with values closer to extreme always resulting in a deterministic result, but those close to zero are more random and evaluated against a uniform distribution of probabilities. |
void |
eigenSpace()
Function to determine where, based on a PCA of agent weight values, does the agent lie in relation to other agents. |
void |
individualBenefitShare()
S=(1/N)*Sum(ci). |
double |
influenceApproval(Person person1,
Person person2)
IAik=(1/n)*Sum(((wij+2*Ij)*ajk)/3), j!=i, k. |
double |
influenceCompliance(Person p)
ICi=(1/n)*Sum(((wij+2*Ij)*cj)/3), j!=i. |
double |
linearImpact(double value)
if x>=0 then T=(1+x)/2, else T=(x-1)/2 |
double |
propensityToApprove(Person person1,
Person person2)
PAij=(1-Di)*ABij+Di*IAij. |
double |
propensityToComply(Person p)
PCi=(1-di)*CBi+di*ICi, while i!=Alpha. |
void |
runModel()
Method executes the model at each time tick, with the method initially called by the community object. |
void |
setupInitialScheduleInfo()
Setup model time length. |
void |
setupModelData(java.lang.String file)
Method to setup model data from an input xml file. |
void |
setupRejectAcceptNormativeAffective()
More setting up of initial model data derived from xml data. |
void |
updateApprovalState(Person person1,
Person person2,
double approveP)
Method to adjust approval state between two agents based on PAij. |
void |
updateChoicePropensity(Person person1,
double propensity)
Method adjusts choice to agree or not based on PCi. |
double |
weightChange(Person person1,
Person person2,
double propensityToChoose)
Delta wij=1/4(PCi*cj+T(wij)+aji*Di+Sum((PAij*akj)/n)), i!=j,k. |
Methods inherited from class uaa.feral.social.leadership.AbstractLeadershipModel |
---|
CreateLeadershipModel, getScenariodData, setScenarioData |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentTypesModel(Community community)
community
- the community objectMethod Detail |
---|
public void runModel()
public void setupModelData(java.lang.String file)
file
- the file with xml datapublic void setupInitialScheduleInfo()
public void setupRejectAcceptNormativeAffective()
public void eigenSpace()
public void individualBenefitShare()
public double influenceCompliance(Person p)
p
- a person checking compliance with other agents
public double influenceApproval(Person person1, Person person2)
person1
- person evaluating approval of someoneperson2
- person who is being evaluated
public double approvalByPeers(Person p)
p
- a person determining approval by peers
public double choiceSatisfaction(Person p)
p
- person evaluating satisfaction with accepting
choice
public double approvalSatisfaction(Person person1, Person person2)
person1
- person2
-
public double complianceBias(Person p)
p
- a person evaluating their bias to behave
public double approvalBias(Person person1, Person person2)
person1
- person evaluating approvalperson2
- person being evaluated for approval
public double linearImpact(double value)
value
- input to adjust
public double propensityToComply(Person p)
p
- a person who is determining their propensity to complypublic double propensityToApprove(Person person1, Person person2)
person1
- person making approval choiceperson2
- person being evaluated
public double weightChange(Person person1, Person person2, double propensityToChoose)
person1
- person evaluating weightperson2
- person being evaluated by person 1
public void updateApprovalState(Person person1, Person person2, double approveP)
person1
- the person evaluatingperson2
- the person evaluatedapproveP
- the approval valuepublic double[] determineResponse(double[] propensity)
propensity
- the propensity array to modify
public void updateChoicePropensity(Person person1, double propensity)
person1
- the person choosingpropensity
- the propensity value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |