package org.sidoh.reactor_simulator.simulator;

import java.io.Serializable;

public class ReactorResult implements Serializable {
  public double efficiency;
  public double output;
  public int numRods;
  public float fuelFertility;
  public float coolantTemperature;
  public float fuelHeat;
  public float reactorHeat;
  public ReactorDefinition reactorDefinition;

  public ReactorResult(double efficiency, double output, int numRods, float fuelFertility, float coolantTemperature, float fuelHeat, float reactorHeat) {
    this.efficiency = efficiency;
    this.output = output;
    this.numRods = numRods;
    this.fuelFertility = fuelFertility;
    this.coolantTemperature = coolantTemperature;
    this.fuelHeat = fuelHeat;
    this.reactorHeat = reactorHeat;
  }

  public ReactorResult() {
  }

  public ReactorResult setReactorDefinition(ReactorDefinition reactorDefinition) {
    this.reactorDefinition = reactorDefinition;
    return this;
  }

  public ReactorResult setEfficiency(double efficiency) {
    this.efficiency = efficiency;
    return this;
  }

  public ReactorResult setOutput(double output) {
    this.output = output;
    return this;
  }

  public ReactorResult setNumRods(int numRods) {
    this.numRods = numRods;
    return this;
  }

  public ReactorResult setFuelFertility(float fuelFertility) {
    this.fuelFertility = fuelFertility;
    return this;
  }

  public ReactorResult setCoolantTemperature(float coolantTemperature) {
    this.coolantTemperature = coolantTemperature;
    return this;
  }

  public ReactorResult setFuelHeat(float fuelHeat) {
    this.fuelHeat = fuelHeat;
    return this;
  }

  public ReactorResult setReactorHeat(float reactorHeat) {
    this.reactorHeat = reactorHeat;
    return this;
  }

  @Override
  public String toString() {
    return "ReactorResult{" +
        "efficiency=" + efficiency +
        ", output=" + output +
        ", numRods=" + numRods +
        ", fuelFertility=" + fuelFertility +
        ", coolantTemperature=" + coolantTemperature +
        ", fuelHeat=" + fuelHeat +
        ", reactorHeat=" + reactorHeat +
        '}';
  }
}

@@ -180,30 +180,8 @@
 ut;%0A
-  public int numRods;%0A
   pu
@@ -206,16 +206,16 @@
 tility;%0A
+
   public
@@ -401,21 +401,8 @@
 put,
- int numRods,
  flo
@@ -546,36 +546,8 @@
 ut;%0A
-    this.numRods = numRods;%0A
     
@@ -1104,107 +1104,8 @@
  %7D%0A%0A
-  public ReactorResult setNumRods(int numRods) %7B%0A    this.numRods = numRods;%0A    return this;%0A  %7D%0A%0A
   pu
@@ -1696,24 +1696,24 @@
 fficiency +%0A
+
         %22, o
@@ -1735,41 +1735,8 @@
 t +%0A
-        %22, numRods=%22 + numRods +%0A
     

remove numRods reference