Exemplo n.º 1
0
def pv_test66(area_test66):
    p = PVPredefinedStrategy(
        cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE)
    p.area = area_test66
    p.owner = area_test66
    p.offers.posted = {}
    return p
def pv_test4(area_test3, called):
    p = PVPredefinedStrategy(cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE)
    p.area = area_test3
    p.owner = area_test3
    p.offers.posted = {
        Offer(id='id', price=20, energy=1, seller='FakeArea'): area_test3.test_market.id
    }
    return p
Exemplo n.º 3
0
def pv_test3(area_test3):
    p = PVPredefinedStrategy(
        cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE)
    p.area = area_test3
    p.owner = area_test3
    p.offers.posted = {
        Offer('id', 30, 1, 'FakeArea'): area_test3.test_market.id
    }
    return p
Exemplo n.º 4
0
def pv_test_cloudy(area_test7):
    p = PVPredefinedStrategy(cloud_coverage=1)
    p.area = area_test7
    p.owner = area_test7
    return p
Exemplo n.º 5
0
def pv_test_partial(area_test7):
    p = PVPredefinedStrategy(cloud_coverage=2)
    p.area = area_test7
    p.owner = area_test7
    return p
Exemplo n.º 6
0
def pv_test_sunny(area_test3):
    p = PVPredefinedStrategy(cloud_coverage=0)
    p.area = area_test3
    p.owner = area_test3
    return p
Exemplo n.º 7
0
def pv_test5(area_test3, called):
    p = PVPredefinedStrategy(cloud_coverage=0)
    p.area = area_test3
    p.owner = area_test3
    p.offers.posted = {'id': area_test3.test_market}
    return p
Exemplo n.º 8
0
def pv_test1(area_test1):
    p = PVPredefinedStrategy(cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE)
    p.area = area_test1
    p.owner = area_test1
    return p
Exemplo n.º 9
0
def pv_test_cloudy(area_test7):
    p = PVPredefinedStrategy(cloud_coverage=1)
    p.area = area_test7
    p.owner = area_test7
    p.area.config.slot_length = duration(minutes=20)
    return p