Package net.solarnetwork.node.domain
Interface AcEnergyDataAccessor
- All Superinterfaces:
DataAccessor
API for accessing AC energy data from an object, such as a power meter.
- Since:
- 1.60
- Version:
- 1.2
- Author:
- matt
-
Field Summary
Fields inherited from interface net.solarnetwork.node.domain.DataAccessor
INFO_KEY_DEVICE_MANUFACTURE_DATE, INFO_KEY_DEVICE_MANUFACTURER, INFO_KEY_DEVICE_MODEL, INFO_KEY_DEVICE_NAME, INFO_KEY_DEVICE_SERIAL_NUMBER, INFO_KEY_DEVICE_VERSION -
Method Summary
Modifier and TypeMethodDescriptionaccessorForPhase(net.solarnetwork.domain.AcPhase phase) Get an accessor for phase-specific measurements.Get the active energy delivered (imported), in Wh.Get the active energy received (exported), in Wh.Get the active (real) power, in W.Get the apparent energy delivered (imported), in VAh.Get the apparent energy received (exported), in VAh.Get the apparent power, in VA.Get the current, in A.Get the AC frequency value, in Hz.Get the line voltage, in V.Get the neutral current, in A.Get the power factor, as a decimal from -1.0 to 1.0.Get the reactive energy delivered (imported), in VARh.Get the reactive energy received (exported), in VARh.Get the reactive power, in VAR.Get the voltage, in V.reversed()Get an accessor that reverses the current direction of the data, turning received into delivered and vice versa.Methods inherited from interface net.solarnetwork.node.domain.DataAccessor
deviceInfo, deviceInfoBuilder, getDataTimestamp, getDeviceInfo
-
Method Details
-
accessorForPhase
Get an accessor for phase-specific measurements.- Parameters:
phase- the phase to get an accessor for- Returns:
- the accessor
-
reversed
AcEnergyDataAccessor reversed()Get an accessor that reverses the current direction of the data, turning received into delivered and vice versa.- Returns:
- the accessor
-
getFrequency
Float getFrequency()Get the AC frequency value, in Hz.- Returns:
- the frequency
-
getCurrent
Float getCurrent()Get the current, in A.- Returns:
- the current
-
getNeutralCurrent
Float getNeutralCurrent()Get the neutral current, in A.- Returns:
- the neutral current
- Since:
- 1.2
-
getVoltage
Float getVoltage()Get the voltage, in V.- Returns:
- the voltage
-
getLineVoltage
Float getLineVoltage()Get the line voltage, in V.- Returns:
- the voltage
- Since:
- 1.1
-
getPowerFactor
Float getPowerFactor()Get the power factor, as a decimal from -1.0 to 1.0.- Returns:
- the power factor
-
getActivePower
Integer getActivePower()Get the active (real) power, in W.- Returns:
- the active power
-
getActiveEnergyDelivered
Long getActiveEnergyDelivered()Get the active energy delivered (imported), in Wh.- Returns:
- the delivered active energy
-
getActiveEnergyReceived
Long getActiveEnergyReceived()Get the active energy received (exported), in Wh.- Returns:
- the received active energy
-
getApparentPower
Integer getApparentPower()Get the apparent power, in VA.- Returns:
- the apparent power
-
getApparentEnergyDelivered
Long getApparentEnergyDelivered()Get the apparent energy delivered (imported), in VAh.- Returns:
- the delivered apparent energy
-
getApparentEnergyReceived
Long getApparentEnergyReceived()Get the apparent energy received (exported), in VAh.- Returns:
- the received apparent energy
-
getReactivePower
Integer getReactivePower()Get the reactive power, in VAR.- Returns:
- the reactive power
-
getReactiveEnergyDelivered
Long getReactiveEnergyDelivered()Get the reactive energy delivered (imported), in VARh.- Returns:
- the delivered reactive energy
-
getReactiveEnergyReceived
Long getReactiveEnergyReceived()Get the reactive energy received (exported), in VARh.- Returns:
- the received reactive energy
-