public class Observation extends Object implements Storable
| Modifier and Type | Class and Description |
|---|---|
static class |
Observation.Field
This is set of fields for input/output to XML and JSON format
|
| Modifier | Constructor and Description |
|---|---|
protected |
Observation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
Constructor for the observation.
|
| Modifier and Type | Method and Description |
|---|---|
DataSet |
getDataSet()
Returns DataSet that contains this Observation.
|
Map<Object,Double> |
getEntries()
Returns a map of observation entries.
|
uk.co.agena.minerva.model.scenario.Observation |
getLogicObservation()
Getter for the logic observation associated with this Observation.
|
Node |
getNode()
Returns the observed Node.
|
org.json.JSONObject |
toJson()
Creates a JSONObject representation of this Observation.
|
String |
toString()
Returns a JSON String representing this Observation.
|
protected Observation(uk.co.agena.minerva.model.scenario.Observation logicObservation,
DataSet dataSet,
Node node)
throws ObservationException
logicObservation - Logic observation associated with this ObservationdataSet - DataSet that contains this Observationnode - observed NodeObservationException - entries are empty or not providedpublic Map<Object,Double> getEntries()
public DataSet getDataSet()
public Node getNode()
public uk.co.agena.minerva.model.scenario.Observation getLogicObservation()
public String toString()
Copyright © 2022. All rights reserved.