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)
SimpleHHiniWithFileData in interface SimpleHHpublic void iniWithOtherHHData(java.util.HashMap<java.lang.String,java.lang.Double> attributes)
SimpleHHiniWithOtherHHData in interface SimpleHHpublic double getSavings()
public double getAccSavingsMemb()
public boolean isCooperator()
SimpleHHisCooperator in interface SimpleHHpublic void setCooperator(boolean isCooperator)
SimpleHHsetCooperator in interface SimpleHHpublic void iniCooperator()
SimpleHHiniCooperator in interface SimpleHHpublic double getIniCoop()
public void hhBalanceSimple()
SimpleHHhhBalanceSimple in interface SimpleHHpublic void hhBalanceTypes()
hhBalanceTypes in interface SimpleHHpublic void resetAccSavings()
resetAccSavings in interface SimpleHHpublic void setDefector(boolean isDefector)
SimpleHHsetDefector in interface SimpleHHpublic boolean isDefector()
SimpleHHisDefector in interface SimpleHH