AP&C API Reference
|
Adds the ability for a hard value override to the AmpsToKilowatts formula. This would be useful for demonstration purposes only. More...
Protected Member Functions | |
DemoAmpsToKilowattsFormula (SerializationInfo info, StreamingContext context) | |
override decimal | OnProcessMeasurement (Apac.Monitoring.Measurement measurement, decimal resolution, Apac.Settings.Configuration config) |
Called when the formula should process the incoming measurement (readings). More... | |
![]() | |
AmpsToKilowattsFormula (SerializationInfo info, StreamingContext context) | |
override decimal | OnProcessMeasurement (Measurement measurement, decimal resolution, Apac.Settings.Configuration config) |
This routine converts the raw amperage reading into kW based on the range of the sensor being used. A smaller range at the same resolution (number of bits possible in the raw measurement) will result in more precision (finer grained measurements). More... | |
![]() | |
MeasurementFormula (Monitoring.MeasurementUnit units) | |
Initializes a new instance of the MeasurementFormula<T> class. More... | |
MeasurementFormula (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the MeasurementFormula<T> class. More... | |
Additional Inherited Members | |
![]() | |
decimal | ProcessMeasurement (Apac.Monitoring.Measurement measurement, decimal resolution, Apac.Settings.Configuration config) |
Processes the measurement. More... | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
![]() | |
decimal | ProcessMeasurement (Monitoring.Measurement measurement, decimal resolution, Apac.Settings.Configuration config) |
Should process the measurement at the given resolution and return a value according to the encoded formula. More... | |
![]() | |
Apac.Monitoring.MeasurementUnit | Units [get] |
Gets the units. More... | |
![]() | |
virtual log4net.ILog | Log [get] |
Gets the log. It lazy loads as necessary. More... | |
Guid | Id [get] |
Gets the id of the formula from the subclass's PluginAttribute. More... | |
string | Name [get] |
Gets the name of the formula from the subclass's PluginAttribute. More... | |
string | Description [get] |
Gets the description from the subclass's PluginAttribute. More... | |
string | Instructions [get] |
Gets the instructions from the subclass's PluginAttribute. More... | |
U | Descriptor [get] |
Gets the descriptor so it can be serialized to remote clients.. More... | |
T | Attribute [get] |
Gets the attribute, lazy loads it as necessary. More... | |
![]() | |
Apac.Monitoring.MeasurementUnit | Units [get] |
Indicates the units to be applied to the result of ProcessMeasurement. More... | |
Configuration.FormulaDescriptor | Descriptor [get] |
Presents the metadata about this formula for use during configuration and troubleshooting scenarios. More... | |
Adds the ability for a hard value override to the AmpsToKilowatts formula. This would be useful for demonstration purposes only.
|
inlineprotectedvirtual |
Called when the formula should process the incoming measurement (readings).
measurement | The measurement. |
resolution | The resolution. |
config | The config. |
Implements Apac.Data.MeasurementFormula.