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

Public Member Functions

def __init__ (self, args, kwargs)
 
def setUp (self)
 
def tearDown (self)
 
def test_sink_deployment (self)
 
def test_source_deployment (self)
 
def test_xaction_general (self)
 
def test_xaction_specific (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

 agent_ids
 
 agent_impl
 
 depl_time
 
 exit_ids
 
 exit_time
 
 inf
 
 quantities
 
 receiver_ids
 
 resource_ids
 
 sender_ids
 
 sink_id
 
 source_id
 
 trans_resource
 
 trans_time
 
- 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 dynamic capacity restraints involving changes in the number of
source and sink facilities.

A source facility is expected to offer a commodity of amount 1,
and a sink facility is expected to request for a commodity of amount 1.
Therefore, number of facilities correspond to the amounts of offers
and requests.

At time step 1, 3 source facilities and 2 sink facilities are deployed, and
at time step 2, additional 2 sink facilities are deployed. After time
step 2, the older 2 sink facilities are decommissioned.
According to this deployment schedule, at time step 1, only 2 transactions
are expected, the number of sink facilities being the constraint; whereas,
at time step 2, only 3 transactions are expected, the number of source
facilities being the constraint. At time step 3, after decommissioning 2
older sink facilities, the remaining number of sink facilities becomes
the constraint, resulting in the same transaction amount as in time step 1.

Definition at line 246 of file test_regression.py.

Constructor & Destructor Documentation

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

Definition at line 265 of file test_regression.py.

Member Function Documentation

def test_regression.TestDynamicCapacitated.setUp (   self)

Definition at line 269 of file test_regression.py.

def test_regression.TestDynamicCapacitated.tearDown (   self)

Definition at line 291 of file test_regression.py.

def test_regression.TestDynamicCapacitated.test_sink_deployment (   self)
def test_regression.TestDynamicCapacitated.test_source_deployment (   self)
def test_regression.TestDynamicCapacitated.test_xaction_general (   self)
def test_regression.TestDynamicCapacitated.test_xaction_specific (   self)

Member Data Documentation

test_regression.TestDynamicCapacitated.agent_ids
test_regression.TestDynamicCapacitated.agent_impl

Definition at line 274 of file test_regression.py.

test_regression.TestDynamicCapacitated.depl_time
test_regression.TestDynamicCapacitated.exit_ids
test_regression.TestDynamicCapacitated.exit_time
test_regression.TestDynamicCapacitated.inf

Definition at line 267 of file test_regression.py.

test_regression.TestDynamicCapacitated.quantities
test_regression.TestDynamicCapacitated.receiver_ids
test_regression.TestDynamicCapacitated.resource_ids
test_regression.TestDynamicCapacitated.sender_ids
test_regression.TestDynamicCapacitated.sink_id
test_regression.TestDynamicCapacitated.source_id
test_regression.TestDynamicCapacitated.trans_resource
test_regression.TestDynamicCapacitated.trans_time

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