Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QPARALLELS.SDDL
!
! Purpose:      This SDDL file defines the qparallels relation.
!
! Modification History:
!
!   Date       OPR      Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 11/ 3/94    27329     EGB   Original implementation
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
 
LANGUAGE	FORTRAN, SQL

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  PARATT_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
    DESCRIPTION    "An attached parallel SU is a scheduling unit that contains
                    targeted (on sky) science alignments that share the
                    pointing of some targeted main (primary) SU. This is done 
		    by attaching the parallel SU to an alignment in the 
                    primary SU. This relation is used to store attachment 
		    information for parallel SUs to their primary SU's 
		    alignments. 

		    An SU should only have qparallels attachment information if 
		    it is targeted and has its qscheduling.parallel_su flag
		    set to 'Y'.

		    POMS (Parallel Observation Matching System) determines 
		    what targeted parallel SUs should be matched with what 
		    main SUs and the generated the data for this relation.  It 
		    does so by reading a data file that was produced by the  
		    SPSS SPIKE/PAR_REPORT tool.  This is used to determine the 
		    optimal attachments for a particular calendar which are 
		    shipped into the PMDB for inclusion on a C&C List.

		    As of late 1994, this interface is still maturing and some
		    of the fields listed in this relation have become obsolete.
		    They will be cleaned up when work on the SPSS <-> POMS 
		    interface is completed and successfully supporting 
		    operations. "
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 

    FIELD  sunit_id
        TYPE SUNIT_ID_TYPE
        DESCRIPTION     "This field contains the id of the parallel 
			 scheduling unit."
        FORM
            NAME         "PAD"
            LABEL        "SCHEDULING UNIT ID"
        END_FORM
    END_FIELD
 

    FIELD  version_num
        TYPE VERSION_NUM_TYPE
        FORM
            NAME         "PAD"
            LABEL        "SUNIT VERSION  NUM"
        END_FORM
    END_FIELD
 

    FIELD  prim_prop_id
        TYPE PROPOSAL_ID_TYPE
        DESCRIPTION     "This field contains the proposal id of the alignment
                         to attach the parallel SU to."
        FORM
            NAME         "PAD"
            LABEL        "PRIMARY PROPOSAL  ID"
        END_FORM
    END_FIELD
 

    FIELD  prim_obs_id
        TYPE OBSET_ID_TYPE 
        DESCRIPTION     "This field contains the observation set id of the 
			 alignment to attach the parallel SU to."
        FORM
            NAME         "PAD"
            LABEL        "PRIMARY OBSET     ID"
        END_FORM
    END_FIELD
 

    FIELD  prim_ali_id
        TYPE ALIGN_ID_TYPE
        DESCRIPTION     "This field contains the alignment id to attach the 
                         parallel SU to."
        FORM
            NAME         "PAD"
            LABEL        "PRIMARY ALIGNMENT ID"
        END_FORM
    END_FIELD
 

    FIELD  prim_version
        TYPE VERSION_NUM_TYPE
        FORM
            NAME         "PAD"
            LABEL        "PRIMARY VERSION  NUM"
        END_FORM
    END_FIELD
 

    FIELD  prim_su_id
        TYPE SUNIT_ID_TYPE
        DESCRIPTION     "The parallel SU may also be attached to a primary 
                         scheduling unit.  This processing of this field 
                         has not been implemented."
    END_FIELD
 

    FIELD  rest_window
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "When this field is 'Y', it forces the parallel SU to
			 schedule within the restricted window defined below
			 by (rest_start, rest_end).  That window equal to or
			 a subset of the parallel place defined by the primary
			 alignment."
        FORM
            NAME         "PAD"
            LABEL        "RESTRICTED WINDOW FLAG (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  rest_start
        TYPE SOGS_INT_TIME_TYPE
        DESCRIPTION     "This is the start time of the parallel restricted 
		         window.  It is only used when the 
			 qparallels.rest_window flag is 'Y'. "
        FORM
            NAME         "PAD"
            LABEL        "START TIME"
        END_FORM
    END_FIELD
 

    FIELD  rest_end
        TYPE SOGS_INT_TIME_TYPE
        DESCRIPTION     "This is the end time of the parallel restricted 
		         window.  It is only used when the 
			 qparallels.rest_window flag is 'Y'. "
        FORM
            NAME         "PAD"
            LABEL        "END TIME"
        END_FORM
    END_FIELD
 

    FIELD  rest_align
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This flag can be set to 'Y' to force the parallel 
			 scheduling unit to schedule completely within the 
			 primary alignment science.  By default, the parallel
			 place will be larger than this science time, namely
			 it is defined as the place from the end of the 
			 maneuver to the alignment to the start of the maneuver 
			 away from the alignment.  This flag enables the 
			 shrinking of that place."
        FORM
            NAME         "PAD"
            LABEL        "RESTRICTED ALIGNMENT FLAG (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  rest_v3_flg
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "When this field is 'Y', it will only enable the 
			 parallel to schedule if the primary SU is scheduled
			 within a specified V3 angle range specified by
			 rest_min_v3 and rest_max_v3 fields below.  "
        FORM
            NAME         "PAD"
            LABEL        "RESTRICTED V3 ANGLE (Y/N)"
        END_FORM
    END_FIELD
 

    FIELD  rest_min_v3
        TYPE            R8
        DESCRIPTION     "This field defines the minimum V3 position angle
			 within which the parallel SU (and primary SU) must be 
			 scheduled."
        FORM
            NAME         "PAD"
            LABEL        "MINIMUM V3 ANGLE"
        END_FORM
    END_FIELD
 

     FIELD  rest_max_v3
        TYPE            R8
        DESCRIPTION     "This field defines the maximum V3 position angle 
			 within which the parallel SU (and primary SU) must be 
			 scheduled."
        FORM
            NAME         "PAD"
            LABEL        "MAXIMUM V3 ANGLE"
        END_FORM
    END_FIELD
 

    FIELD  par_target
        TYPE TARGET_ID_TYPE
        DESCRIPTION     "This field specifies the name of the parallel target 
			 which will be observed if the parallel SU is scheduled 
			 to the above primary attachment."
        FORM
            NAME         "PAD"
            LABEL        "PARALLEL TARGET ID"
        END_FORM
    END_FIELD
 

    FIELD  priority
        TYPE            I4
        DESCRIPTION     "This field contains the priority of the parallel SU as
			 supplied by POMS.  Higher priority attachments should 
			 be attempted for scheduling first."
        FORM
            NAME         "PAD"
            LABEL        "PRIORITY"
        END_FORM
    END_FIELD
 

    FIELD  week_id
        TYPE            C5
        DESCRIPTION     "This field identifies the week the attachment records 
			 were received in Operations inserted into the PMDB.  
			 This helps with the cleanup of old, unused attachment 
			 records from this relation."
        UNITS
    END_FIELD
 
END_RECORD
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
RELATION  qparallels
 
    TYPE             PARATT_TYPE
 
    DESCRIPTION      "Parallel Scheduling Unit Attachment Relation"
 
    SUBSYSTEM_USING  "SPSS", "POMS"

    RELATED_FIELDS  "qscheduling.parallel_su" "qscheduling.par_attach" "qscheduling.par_allowed"


    FORM
        NAME         "PAD"
    END_FORM
 
    INDEX  qparallels_1
        TYPE         unique, clustered
        FIELDS       sunit_id, version_num, prim_prop_id, 
                     prim_obs_id, prim_ali_id, prim_version
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
INSTANCE  qparallels
 
    GLOBAL
 
    TYPE        PARATT_TYPE
 
END_INSTANCE

Go to the top.