public class RepetitiveCapitalLevelInnovationTest extends InnovationTestUtils
InnovationTestUtils.CsvProductivityInnovationRepTestComp| Modifier and Type | Field and Description |
|---|---|
protected RepeatingInnovativeInstitution |
csvInstitution |
boolean |
indicator |
protected RepeatingCapitalLevelInnovation |
innovation |
double[] |
INNOVATION_EFFECT_CSV_FACTORS |
String |
INNOVATION_ID_CSV |
String |
REPEATING_CSV_INNOVATION_XML_FILE |
String |
REPEATING_INNOVATION_CSV_FACTOR_FILE |
innoFarmingA, innoForesterA, innovativeFarming, innovativeForestry, potentialAgentsa1, a2, allocation, c11, c12, c13, c14, c15, c16, c17, c18, c19, c21, c22, c23, c24, c25, c26, c27, c28, c29, cellCapitalsA, cellCapitalsB, competition, demandR1, demandR2, extensiveFarmingCapitalWeights, extensiveFarmingOnCA, extensiveFarmingOnCB, extensiveFarmingProductionWeights, farming, farmingGivingIn, farmingGivingUp, farmingProduction, forestry, forestryCapitalWeights, forestryGivingIn, forestryGivingUp, forestryOnCA, forestryOnCB, forestryProduction, forestryProductionWeights, modelData, persister, r1, r1cells, r2, r2cells, randomNumberCounter, regions, runInfo, w| Constructor and Description |
|---|
RepetitiveCapitalLevelInnovationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCapitalChange(InnovationAgent agent,
double expectedCapital,
Capital capital)
Checks that the agent's productivity for the given service is equals to
the given expected one.
|
protected void |
checkCapitalLevel(InnovationAgent agent,
int ticks,
Capital capital,
double initialCapital) |
void |
setUp() |
void |
tearDown() |
void |
testCsvFactor() |
void |
testInnovationRenewal()
TODO did not uncover a missing call to initialise the renewed innovation
(in adjustRenewedInnovation)!
|
addInnovationAgentsToRegion1, checkCapital, checkCapitalChange, checkInnovationState, registerInstitutionassertAgent, assertEqualMaps, assertEqualMaps, assertUnmanaged, capitals, checkDataType, checkOwnership, checkOwnership, checkSet, checkSet, countAgents, dm, getSingleProductionAgent, initTestEnvironment, print, services, setCapitals, setupBasicWorld, setupBasicWorld, setupPersister, setupPseudoRandomEngine, setupWorldpublic final String INNOVATION_ID_CSV
public final String REPEATING_CSV_INNOVATION_XML_FILE
public final String REPEATING_INNOVATION_CSV_FACTOR_FILE
public final double[] INNOVATION_EFFECT_CSV_FACTORS
protected RepeatingInnovativeInstitution csvInstitution
protected RepeatingCapitalLevelInnovation innovation
public boolean indicator
public RepetitiveCapitalLevelInnovationTest()
public void tearDown()
public void testCsvFactor()
protected void checkCapitalLevel(InnovationAgent agent, int ticks, Capital capital, double initialCapital)
public void checkCapitalChange(InnovationAgent agent, double expectedCapital, Capital capital)
agent - expectedCapital - capital - public void testInnovationRenewal()