CYCAMORE
Public Member Functions | Public Attributes | List of all members
test_regression.TestGrowth Class Reference
Inheritance diagram for test_regression.TestGrowth:
test_regression.TestRegression

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
 

Detailed Description

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 363 of file test_regression.py.

Constructor & Destructor Documentation

def test_regression.TestGrowth.__init__ (   self,
  args,
  kwargs 
)

Definition at line 375 of file test_regression.py.

Member Function Documentation

def test_regression.TestGrowth.setUp (   self)

Definition at line 379 of file test_regression.py.

def test_regression.TestGrowth.tearDown (   self)

Definition at line 382 of file test_regression.py.

def test_regression.TestGrowth.test_deployment (   self)

Member Data Documentation

test_regression.TestGrowth.inf

Definition at line 377 of file test_regression.py.


The documentation for this class was generated from the following file: