public class VariableObservation extends Observation
Observation.Field| Modifier | Constructor and Description |
|---|---|
protected |
VariableObservation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
Constructor for VariableObservation.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getVariableName()
Returns the name of the Variable associated with this Observation.
|
double |
getVariableValue()
Returns the value of this VariableObservation as a single double or zero if no value is set.
|
org.json.JSONObject |
toJson()
Creates a JSONObject representation of this Observation.
|
getDataSet, getEntries, getLogicObservation, getNode, toStringprotected VariableObservation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
throws ObservationException
logicObservation - Logic observation associated with this VariableObservationdataSet - DataSet that contains this VariableObservationnode - observed NodeObservationException - entries are empty or not provided or if the logicObservation is not for a variablepublic String getVariableName()
public org.json.JSONObject toJson()
toJson in interface StorabletoJson in class Observationpublic double getVariableValue()
Copyright © 2022. All rights reserved.