NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Dynamic > DSSTestDatabase
   Changes | Index | Search | Go

Overview

A mysql test database named "DynSchedTest" was created from the mysql pas database. "DynSchedTest" was created to facilitate testing of selection rule requirements. The pas database contains many semesters worth of proposal and scheduling information. It was generated from Carl's DBASE files. Pas is not the database that Carl currently uses and its completeness and integrity is unknown. However, it give the DSS team a great opportunity to obtain test data. Carl created a new table in pas called 'vprog' which contained session data for the GBT06A semester. Much of the test data was generated using this table although other tables in the pas database were used when necessary.

This document is not intended to inform the reader about field types, default values etc. for each of the fields in the DynSchedTest database. That information can easily be viewed by users with a mysql account by:

The Tables

There are currently 4 tables in the DynSchedTest database:

How the Tables were Created

The tables were created using the python script: /home/sandboxes/mmello/dynamic/testcases/python/CreateTables.py Initially the script created tables based on the "Input Table" in the selection criteria, but tables and fields were added when it became clear of the need for fields that were not specifically addressed in the Input table. This is only worth noting because although every effort well.. at least good intention.. was made to update the CreateTable?.py file with the new fields, sometimes this was done AFTER I had created the table using the script.

The Test Data

Much of the meta data required by the DSS for scheduling purposes was in the pas database. Some meta data such as wind and TSYS grades were unavailable from the pas database and were generated by criteria set by the sponsor. This section describes each table and field in the DynSchedTest database and how the test data was generated.

Project Table

Fields

How the Test Data in the Project table was Generated

The fields in the DynSchedTest.Project Table, with the exception of the auto generated Id, has either a 1-1 or 2-1 correlation to the data in the Pas.proposal table. The test data was read from the Pas.Proposal table and then stored in the DynSchedTest.Project table.

Allocation Table

Each Allocation record in the table is linked to a project by the projectId field.

Fields

How the Test Data in the Allocation table was Generated

Each Allocation record in DynSchedTest corresponds to a record in the Pas.vprog table. The test data in each of the fields in each record was derived from fields in various tables of the Pas database.

Instrumentation Table

Every record in the Instrumentation is linked to a record in the Allocation table by the allocationId.

Fields

How the Test Data in the Instrumentation table was Generated

Most of the meta data is available in the Pas.vprog.receiver and backend records. Bandwidth and frequencies are in text fields in the resource table and are not clearly linked to the vprog table.

TimeConstraints Table

Each record in this table describes the information required to schedule a "window" or "fixed" allocation. Only allocations that are "window" or Fixed have TimeConstraint? records associated with them. This may not be such a good idea, since completion date etc. will need to be kept for all Allocations. Even then, its probably not complete ( for instance times reqwuired?) , it is a first cut. I think new TimeConstraints? records will be generated by the DSS as an Window of Fixed allocation is run.

Fields

How the Test Data in the TimeConstraints table was Generated

Massaging the data

-- MelindaMello - 17 Nov 2006

Topic DSSTestDatabase . { Edit | Attach | Ref-By | Printable | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.4 - 14 Dec 2006 - 12:37 GMT - MelindaMello Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.