Package net.solarnetwork.domain.datum
Interface AcEnergyDatum
- All Superinterfaces:
Datum,EnergyDatum
- All Known Subinterfaces:
AcDcEnergyDatum
Standardized API for alternating current related energy datum to implement.
This API represents a single phase, either a direct phase measurement or an average or total measurement.
- Version:
- 2.0
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn instantaneous sample key forgetApparentPower()values.static final StringAn instantaneous sample key forgetCurrent()values.static final StringAn instantaneous sample key forgetEffectivePowerFactor()values.static final StringAn instantaneous sample key forgetFrequency()values.static final StringAn instantaneous sample key forgetLineVoltage()values.static final StringAn instantaneous sample key forgetNeutralCurrent()values.static final StringAn status sample key forgetAcPhase()values.static final StringAn instantaneous sample key forgetPhaseVoltage()values.static final StringAn instantaneous sample key forgetPowerFactor()values.static final StringAn instantaneous sample key forgetReactivePower()values.static final StringAn instantaneous sample key forgetRealPower()values.static final StringAn instantaneous sample key forgetVoltage()values.Fields inherited from interface net.solarnetwork.domain.datum.Datum
DATUM_TYPE_PROPERTY, DATUM_TYPES_PROPERTY, OP_STATE, OP_STATES, REVERSE_ACCUMULATING_SUFFIX_KEY, SOURCE_ID, TIMESTAMPFields inherited from interface net.solarnetwork.domain.datum.EnergyDatum
TAG_CONSUMPTION, TAG_GENERATION, WATT_HOUR_READING_KEY, WATTS_KEY -
Method Summary
Modifier and TypeMethodDescriptiondefault AcPhaseGet the phase measured by this datum.default IntegerGet the instantaneous apparent power, in volt-amperes (VA).default FloatGet the instantaneous current, in amps.default FloatgetCurrent(AcPhase phase) Get the instantaneous current, in amps, for a specific phase.default FloatGet the effective instantaneous power factor, as a value between-1and1.default FloatGet the instantaneous frequency, in hertz (Hz).default FloatGet the instantaneous phase-to-phase line voltage.default FloatgetLineVoltage(AcPhase phase) Get the instantaneous phase-to-phase line voltage for a specific phase.default FloatGet the instantaneous neutral current, in amps.default FloatGet the instantaneous phase-to-neutral line voltage.default FloatGet the instantaneous power factor.default IntegerGet the instantaneous reactive power, in reactive volt-amperes (var).default IntegerGet the instantaneous real power, in watts (W).default FloatGet the instantaneous neutral voltage.default FloatgetVoltage(AcPhase phase) Get the instantaneous phase-to-neutral line voltage for a specific phase.Methods inherited from interface net.solarnetwork.domain.datum.Datum
asSampleOperations, asSimpleMap, copyWithId, copyWithSamples, getKind, getObjectId, getSampleData, getSourceId, getTimestampMethods inherited from interface net.solarnetwork.domain.datum.EnergyDatum
getReverseWattHourReading, getWattHourReading, getWatts, isConsumption, isGeneration
-
Field Details
-
PHASE_KEY
An status sample key forgetAcPhase()values.- See Also:
-
REAL_POWER_KEY
An instantaneous sample key forgetRealPower()values.- See Also:
-
APPARENT_POWER_KEY
An instantaneous sample key forgetApparentPower()values.- See Also:
-
REACTIVE_POWER_KEY
An instantaneous sample key forgetReactivePower()values.- See Also:
-
POWER_FACTOR_KEY
An instantaneous sample key forgetPowerFactor()values.- See Also:
-
EFFECTIVE_POWER_FACTOR_KEY
An instantaneous sample key forgetEffectivePowerFactor()values.- See Also:
-
FREQUENCY_KEY
An instantaneous sample key forgetFrequency()values.- See Also:
-
VOLTAGE_KEY
An instantaneous sample key forgetVoltage()values.- See Also:
-
CURRENT_KEY
An instantaneous sample key forgetCurrent()values.- See Also:
-
PHASE_VOLTAGE_KEY
An instantaneous sample key forgetPhaseVoltage()values.- See Also:
-
LINE_VOLTAGE_KEY
An instantaneous sample key forgetLineVoltage()values.- See Also:
-
NEUTRAL_CURRENT_KEY
An instantaneous sample key forgetNeutralCurrent()values.- See Also:
-
-
Method Details
-
getAcPhase
Get the phase measured by this datum.- Returns:
- the phase, if known
-
getRealPower
Get the instantaneous real power, in watts (W).This should return the same value as
EnergyDatum.getWatts()but has this method to be explicit.- Returns:
- the real power in watts, or null if not available
-
getApparentPower
Get the instantaneous apparent power, in volt-amperes (VA).- Returns:
- the apparent power in volt-amperes, or null if not available
-
getReactivePower
Get the instantaneous reactive power, in reactive volt-amperes (var).- Returns:
- the reactive power in reactive volt-amperes, or null if not available
-
getEffectivePowerFactor
Get the effective instantaneous power factor, as a value between-1and1. If the phase angle is positive (current leads voltage) this method returns a positive value. If the phase angle is negative (current lags voltage) this method returns a negative value.- Returns:
- the effective power factor
-
getFrequency
Get the instantaneous frequency, in hertz (Hz).- Returns:
- the frequency, or null if not known
-
getVoltage
Get the instantaneous neutral voltage.- Returns:
- the volts, or null if not known
-
getVoltage
Get the instantaneous phase-to-neutral line voltage for a specific phase.- Parameters:
phase- the phase- Returns:
- the volts, or null if not known
-
getCurrent
Get the instantaneous current, in amps.This method is equivalent to calling
datum.getCurrent(datum.getPhase()).- Returns:
- the amps, or null if not known
-
getCurrent
Get the instantaneous current, in amps, for a specific phase.- Parameters:
phase- the phase- Returns:
- the phase
-
getNeutralCurrent
Get the instantaneous neutral current, in amps.- Returns:
- the amps, or null if not known
-
getPhaseVoltage
Get the instantaneous phase-to-neutral line voltage.This metnod is equivalent to calling
datum.getPhaseVoltage(datum.getPhase()).- Returns:
- the volts, or null if not known
-
getLineVoltage
Get the instantaneous phase-to-phase line voltage.For the
getAcPhase(), this value represents the difference between this phase and the next phase, in a, b, c order, withPhaseCwrapping around back toPhaseA. Thus the possible values represent:PhaseA- Vab
PhaseB- Vbc
PhaseC- Vca
This metnod is equivalent to calling
datum.getLineVoltage(datum.getPhase()).- Returns:
- the line voltage
- See Also:
-
getLineVoltage
Get the instantaneous phase-to-phase line voltage for a specific phase.- Parameters:
phase- the phase (first)- Returns:
- the line voltage
-
getPowerFactor
Get the instantaneous power factor.- Returns:
- the power factor, or null if not known
-