public abstract class AbstractHH extends java.lang.Object implements SimpleHH
Constructor and Description |
---|
AbstractHH(repast.simphony.context.Context theContext,
Selling mySellingDecision,
GlobSpace theGlobSpace) |
Modifier and Type | Method and Description |
---|---|
double |
getAccSavingsMemb()
returns accumulated savings per HH member
|
double |
getIniCoop() |
double |
getSavings()
returns monthly HH savings per member
|
void |
hhBalanceSimple()
computes monthly savings of HH
|
void |
hhBalanceTypes()
computes HH savings for non-livestock owning HH based on selling types.
|
void |
iniCooperator()
random initialization for last norm following value at start of simulation
|
void |
iniWithFileData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
initializes all HH with data from input files where they are not specific to the HH type
|
void |
iniWithOtherHHData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
used to re-instatinate entering.
|
boolean |
isCooperator()
checker for norm following
|
boolean |
isDefector()
returns true if agent is a permanent defector
|
void |
resetAccSavings()
resets accumulated savings
|
void |
setCooperator(boolean isCooperator)
sets HH to norm follower
|
void |
setDefector(boolean isDefector)
sets agent to be a permanent defector
|
public void iniWithFileData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
SimpleHH
iniWithFileData
in interface SimpleHH
public void iniWithOtherHHData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
SimpleHH
iniWithOtherHHData
in interface SimpleHH
public double getSavings()
public double getAccSavingsMemb()
public boolean isCooperator()
SimpleHH
isCooperator
in interface SimpleHH
public void setCooperator(boolean isCooperator)
SimpleHH
setCooperator
in interface SimpleHH
public void iniCooperator()
SimpleHH
iniCooperator
in interface SimpleHH
public double getIniCoop()
public void hhBalanceSimple()
SimpleHH
hhBalanceSimple
in interface SimpleHH
public void hhBalanceTypes()
hhBalanceTypes
in interface SimpleHH
public void resetAccSavings()
resetAccSavings
in interface SimpleHH
public void setDefector(boolean isDefector)
SimpleHH
setDefector
in interface SimpleHH
public boolean isDefector()
SimpleHH
isDefector
in interface SimpleHH