1#include "storm-config.h"
37 matrixBuilder.newRowGroup(0);
38 matrixBuilder.addNextValue(0, 0, 1.0);
39 matrixBuilder.addNextValue(1, 0, 1.0);
42 stateLabeling.addLabel(
"init");
43 stateLabeling.addLabelToState(
"init", 0);
46 components.observabilityClasses = std::vector<uint32_t>{0};
47 if (withChoiceLabels) {
49 choiceLabeling.addLabel(
"first");
50 choiceLabeling.addLabelToChoice(
"first", 0);
51 choiceLabeling.addLabel(
"second");
52 choiceLabeling.addLabelToChoice(
"second", 1);
53 components.choiceLabeling = std::move(choiceLabeling);
63 matrixBuilder.newRowGroup(0);
64 matrixBuilder.addNextValue(0, 0, 1.0);
67 stateLabeling.addLabel(
"init");
68 stateLabeling.addLabelToState(
"init", 0);
70 auto manager = std::make_shared<storm::expressions::ExpressionManager>();
71 auto const enabled =
manager->declareBooleanVariable(
"enabled");
72 auto const mode =
manager->declareIntegerVariable(
"mode");
74 if (reverseObservableOrder) {
75 valuationBuilder.addIntegerVariable(mode, 0, 1);
76 valuationBuilder.addBooleanVariable(enabled);
78 valuationBuilder.addBooleanVariable(enabled);
79 valuationBuilder.addIntegerVariable(mode, 0, 1);
82 observationValuations.getStorage().resize(1);
83 observationValuations.getStorage().writeValue(0, enabled,
true);
84 observationValuations.getStorage().writeValue(0, mode, int64_t{1});
87 components.observabilityClasses = std::vector<uint32_t>{0};
88 components.observationValuations = std::move(observationValuations);
94 matrixBuilder.newRowGroup(0);
95 matrixBuilder.addNextValue(0, 1, 1.0);
96 matrixBuilder.newRowGroup(1);
97 matrixBuilder.addNextValue(1, 2, 1.0);
98 matrixBuilder.addNextValue(2, 2, 1.0);
99 matrixBuilder.newRowGroup(3);
100 matrixBuilder.addNextValue(3, 2, 1.0);
103 stateLabeling.addLabel(
"init");
104 stateLabeling.addLabelToState(
"init", truncatedInitialState ? 1 : 0);
105 stateLabeling.addLabel(
"truncated");
106 stateLabeling.addLabelToState(
"truncated", 1);
109 choiceLabeling.addLabel(
"__sched_1");
110 choiceLabeling.addLabelToChoice(
"__sched_1", 1);
111 choiceLabeling.addLabel(
"__sched_0");
112 choiceLabeling.addLabelToChoice(
"__sched_0", 2);
115 components.choiceLabeling = std::move(choiceLabeling);
121 matrixBuilder.newRowGroup(0);
122 matrixBuilder.addNextValue(0, 0, 1.0);
123 matrixBuilder.addNextValue(1, 0, 1.0);
126 stateLabeling.addLabel(
"init");
127 stateLabeling.addLabelToState(
"init", 0);
128 stateLabeling.addLabel(
"truncated");
131 choiceLabeling.addLabel(
"first");
132 choiceLabeling.addLabelToChoice(
"first", 0);
135 components.choiceLabeling = std::move(choiceLabeling);
141TEST(ObservationBasedFiniteStateController, DeterminismTracksReplacedOutputs) {
154TEST(ObservationBasedFiniteStateController, FormatsPartialSignatureMaps) {
156 observationSignature.
values.emplace(
"known-observable", std::string{
"known-value"});
157 std::optional observationSignatures{std::unordered_map<uint64_t, storm::pomdp::policy::ObservationSignature>{{0, observationSignature}}};
158 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"known-action"}}}}};
166 auto const description = fsc.
toString();
167 EXPECT_NE(description.find(
"(0)[known-observable=known-value]"), std::string::npos);
168 EXPECT_NE(description.find(
"1 ->"), std::string::npos);
169 EXPECT_NE(description.find(
"(1) :"), std::string::npos);
171 std::stringstream jsonOutput;
174 auto const& observable = json.at(
"nodes").at(0).at(
"transitions").at(0).at(
"observation").at(
"signature").at(0);
175 EXPECT_EQ(observable.at(
"name").get<std::string>(),
"known-observable");
176 EXPECT_EQ(observable.at(
"type").get<std::string>(),
"string");
177 EXPECT_EQ(observable.at(
"value").get<std::string>(),
"known-value");
180TEST(ObservationBasedFiniteStateController, EscapesSignaturesAndActionNamesInDotOutput) {
182 observationSignature.
values.emplace(
"observation", std::string{
"value\"\\\n"});
183 std::optional observationSignatures{std::unordered_map<uint64_t, storm::pomdp::policy::ObservationSignature>{{0, observationSignature}}};
184 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"action\"\\\n"}}}}};
188 std::stringstream dotOutput;
191 auto const dot = dotOutput.str();
192 EXPECT_NE(dot.find(
"observation=value\\\"\\\\\\n"), std::string::npos);
193 EXPECT_NE(dot.find(
"action\\\"\\\\\\n"), std::string::npos);
196TEST(ApplyObservationBasedFiniteStateController, RejectsMultipleInitialStates) {
218TEST(ApplyObservationBasedFiniteStateController, RejectsNoncanonicActionOrdering) {
244 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"a"}, {1,
"b"}}}}};
249 for (
bool dontCare : {
false,
true}) {
250 SCOPED_TRACE(dontCare);
256 ASSERT_TRUE(canonicPomdp->isCanonic());
258 ASSERT_EQ(inducedDtmc.getNumberOfStates(), 2);
259 ASSERT_EQ(inducedDtmc.getNumberOfTransitions(), 2);
260 for (uint64_t state : {0ul, 1ul}) {
261 auto row = inducedDtmc.getTransitionMatrix().getRow(state);
262 ASSERT_EQ(row.getNumberOfEntries(), 1);
263 EXPECT_EQ(row.begin()->getColumn(), 1);
264 EXPECT_DOUBLE_EQ(row.begin()->getValue(), 1.0);
268TEST(ApplyObservationBasedFiniteStateController, PreservesRewardsForRandomisedActions) {
269 auto pomdp = buildSingleStatePomdp(
true);
278 ASSERT_TRUE(inducedDtmc.hasRewardModel(
"rew"));
279 auto const& rewards = inducedDtmc.getRewardModel(
"rew").getStateRewardVector();
280 ASSERT_EQ(rewards.size(), inducedDtmc.getNumberOfStates());
281 EXPECT_DOUBLE_EQ(rewards.at(0), 8.0);
284TEST(ApplyObservationBasedFiniteStateController, RejectsTransitionRewards) {
285 for (
bool withStateAndActionRewards : {
false,
true}) {
286 SCOPED_TRACE(withStateAndActionRewards);
287 for (
bool emptyTransitionRewards : {
false,
true}) {
288 SCOPED_TRACE(emptyTransitionRewards);
289 auto pomdp = buildSingleStatePomdp(
true);
291 if (!emptyTransitionRewards) {
295 std::optional<std::vector<double>> stateRewards;
296 std::optional<std::vector<double>> actionRewards;
297 if (withStateAndActionRewards) {
298 stateRewards = std::vector<double>{3.0};
299 actionRewards = std::vector<double>{2.0, 6.0};
301 pomdp.getRewardModels().emplace(
305 for (
bool dontCare : {
false,
true}) {
306 SCOPED_TRACE(dontCare);
313TEST(ApplyObservationBasedFiniteStateController, PreservesLabelsOfUnreachableStates) {
337 ASSERT_EQ(inducedDtmc.getNumberOfStates(), 1);
338 auto const& labeling = inducedDtmc.getStateLabeling();
340 ASSERT_TRUE(labeling.containsLabel(
"goal"));
341 EXPECT_TRUE(labeling.getStates(
"goal").empty());
342 EXPECT_TRUE(labeling.getStates(
"empty").empty());
343 EXPECT_TRUE(labeling.getStateHasLabel(
"safe", 0));
344 EXPECT_TRUE(labeling.getStateHasLabel(
"init", 0));
350 auto result = checker.
check(env, *formula);
351 EXPECT_DOUBLE_EQ(result->asExplicitQuantitativeCheckResult<
double>()[0], 0.0);
354TEST(ApplyObservationBasedFiniteStateController, MatchesObservationValuationsIndependentOfStorageOrder) {
355 auto sourcePomdp = buildSingleStatePomdpWithObservationValuations(
false);
356 auto targetPomdp = buildSingleStatePomdpWithObservationValuations(
true);
361 std::optional observationSignatures{std::unordered_map<uint64_t, storm::pomdp::policy::ObservationSignature>{{0, sourceObservationSignature}}};
366 EXPECT_EQ(inducedDtmc.getNumberOfStates(), 1);
369TEST(ApplyObservationBasedFiniteStateController, NamedActionMappingsTakePrecedenceOverUnnamedFallbacks) {
370 for (uint64_t namedActionIndex : {0ul, 1ul}) {
371 SCOPED_TRACE(namedActionIndex);
391 uint64_t
const fscNamedActionId = 1 - namedActionIndex;
392 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{fscNamedActionId,
"named"}}}}};
397 EXPECT_DOUBLE_EQ(namedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), namedActionIndex == 0 ? 2.0 : 6.0);
401 EXPECT_DOUBLE_EQ(unnamedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 10.0);
405TEST(ApplyObservationBasedFiniteStateController, MatchesLabelledChoicesForUnnamedActions) {
406 auto pomdp = buildSingleStatePomdp(
true,
true);
407 for (std::string
const actionName : {
"first",
"second"}) {
408 SCOPED_TRACE(actionName);
409 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0, actionName}}}}};
414 EXPECT_EQ(unnamedDtmc.getNumberOfStates(), 1);
415 EXPECT_DOUBLE_EQ(unnamedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 9.0);
419 EXPECT_DOUBLE_EQ(namedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), actionName ==
"first" ? 5.0 : 9.0);
423TEST(ApplyObservationBasedFiniteStateController, RejectsNamedActionMissingFromUnlabelledChoices) {
424 auto pomdp = buildSingleStatePomdp(
true);
426 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"missing-action"}}}}};
430 for (
bool dontCare : {
false,
true}) {
431 SCOPED_TRACE(dontCare);
436TEST(ApplyObservationBasedFiniteStateController, MatchesUnlabelledChoicesForUnnamedActionsOrMissingMetadata) {
437 auto pomdp = buildSingleStatePomdp(
true);
439 using ActionNames = std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>;
440 std::vector<std::optional<ActionNames>> actionNameMaps{ActionNames{{0, {{0,
""}}}}, ActionNames{{0, {{1,
"other-action"}}}},
441 ActionNames{{1, {{0,
"other-action"}}}}, ActionNames{}, std::nullopt};
442 for (
auto const& actionNames : actionNameMaps) {
447 EXPECT_EQ(inducedDtmc.getNumberOfStates(), 1);
448 EXPECT_DOUBLE_EQ(inducedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 5.0);
452TEST(ApplyObservationBasedFiniteStateController, UnspecifiedOutputUsesLocalActionZeroWithReorderedActionNames) {
453 auto pomdp = buildSingleStatePomdp(
true,
true);
454 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"second"}, {1,
"first"}}}}};
460 EXPECT_EQ(inducedDtmc.getNumberOfStates(), 1);
461 EXPECT_DOUBLE_EQ(inducedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 5.0);
464TEST(ApplyObservationBasedFiniteStateController, UnspecifiedOutputUsesLocalActionZeroWithIncompleteActionNames) {
465 auto pomdp = buildSingleStatePomdp(
true,
true);
466 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{1,
"second"}}}}};
471 EXPECT_EQ(inducedDtmc.getNumberOfStates(), 1);
472 EXPECT_DOUBLE_EQ(inducedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 5.0);
475TEST(ApplyObservationBasedFiniteStateController, SpecifiedOutputRemapsActionNamesWithDontCareEnabled) {
476 auto pomdp = buildSingleStatePomdp(
true,
true);
477 std::optional actionNames{std::unordered_map<uint64_t, std::unordered_map<uint64_t, std::string>>{{0, {{0,
"second"}, {1,
"first"}}}}};
483 EXPECT_EQ(inducedDtmc.getNumberOfStates(), 1);
484 EXPECT_DOUBLE_EQ(inducedDtmc.getRewardModel(
"rew").getStateRewardVector().at(0), 9.0);
487TEST(PolicyExtractor, OmitsObservationSignaturesAfterTargetSplitting) {
497 stateLabeling.
addLabel(
"truncated");
502 components.
observationValuations = buildSingleStatePomdpWithObservationValuations(
false).getObservationValuations();
503 auto pomdp = std::make_shared<storm::models::sparse::Pomdp<double>>(std::move(components),
true);
506 beliefScheduler.setChoice(0, 0);
507 beliefScheduler.setChoice(0, 1);
508 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{0, 0}, {1, 0}};
516 auto const [splitPomdp, targetObservations] = observationCloser.
transform(targetStates);
517 ASSERT_EQ(splitPomdp->getNrObservations(), 2);
518 ASSERT_TRUE(splitPomdp->hasObservationValuations());
519 ASSERT_EQ(splitPomdp->getObservationValuations().getNumberOfEntities(), 1);
521 beliefStateToObservation.at(1) = splitPomdp->getObservation(1);
525 EXPECT_FALSE(fsc.hasIdToObservationSignatureMap());
526 EXPECT_EQ(fsc.getActionForObservationInNode(1, splitPomdp->getObservation(1)), 0);
530TEST(PolicyExtractor, UsesCutoffSchedulerLabelInsteadOfLocalChoiceIndex) {
531 auto pomdp = buildSingleStatePomdp();
532 auto beliefMdp = buildBeliefMdpWithReorderedCutoffChoices();
543 std::optional<std::vector<storm::storage::Scheduler<double>>> approximationSchedulers(
545 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{0, 0}, {1, 0}};
548 beliefScheduler, approximationSchedulers);
551 EXPECT_EQ(fsc.getActionForObservationInNode(1, 0), 1);
554TEST(PolicyExtractor, UsesContinuationSchedulerForTruncatedInitialBelief) {
555 auto pomdp = buildSingleStatePomdp(
true);
556 auto beliefMdp = buildBeliefMdpWithReorderedCutoffChoices(
true);
561 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{1, 0}};
563 for (
bool randomised : {
false,
true}) {
564 SCOPED_TRACE(randomised);
572 schedulerOne.
setChoice(actionDistribution, 0);
576 std::optional<std::vector<storm::storage::Scheduler<double>>> approximationSchedulers(
580 beliefScheduler, approximationSchedulers);
581 auto fsc = extractor.exportPolicyAsFiniteStateController();
583 EXPECT_EQ(fsc.isDeterministic(), !randomised);
584 auto const [initialDistribution, continuationNode] = fsc.getActionDistributionAndSuccessorForObservationInNode(0, 0);
585 ASSERT_TRUE(fsc.hasOutputForObservationInNode(continuationNode, 0));
586 auto const [continuationDistribution, successorNode] = fsc.getActionDistributionAndSuccessorForObservationInNode(continuationNode, 0);
587 EXPECT_EQ(successorNode, continuationNode);
588 EXPECT_EQ(initialDistribution.size(), randomised ? 2 : 1);
589 EXPECT_EQ(continuationDistribution.size(), initialDistribution.size());
590 for (
auto const& [action, probability] : schedulerOne.
getChoice(0).getChoiceAsDistribution()) {
591 EXPECT_DOUBLE_EQ(initialDistribution.getProbability(action), probability);
592 EXPECT_DOUBLE_EQ(continuationDistribution.getProbability(action), probability);
596 auto const& rewards = inducedDtmc.getRewardModel(
"rew").getStateRewardVector();
597 for (
auto const reward : rewards) {
598 EXPECT_DOUBLE_EQ(reward, randomised ? 8.0 : 9.0);
603TEST(PolicyExtractor, RequiresObservationBasedCutoffSchedulers) {
618 auto beliefMdp = buildBeliefMdpWithReorderedCutoffChoices(
true);
623 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{1, 0}};
625 for (
bool randomised : {
false,
true}) {
626 SCOPED_TRACE(randomised);
632 scheduler.
setChoice(firstDistribution, 0);
636 scheduler.
setChoice(secondDistribution, 1);
641 auto extractPolicy = [&]() {
642 std::optional<std::vector<storm::storage::Scheduler<double>>> approximationSchedulers({scheduler});
644 beliefScheduler, approximationSchedulers);
645 return extractor.exportPolicyAsFiniteStateController();
650 auto const fsc = extractPolicy();
651 auto const [distribution, continuationNode] = fsc.getActionDistributionAndSuccessorForObservationInNode(0, 0);
652 EXPECT_EQ(fsc.isDeterministic(), !randomised);
653 ASSERT_EQ(distribution.size(), randomised ? 2 : 1);
654 for (
auto const& [action, probability] : scheduler.
getChoice(0).getChoiceAsDistribution()) {
655 EXPECT_DOUBLE_EQ(distribution.getProbability(action), probability);
657 EXPECT_TRUE(fsc.hasOutputForObservationInNode(continuationNode, 0));
661TEST(PolicyExtractor, InducedMarkovChainClipsSelectedChoice) {
662 auto pomdp = buildSingleStatePomdp();
680 stateLabeling.
addLabel(
"truncated");
683 for (uint64_t choice = 0; choice < 2; ++choice) {
684 auto const candidateLabel =
"candidate_" + std::to_string(choice);
685 stateLabeling.
addLabel(candidateLabel);
687 auto const clipLabel =
"clip_" + std::to_string(choice);
694 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{0, 0}, {1, 0}};
696 for (uint64_t chosenAction = 0; chosenAction < 2; ++chosenAction) {
697 SCOPED_TRACE(chosenAction);
700 beliefScheduler.
setChoice(chosenAction, 1);
707 EXPECT_EQ(inducedModel->getNumberOfStates(), 3);
708 auto const& labeling = inducedModel->getStateLabeling();
709 auto const& clippingStates = labeling.getStates(
"clipping");
710 ASSERT_EQ(clippingStates.getNumberOfSetBits(), 1);
711 auto row = inducedModel->getTransitionMatrix().getRow(clippingStates.getNextSetIndex(0));
712 ASSERT_EQ(row.getNumberOfEntries(), 1);
713 EXPECT_DOUBLE_EQ(row.begin()->getValue(), 1.0);
714 EXPECT_TRUE(labeling.getStateHasLabel(
"candidate_" + std::to_string(chosenAction), row.begin()->getColumn()));
718TEST(PolicyExtractor, AddsEmptyLabelToSelectedUnlabelledChoice) {
719 auto pomdp = buildSingleStatePomdp();
720 auto beliefMdp = buildSingleStateBeliefMdpWithUnlabelledSecondChoice();
723 std::unordered_map<uint64_t, uint32_t> beliefStateToObservation{{0, 0}};
729 ASSERT_TRUE(inducedModel->hasChoiceLabeling());
730 EXPECT_TRUE(inducedModel->getChoiceLabeling().getLabelsOfChoice(0).contains(
""));
TEST(ObservationBasedFiniteStateController, DeterminismTracksReplacedOutputs)
virtual std::unique_ptr< CheckResult > check(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
Checks the provided formula.
This class manages the labeling of the choice space with a number of (atomic) labels.
void addLabelToChoice(std::string const &label, uint64_t choice)
Adds a label to a given choice.
std::set< std::string > getLabels() const
Retrieves the set of labels contained in this labeling.
void addLabel(std::string const &label)
Adds a new label to the labelings.
This class represents a (discrete-time) Markov decision process.
storm::models::sparse::StateLabeling const & getStateLabeling() const
Returns the state labeling associated with this model.
This class represents a partially observable Markov decision process.
This class manages the labeling of the state space with a number of (atomic) labels.
void addLabelToState(std::string const &label, storm::storage::sparse::state_type state)
Adds a label to a given state.
A finite-state controller (FSC) for POMDPs that bases its decisions on observations.
bool isDeterministic() const
Reports whether all outputs added to the controller so far have been deterministic.
void writeJsonToStream(std::ostream &outStream) const
Writes a JSON representation of the controller.
void addDeterministicActionTransition(uint64_t originId, uint64_t observationId, uint64_t actionId, uint64_t targetId)
Adds a deterministic output for an observation in a memory node.
void addRandomisedActionTransition(uint64_t originId, uint64_t observationId, storm::storage::Distribution< ValueType, uint64_t > actionDistribution, uint64_t targetId)
Adds a randomised output for an observation in a memory node.
std::string toString() const
Creates a human-readable representation of the controller, listing its initial node and defined outpu...
void writeDotToStream(std::ostream &outStream) const
Writes a Graphviz DOT representation of the controller.
A bit vector that is internally represented as a vector of 64-bit values.
void set(uint64_t index, bool value=true)
Sets the given truth value at the given index.
void addProbability(StateType const &state, ValueType const &probability)
Assigns the given state the given probability under this distribution.
This class defines which action is chosen in a particular state of a non-deterministic model.
SchedulerChoice< ValueType > const & getChoice(uint_fast64_t modelState, uint_fast64_t memoryState=0) const
Gets the choice defined by the scheduler for the given model and memory state.
void setChoice(SchedulerChoice< ValueType > const &choice, uint_fast64_t modelState, uint_fast64_t memoryState=0)
Sets the choice defined by the scheduler for the given state.
A class that can be used to build a sparse matrix by adding value by value.
void addNextValue(index_type row, index_type column, value_type const &value)
Sets the matrix entry at the given row and column to the given value.
void newRowGroup(index_type startingRow)
Starts a new row group in the matrix.
SparseMatrix< value_type > build(index_type overriddenRowCount=0, index_type overriddenColumnCount=0, index_type overriddenRowGroupCount=0)
Helper to incrementally build a ValuationClassDescription, i.e.
Provides access to valuations of variables for a set of entities (e.g.
ObservationSignature getObservationSignature(storm::models::sparse::Pomdp< PomdpValueType > const &pomdp, uint64_t const observationId)
storm::models::sparse::Dtmc< PomdpValueType > applyObservationBasedFSCToPomdp(storm::models::sparse::Pomdp< PomdpValueType > const &pomdp, storm::pomdp::policy::ObservationBasedFiniteStateController< FscValueType > const &fsc, bool treatUnspecifiedChoiceAsDontCare)
Applies an observation-based finite-state controller to a POMDP and constructs the induced DTMC.
SettingsManager const & manager()
Retrieves the settings manager.
nlohmann::basic_json< std::map, std::vector, std::string, bool, int64_t, uint64_t, ValueType > json
#define STORM_SILENT_EXPECT_THROW(statement, expected_exception)
Identifies an observation by its observable names and typed values.
std::map< std::string, ObservationValue > values
std::unordered_map< std::string, RewardModelType > rewardModels
std::optional< storm::storage::sparse::Valuations > observationValuations
std::optional< storm::models::sparse::ChoiceLabeling > choiceLabeling
std::optional< std::vector< uint32_t > > observabilityClasses