CYCAMORE
|
Public Member Functions | |
def | __init__ (self, args, kwargs) |
def | setUp (self) |
def | tearDown (self) |
def | test_deployment (self) |
Public Member Functions inherited from test_regression.TestRegression | |
def | __init__ (self, args, kwargs) |
def | find_ids (self, spec, a, spec_col="Spec", id_col="AgentId") |
def | setUp (self) |
def | tearDown (self) |
def | to_ary (self, a, k) |
Public Attributes | |
inf | |
Public Attributes inherited from test_regression.TestRegression | |
agent_entry | |
agent_exit | |
compositions | |
conn | |
cur | |
enrichments | |
ext | |
inf | |
info | |
outf | |
resources | |
rsrc_qtys | |
transactions | |
Tests GrowthRegion, ManagerInst, and Source over a 4-time step simulation. A linear growth demand (y = x + 2) is provided to the growth region. Two Sources are allowed in the ManagerInst, with capacities of 2 and 1.1, respectively. At t=1, a 2-capacity Source is expected to be built, and at t=2 and t=3, 1-capacity Sources are expected to be built. A linear growth demand (y = 0x + 3) for a second commodity is provided at t=2 to test the demand for multiple commodities.
Definition at line 382 of file test_regression.py.
def test_regression.TestGrowth.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
Definition at line 394 of file test_regression.py.
def test_regression.TestGrowth.setUp | ( | self | ) |
Definition at line 400 of file test_regression.py.
def test_regression.TestGrowth.tearDown | ( | self | ) |
Definition at line 403 of file test_regression.py.
def test_regression.TestGrowth.test_deployment | ( | self | ) |
Definition at line 406 of file test_regression.py.
References test_regression.TestRegression.agent_entry, test_regression.TestRegression.find_ids(), and test_regression.TestRegression.to_ary().
test_regression.TestGrowth.inf |
Definition at line 396 of file test_regression.py.