From a8dd167d487525ab55ada48ed4c9f41e0f2f75a8 Mon Sep 17 00:00:00 2001 From: Viktor Richter Date: Fri, 20 Nov 2015 11:27:26 +0100 Subject: [PATCH 2/2] Add BayesNetworkEvidence proto. This tells the observed state of a BayesNetwork at a specific time or time span. --- proto/sandbox/rst/graph/BayesNetworkEvidence.proto | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 proto/sandbox/rst/graph/BayesNetworkEvidence.proto diff --git a/proto/sandbox/rst/graph/BayesNetworkEvidence.proto b/proto/sandbox/rst/graph/BayesNetworkEvidence.proto new file mode 100755 index 0000000..f61b03e --- /dev/null +++ b/proto/sandbox/rst/graph/BayesNetworkEvidence.proto @@ -0,0 +1,54 @@ +package rst.graph; + +import "rst/timing/Timestamp.proto"; +import "rst/graph/BayesNetwork.proto"; + +option java_outer_classname = "BayesNetworkEvidenceType"; + +/** + * The BayesNetworkEvidence holds a the states of all observed variables of + * a BayesNetwork at one timepoint. The Corresponding network can be attached to. + * + * @author Viktor Richter + */ +message BayesNetworkEvidence { + + /** + * A VariableState is one observation of one BayesVariable. + */ + message VariableState { + + /** + * The name of the observed BayesVariable. + */ + required string variable = 1; + + /** + * The observed state of the BayesVariable. + */ + required string state = 2; + + } + + /** + * The corresponding BayesNetwork. + */ + optional BayesNetwork network = 1; + + /** + * The time of this observation. + */ + optional timing.Timestamp time = 2; + + /** + * Number of microseconds this evidence was observed.. + */ + // @unit(microsecond) + optional uint64 duration_microseconds = 4; + + /** + * A set of observed VariableStates. + */ + repeated VariableState observations = 3; + +} -- 1.9.1