public class InnovationTestUtils extends BasicTestsUtils
| Modifier and Type | Class and Description |
|---|---|
static class |
InnovationTestUtils.CsvProductivityInnovationRepTestComp
Enables setting relative to base during runtime.
|
| Modifier and Type | Field and Description |
|---|---|
InnovationAgent |
innoFarmingA |
InnovationAgent |
innoForesterA |
static SocialVariantPotentialAgent |
innovativeFarming |
static SocialVariantPotentialAgent |
innovativeForestry |
static Set<PotentialAgent> |
potentialAgents |
a1, 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 |
|---|
InnovationTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInnovationAgentsToRegion1(int numberOfAgents,
PotentialAgent pagent) |
void |
checkCapital(Agent agent,
double expectedProductivity,
Service service)
Checks that the agent's productivity for the given service is equals to
the given expected one.
|
void |
checkCapitalChange(Agent agent,
PotentialAgent pagent,
double expectedProductivity,
Service service) |
protected static void |
checkInnovationState(Innovation innovation,
Collection<InnovationAgent> agents,
InnovationState status) |
protected void |
registerInstitution(Institution institution,
Region region)
Register given institution at given region and create
Institutions if not present at region. |
assertAgent, assertEqualMaps, assertEqualMaps, assertUnmanaged, capitals, checkDataType, checkOwnership, checkOwnership, checkSet, checkSet, countAgents, dm, getSingleProductionAgent, initTestEnvironment, print, services, setCapitals, setupBasicWorld, setupBasicWorld, setupPersister, setupPseudoRandomEngine, setupWorldpublic static SocialVariantPotentialAgent innovativeForestry
public static SocialVariantPotentialAgent innovativeFarming
public static Set<PotentialAgent> potentialAgents
public InnovationAgent innoFarmingA
public InnovationAgent innoForesterA
protected static void checkInnovationState(Innovation innovation, Collection<InnovationAgent> agents, InnovationState status)
protected void addInnovationAgentsToRegion1(int numberOfAgents,
PotentialAgent pagent)
protected void registerInstitution(Institution institution, Region region)
Institutions if not present at region.institution - region - public void checkCapital(Agent agent, double expectedProductivity, Service service)
agent - expectedProductivity - service - public void checkCapitalChange(Agent agent, PotentialAgent pagent, double expectedProductivity, Service service)