calculateYearlyDemand () {
    this.collectedSupply = 0

    this.yearDemand = this.demandedAmount()
    this.wholeDemand = this.yearDemand * 2

    this.constantFunction = createLine(
      0, this.constantPrice, this.yearDemand, this.constantPrice
    )
    this.decreasingFunction = createLine(
      this.yearDemand, this.constantPrice, this.wholeDemand, 0
    )
  }
/**
   * Sets the yearly demand based on demanded amount and initializes helper values
   */
Sets the yearly demand based on demanded amount and initializes helper values
Sets the yearly demand based on demanded amount and initializes helper values
calculateYearlyDemand () {
    this.collectedSupply = 0
    this.yearDemand = this.demandedAmount()
    this.wholeDemand = this.yearDemand * 2
    this.constantFunction = createLine(
      0, this.constantPrice, this.yearDemand, this.constantPrice
    )
    this.decreasingFunction = createLine(
      this.yearDemand, this.constantPrice, this.wholeDemand, 0
    )
  }
calculateYearlyDemand ( ) { this . collectedSupply = 0 this . yearDemand = this . demandedAmount ( ) this . wholeDemand = this . yearDemand * 2 this . constantFunction = createLine ( 0 , this . constantPrice , this . yearDemand , this . constantPrice ) this . decreasingFunction = createLine ( this . yearDemand , this . constantPrice , this . wholeDemand , 0 ) }
Sets the yearly demand based on demanded amount and initializes helper values
Sets the yearly demand based on demanded amount and initializes helper values