Class SoftSensorExporter.SoftSensorDefinition
java.lang.Object
neqsim.process.mpc.SoftSensorExporter.SoftSensorDefinition
- All Implemented Interfaces:
Serializable
- Enclosing class:
SoftSensorExporter
Definition of a soft-sensor.
- Since:
- 3.0
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoftSensorDefinition(String name, SoftSensorExporter.SensorType sensorType) Construct a soft-sensor definition. -
Method Summary
Modifier and TypeMethodDescriptionAdd an input to this sensor.addParameter(String paramName, double value) Add a parameter to this sensor.Get the component name (for composition sensors).Get the description.Get the equipment name.Get the inputs.getName()Get the sensor name.Get the output unit.Get the parameters.Get the sensor type.doubleGet the update rate in seconds.voidsetComponentName(String componentName) Set the component name.setDescription(String description) Set the description.voidsetEquipmentName(String equipmentName) Set the equipment name.voidsetOutputUnit(String outputUnit) Set the output unit.setUpdateRateSeconds(double seconds) Set the update rate.Convert to map for JSON export.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
sensorType
-
equipmentName
-
componentName
-
outputUnit
-
description
-
updateRateSeconds
private double updateRateSeconds -
inputs
-
parameters
-
-
Constructor Details
-
SoftSensorDefinition
Construct a soft-sensor definition.- Parameters:
name- the sensor namesensorType- the sensor type
-
-
Method Details
-
getName
-
getSensorType
-
getEquipmentName
-
setEquipmentName
Set the equipment name.- Parameters:
equipmentName- the equipment name
-
getComponentName
Get the component name (for composition sensors).- Returns:
- the component name
-
setComponentName
Set the component name.- Parameters:
componentName- the component name
-
getOutputUnit
-
setOutputUnit
Set the output unit.- Parameters:
outputUnit- the output unit
-
getDescription
-
setDescription
Set the description.- Parameters:
description- the description- Returns:
- this definition for method chaining
-
getUpdateRateSeconds
public double getUpdateRateSeconds()Get the update rate in seconds.- Returns:
- the update rate
-
setUpdateRateSeconds
Set the update rate.- Parameters:
seconds- update rate in seconds- Returns:
- this definition for method chaining
-
addInput
Add an input to this sensor.- Parameters:
inputName- the input nameunit- the input unit- Returns:
- this definition for method chaining
-
getInputs
-
addParameter
Add a parameter to this sensor.- Parameters:
paramName- the parameter namevalue- the parameter value- Returns:
- this definition for method chaining
-
getParameters
-
toMap
-