Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QGACTINST.SDDL
!
! Purpose:      This SDDL file defines the qgactinst relation.
!
! Modification History:
!
!   Date       PR      Who                       Reason
! --------   -------   ---   -------------------------------------------------
! 10/28/94   27329     MRB   Original implementation
! 05/08/98   36870     MRB   Add C output
! 08/05/99   38555     MRB   Removed instruction versions, field instr_ver
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
 
LANGUAGE  C, FORTRAN, SQL

INCLUDE  ZSPSS_USER_TYPES.SDDL
 
RECORD  QGACT_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
 
    DESCRIPTION       "QGACTINST links calendar activities with top level
                       instructions to be executed for the activity.  This is
                       the link between a calendar of activities and the 
                       generation of a science mission specification.
                       Transformation populates this relation with the
                       correlations and occasionaly users will populate or 
                       modify it using IForm IAC or PFORM EGD.  SMSG/Generate
                       retrieves records from this relation to guide its 
                       instruction expansion process."
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  proposal_id
        TYPE PROPOSAL_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "PROPOSAL ID"
        END_FORM
    END_FIELD
 
 

    FIELD  obset_id
        TYPE OBSET_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "OBSET    ID"
        END_FORM
    END_FIELD
 
 

    FIELD  alignment_id
        TYPE ALIGN_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "ALIGN    ID"
        END_FORM
    END_FIELD
 
 

    FIELD  exposure_id
        TYPE EXPOSURE_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "EXPOSURE ID"
        END_FORM
    END_FIELD
 
 

    FIELD  su_id
        TYPE SUNIT_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "SCHEDULING UNIT ID"
        END_FORM
    END_FIELD
 
 

    FIELD  path_id
        TYPE            I2
        DESCRIPTION     "This is an obsolete field/feature. Delete with 25251."
        FORM
            NAME         "IAC"
            LABEL        "PATH ID"
        END_FORM
    END_FIELD
 
 

    FIELD  calendar_id
        TYPE CCLIST_ID_TYPE
        FORM
            NAME         "IAC"
            LABEL        "C&C LIST ID"
        END_FORM
    END_FIELD
 
 

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

    FIELD  activity_id
        TYPE            C8
        DESCRIPTION     "This indicates the calendar activity.
                        offset = offset by predeterimined amount,
                        fgspause = pause fine guidance sensor control,
                        slew = REGULAR slew, 
                        sam = SMALL angle maneuver
                        slew = large spacecraft maneuver, 
                        pcsacq = PCS acquisition,
                        pcsreacq = PCS reacquisition, 
                        fhst = fixed head star tracker update,
                        science = SCIENCE activity,
                        tgtreacq = TARGET reacquisition,
                        cgsh = complex guide star handoff
                        sgsh = simple guide star handoff
                        track51 = track by 51 command
                        calstart = START of calendar,
                        calend = END of calendar"
        FORM
            NAME         "IAC"
            LABEL        "ACTIVITY ID"
        END_FORM
        DISCRETE        " ",  "SAM", "FHST", "CGSH", "SGSH", "SLEW",
                        "CALEND",  "CALSTART", "SCIENCE", TRACK51", 
                        "PCSREACQ", "TGTREACQ", "FGSPAUSE", "OFFSET", "PCSACQ"
    END_FIELD
 
 

    FIELD  instr_name
        TYPE INSTRUCTION_NAME_TYPE
        FORM
            NAME         "IAC"
            LABEL        "INSTRUCTION NAME"
        END_FORM
    END_FIELD
 
 

    FIELD  instr_desc
        TYPE            C*73
        DESCRIPTION     "This is the textual description for an activity 
                         instruction."
        FORM
            NAME         "IAC"
            LABEL        "DESCRIPTION"
        END_FORM
    END_FIELD
 
 

    FIELD  interrupt
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This indicates if the exposure is interruptible.
                        Y means the exposure is interruptible.
                        N means the exposure is not interruptible."
        FORM
            NAME         "EGD"
            LABEL        "INTERRUPTION ALLOWED (Y/N)"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "INTERRUPTIBLE FLAG (Y/N)"
        END_FORM
    END_FIELD
 
 

    FIELD  min_interrup
        TYPE            I4
        DESCRIPTION     "This is the minimum exposure interrupt
                         duration in seconds. Set if qexint is Y.
                         It's integer value is in the range 0 to 99999."
        FORM
            NAME         "EGD"
            LABEL        "MIN. DURATION"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "MINIMUM INTERRUPTION"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 

    FIELD  timetag_type
        TYPE            C1
        DESCRIPTION     "This is the timetag type where
                         a means relative to the start of the alignment,
                         p means relative to the preceding exposure
                         (determined by sequence number), and
                         s means relative to a specified exposure."
        FORM
            NAME         "EGD"
            LABEL        "TYPE  (A/P/S)"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "TIMETAG TYPE  (A/P/S)"
        END_FORM
        DISCRETE        " ",  "A",  "P",  "S"
    END_FIELD
 
 

    FIELD  sequence_num
        TYPE            I2
        DESCRIPTION     "This is the sequence number of this exposure
                        within the alignment. If it is not input by the user, 
                        qgcmst sequences the exposures by exposure ID. 
                        Sequence numbers should be entered for all 
                        exposures or for no exposures of an alignment."
        FORM
            NAME         "EGD"
            LABEL        "SEQUENCE NUMBER"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "SEQUENCE NUMBER"
        END_FORM
        RANGE
    END_FIELD
    RANGE                1..1295
 

    FIELD  reference_ex
        TYPE            C2
        DESCRIPTION     "This is the reference exposure identifier.
                        This field must be entered if timetag_type is S. 
                        If blank and timetag_type is P, the
                        exposure ID associated with the previous sequence
                        number for the instrument is implied."
        FORM
            NAME         "EGD"
            LABEL        "REFERENCE EXPOSURE ID"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "REFERENCE EXPOSURE ID"
        END_FORM
        RANGE           "01..ZZ"
    END_FIELD
 
 

    FIELD  delta_time
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "(-99999 - 99999) delta timetag.
                        If timetag_type is A, the delta time tag is relative to
                        the start of the alignment;
                        if timetag_type is P, delta time tag is relative to the
                        end time of the preceding exposure (determined by 
                        sequence number);
                        if timetag_type is S, delta time tag is relative to the
                        start time of the exposure specified in reference_ex.
                        The value must be greater or equal to zero if the
                        timetag_type is A or P."
        FORM
            NAME         "EGD"
            LABEL        "DELTA TIMETAG"
        END_FORM
        FORM
            NAME         "IAC"
            LABEL        "DELTA TIME"
        END_FORM
        RANGE           "-999:59:59..999:59:59"
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
 
RELATION  qgactinst
 
    TYPE             QGACT_TYPE
 
    DESCRIPTION      "Activity to Instruction General Description Relation"
 
    SUBSYSTEM_USING  "SCS", "TRANS", "IM"

    RELATED_FIELDS  "qgreconfig.*"

    FORM
        NAME         "EGD", "IAC"
    END_FORM
 
    INDEX  qgactinst_1
        TYPE         unique, clustered
        FIELDS       proposal_id, obset_id, alignment_id, exposure_id, su_id, 
                     path_id, calendar_id, version_num, activity_id
    END_INDEX
 
    INDEX  qgactinst_2
        TYPE         nonclustered
        FIELDS       calendar_id
    END_INDEX
 
END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  qgactinst
 
    GLOBAL
 
    TYPE        QGACT_TYPE
 
END_INSTANCE

Go to the top.