예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
 public static void MaxOutGenerator(out Generator gen, out ElectricParameters ep)
 {
     gen = new Generator(double.MaxValue, double.MaxValue);
     ep  = new ElectricParameters(double.MaxValue, double.MaxValue);
 }
예제 #4
0
        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;
        }
예제 #5
0
        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;
        }
예제 #6
0
 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)
 {
 }
 public Generator(ElectricParameters ep)
     : this(ep.Voltage, ep.Current)
 {
 }