示例#1
0
 internal InstantaneousValues(InstantaneousActivePower insActivePower, InstantaneousReactivePower insReactivePower, Phase voltage, Phase amperage, Phase powerFactor, double frequency)
 {
     this.InsActivePower   = insActivePower;
     this.InsReactivePower = insReactivePower;
     this.Voltage          = voltage;
     this.Amperage         = amperage;
     this.PowerFactor      = powerFactor;
     this.Frequency        = frequency;
 }
示例#2
0
        public InstantaneousValues(bool stub = false)
        {
            if (stub)
            {
                InsActivePower = new InstantaneousActivePower();
                InsActivePower.InsPowerPhase    = Phase.Stub(100, 120);
                InsActivePower.TotalPowerPhases = InsActivePower.InsPowerPhase.Sum();

                InsReactivePower = new InstantaneousReactivePower();
                InsReactivePower.InsPowerPhase    = Phase.Stub(25, 48);
                InsReactivePower.TotalPowerPhases = InsActivePower.InsPowerPhase.Sum();

                Voltage     = Phase.Stub(190, 240);
                Amperage    = Phase.Stub(10, 50);
                PowerFactor = Phase.Stub(0, 1);
                Frequency   = StubUtil.Double(48, 52);
            }
        }