Interface EnergyStorageDatum
- All Superinterfaces:
Cloneable,net.solarnetwork.domain.datum.Datum,net.solarnetwork.domain.datum.EnergyStorageDatum,net.solarnetwork.domain.datum.MutableDatum,MutableNodeDatum,NodeDatum
- All Known Implementing Classes:
SimpleEnergyStorageDatum
public interface EnergyStorageDatum
extends net.solarnetwork.domain.datum.EnergyStorageDatum, MutableNodeDatum
Standardized API for energy storage system related datum to implement.
- Version:
- 1.1
- Author:
- matt
-
Field Summary
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.EnergyStorageDatum
AVAILABLE_WATT_HOURS_KEY, CAPACITY_WATT_HOURS_KEY, PERCENTAGE_KEY, STATE_OF_CHARGE_PERCENTAGE_KEY, STATE_OF_HEALTH_PERCENTAGE_KEYFields inherited from interface net.solarnetwork.node.domain.datum.NodeDatum
TIMESTAMP_UPLOAD -
Method Summary
Modifier and TypeMethodDescriptiondefault voidgetEnergyCapacity(Long value) Set the energy capacity of the storage system, in Wh.default voidgetStateOfHealthPercentage(Float value) Set a percentage of storage "health" in terms of practical total capacity right now versus theoretical total capacity when the storage was manufactured.default voidsetAvailableEnergy(Long value) Get the available energy of the storage system, in Wh.default voidSet the percentage of energy capacity available in the storage.Methods inherited from interface net.solarnetwork.domain.datum.Datum
asSampleOperations, asSimpleMap, getKind, getObjectId, getSampleData, getSourceId, getTimestampMethods inherited from interface net.solarnetwork.domain.datum.EnergyStorageDatum
getAvailableEnergy, getAvailableEnergyPercentage, getEnergyCapacity, getStateOfHealthPercentageMethods inherited from interface net.solarnetwork.domain.datum.MutableDatum
asMutableSampleOperationsMethods inherited from interface net.solarnetwork.node.domain.datum.MutableNodeDatum
cloneMethods inherited from interface net.solarnetwork.node.domain.datum.NodeDatum
copyWithId, copyWithSamples, getUploaded
-
Method Details
-
setAvailableEnergyPercentage
Set the percentage of energy capacity available in the storage.- Parameters:
value- the available energy as a percentage of the total capacity of the storage
-
getStateOfHealthPercentage
Set a percentage of storage "health" in terms of practical total capacity right now versus theoretical total capacity when the storage was manufactured.- Parameters:
value- the total energy capacity now as a percentage of the theoretical total capacity of the storage when manufactured- Since:
- 1.1
-
setAvailableEnergy
Get the available energy of the storage system, in Wh.- Parameters:
value- the available energy of the storage
-
getEnergyCapacity
Set the energy capacity of the storage system, in Wh.- Parameters:
value- the energy capacity of the storage- Since:
- 2.1
-