public Profile([JetBrains.Annotations.NotNull] string name, [JetBrains.Annotations.NotNull] ReadOnlyCollection <double> values, EnergyOrPower energyOrPower) { EnergyOrPower = energyOrPower; if (EnergyOrPower == EnergyOrPower.Unknown) { throw new Exception("Unknown profile"); } Values = values; Name = name; }
public JsonSerializableProfile([NotNull] string name, [NotNull] ReadOnlyCollection <double> values, EnergyOrPower energyOrPower) { EnergyOrPower = energyOrPower; if (EnergyOrPower == EnergyOrPower.Unknown) { throw new Exception("Unknown profile"); } Values = values; Name = name; }
public ChangableProfile([NotNull] double[] values, [NotNull] string name, EnergyOrPower energyOrPower) { _values = values; Name = name; EnergyOrPower = energyOrPower; }