Пример #1
0
    def execute(self):
        if self.override_constructionTime == -1:
            self.constructionTime = _landbos.defaultConstructionTime(self.nTurbines)
        else:
            self.constructionTime = self.override_constructionTime

        if self.override_accessRoadEntrances == -1:
            self.accessRoadEntrances = _landbos.defaultAccessRoadEntrances(self.nTurbines)
        else:
            self.accessRoadEntrances = self.override_accessRoadEntrances

        if self.override_weatherDelayDays == -1:
            self.weatherDelayDays = _landbos.defaultWeatherDelayDays(self.nTurbines)
        else:
            self.weatherDelayDays = self.override_weatherDelayDays

        if self.override_craneBreakdowns == -1:
            self.craneBreakdowns = _landbos.defaultCraneBreakdowns(self.nTurbines)
        else:
            self.craneBreakdowns = self.override_craneBreakdowns

        if self.override_buildingSize == -1:
            self.buildingSize = _landbos.defaultBuildingSize(self.farmSize)
        else:
            self.buildingSize = self.override_buildingSize

        if self.override_permanentMetTowers == -1:
            self.permanentMetTowers = _landbos.defaultPermanentMetTowers(self.farmSize)
        else:
            self.permanentMetTowers = self.override_permanentMetTowers

        if self.override_tempMetTowers == -1:
            self.tempMetTowers = _landbos.defaultTempMetTowers(self.farmSize)
        else:
            self.tempMetTowers = self.override_tempMetTowers
Пример #2
0
    def execute(self):
        if self.override_constructionTime == -1:
            self.constructionTime = _landbos.defaultConstructionTime(
                self.nTurbines)
        else:
            self.constructionTime = self.override_constructionTime

        if self.override_accessRoadEntrances == -1:
            self.accessRoadEntrances = _landbos.defaultAccessRoadEntrances(
                self.nTurbines)
        else:
            self.accessRoadEntrances = self.override_accessRoadEntrances

        if self.override_weatherDelayDays == -1:
            self.weatherDelayDays = _landbos.defaultWeatherDelayDays(
                self.nTurbines)
        else:
            self.weatherDelayDays = self.override_weatherDelayDays

        if self.override_craneBreakdowns == -1:
            self.craneBreakdowns = _landbos.defaultCraneBreakdowns(
                self.nTurbines)
        else:
            self.craneBreakdowns = self.override_craneBreakdowns

        if self.override_buildingSize == -1:
            self.buildingSize = _landbos.defaultBuildingSize(self.farmSize)
        else:
            self.buildingSize = self.override_buildingSize

        if self.override_permanentMetTowers == -1:
            self.permanentMetTowers = _landbos.defaultPermanentMetTowers(
                self.farmSize)
        else:
            self.permanentMetTowers = self.override_permanentMetTowers

        if self.override_tempMetTowers == -1:
            self.tempMetTowers = _landbos.defaultTempMetTowers(self.farmSize)
        else:
            self.tempMetTowers = self.override_tempMetTowers
Пример #3
0
    def setUp(self):

        self.rating = 2000.0
        self.diameter = 110.0
        self.hubHeight = 100.0
        self.nTurbines = 100
        self.voltage = 137.0
        self.distToInterconnect = 5.0
        self.TCC = 1000.0
        self.towerTopMass = 88.0
        self.terrain = 0   # FLAT_TO_ROLLING
        self.layout = 1  # COMPLEX
        self.soil = 0  # STANDARD

        self.farmSize = _landbos.farmSize(self.rating, self.nTurbines)

        self.constructionTime = _landbos.defaultConstructionTime(self.nTurbines)
        self.accessRoadEntrances = _landbos.defaultAccessRoadEntrances(self.nTurbines)
        self.buildingSize = _landbos.defaultBuildingSize(self.farmSize)
        self.tempMetTowers = _landbos.defaultTempMetTowers(self.farmSize)
        self.permanentMetTowers = _landbos.defaultPermanentMetTowers(self.farmSize)
        self.weatherDelayDays = _landbos.defaultWeatherDelayDays(self.nTurbines)
        self.craneBreakdowns = _landbos.defaultCraneBreakdowns(self.nTurbines)