static void RestartGenerator(Generator gen, ElectricParameters ep) { //gen = new Generator(new ElectricParameters(0, 3)); //ep = new ElectricParameters(0, 3); gen.OutputVoltage = 10; gen.OutputCurrent = 0; ep.Voltage = 3; ep.Current = 3; }
public static void StopGenerator(ref Generator gen, ref ElectricParameters ep) { //gen = new Generator(0, 0); //ep = new ElectricParameters(0, 0); gen.OutputVoltage = 0; gen.OutputCurrent = 0; ep.Voltage = 3; ep.Current = 3; }
public static void MaxOutGenerator(out Generator gen, out ElectricParameters ep) { gen = new Generator(double.MaxValue, double.MaxValue); ep = new ElectricParameters(double.MaxValue, double.MaxValue); }
public Generator(ElectricParameters ep) : this(ep.Voltage, ep.Current) { }