// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.research.bleth.simulator;

/** A class providing a single access point for datastore entities kinds and schemas. */
public class Schema {
    /** A class providing a single access point for the SimulationMetadata entity schema. */
    public static class SimulationMetadata {
        public static final String entityKind = "SimulationMetadata";
        public static final String description = "description";
        public static final String roundsNum = "roundsNum";
        public static final String beaconsNum = "beaconsNum";
        public static final String observersNum = "observersNum";
        public static final String rowsNum = "rowsNum";
        public static final String colsNum = "colsNum";
        public static final String beaconMovementStrategy = "beaconMovementStrategy";
        public static final String observerMovementStrategy = "observerMovementStrategy";
        public static final String observerAwakenessStrategy = "observerAwakenessStrategy";
        public static final String transmissionThresholdRadius = "transmissionThresholdRadius";
        public static final String awakenessCycle = "awakenessCycle";
        public static final String awakenessDuration = "awakenessDuration";
        public static final String observersDensity = "observersDensity";
        public static final String awakenessRatio = "awakenessRatio";
    }

    /** A class providing a single access point for the RealBoardState / EstimatedBoardState entity schema. */
    public static class BoardState {
        public static final String entityKindReal = "RealBoardState";
        public static final String entityKindEstimated = "EstimatedBoardState";
        public static final String simulationId = "simulationId";
        public static final String round = "round";
        public static final String agentId = "agentId";
        public static final String rowNum = "rowNum";
        public static final String colNum = "colNum";
    }

    /** A class providing a single access point for the StatsState entity schema. */
    public static class StatisticsState {
        public static final String simulationId = "simulationId";
        public static final String entityKindDistance = "DistanceStats";
        public static final String entityKindBeaconsObserved = "BeaconsObservedStats";
        public static final String beaconId = "beaconId";
        public static final String observedPercent = "observedPercent";
        public static final String minimumLengthObservedInterval = "minimumLengthObservedInterval";
        public static final String minimumLengthUnobservedInterval = "minimumLengthUnobservedInterval";
        public static final String maximumLengthObservedInterval = "maximumLengthObservedInterval";
        public static final String maximumLengthUnobservedInterval = "maximumLengthUnobservedInterval";
        public static final String averageLengthObservedInterval = "averageLengthObservedInterval";
        public static final String averageLengthUnobservedInterval = "averageLengthUnobservedInterval";
        public static final String entityKindBeaconsObservedPercent = "BeaconsObservedPercentStats";
    }
}

@@ -3760,11 +3760,723 @@
 %22;%0A    %7D
+%0A%0A    /** A class providing a single access point for the Experiment entity schema. */%0A    public static class Experiment %7B%0A        public static final String entityKind = %22Experiment%22;%0A        public static final String experimentTitle = %22experimentTitle%22;%0A        public static final String legalSimulationsNum = %22legalSimulationsLeftNum%22;%0A    %7D%0A%0A    /** A class providing a single access point for the ExperimentsToSimulations entity schema. */%0A    public static class ExperimentsToSimulations %7B%0A        public static final String entityKind = %22ExperimentsToSimulations%22;%0A        public static final String experimentId = %22experimentId%22;%0A        public static final String simulationId = %22simulationId%22;%0A    %7D
 %0A%7D%0A

add experiment-related entities to schema.