Go to the bottom.
!
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	QASI_STATES.SDDL
!
! Purpose:      This SDDL file defines the QASI_STATES relation.
!
! Modification History:
!
!   Date       OPR      Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 10/ 5/94    27329     NSS   Original implementation
! 11/29/95    30445     NLC   Duplicate type SI_STATE_TYPE; rename to      
!			      SI_CONFIG_STATE_TYPE
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
!
 
LANGUAGE	FORTRAN, SQL

INCLUDE         ZSPSS_USER_TYPES.SDDL
 
RECORD  ALSIST_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
    DESCRIPTION       "The QASI_STATES relation is used to define an alignment's
                       start, end, and minimum interrupt SI (Science Instrument)
                       states. These states are used as input into the SPSS SI 
                       software to facilitate the scheduling of SI sequences 
                       for an alignment.

                       When scheduling an alignment, the SI software must 
                       schedule a sequence of SI states that brings the SI or
                       Detector into the alignment required start state prior  
                       to the start of the alignment. 

                       Conversely, the SI software must also schedule a 
                       sequence of SI states that brings the SI or Detector down
                       from the alignment required end state after the end of
                       the alignment. 

                       Finally, the SI software must schedule a sequence to/from
                       the alignment minimum interrupt state when an alignment 
                       is interrupted.

		       For the most part, the start and end states of an 
		       alignment will be set to the same value. If they are
		       not, then this alignment is a special alignment that 
		       requires that commanding generate the transitions 
                       during the alignment."
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

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

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

    FIELD  alignment_id
        TYPE ALIGN_ID_TYPE
        FORM
            NAME         "AID"
            LABEL        "ALIGNMENT ID"
        END_FORM
    END_FIELD
 
 

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

    FIELD  si_id
        TYPE SI_ID_TYPE
        FORM
            NAME         "AID"
            LABEL        "SI"
        END_FORM
    END_FIELD
 
 

    FIELD  detector
        TYPE SI_DETECTOR_TYPE
        FORM
            NAME         "AID"
            LABEL        "SI DETECTOR"
        END_FORM
    END_FIELD
 
 

    FIELD  start_state
        TYPE SI_CONFIG_STATE_TYPE
        DESCRIPTION     "This field is the SI or Detector start state for the 
                         alignment. The input state id must be defined in the 
                         state definition relation wsistate_def for the 
                         specified SI or Detector."
        FORM
            NAME         "AID"
            LABEL        "START STATE"
        END_FORM
        RELATED_FIELDS  "wsistate_def.state_name"
    END_FIELD
 
 

    FIELD  end_state
        TYPE SI_CONFIG_STATE_TYPE
        DESCRIPTION     "This field is the SI or Detector end state for the 
                         alignment. The input state id must be defined in the 
                         state definition relation wsistate_def for the 
                         specified SI or Detector."
        FORM
            NAME         "AID"
            LABEL        "END STATE"
        END_FORM
        RELATED_FIELDS  "wsistate_def.state_name"
    END_FIELD
 
 

    FIELD  int_state
        TYPE SI_CONFIG_STATE_TYPE
        DESCRIPTION     "This field is the minimum SI or Detector state allowed 
                         during alignment interruptions. This state must be 
                         lower than or equal to the alignment end state, and 
                         must have no SAA or occultation restrictions. This 
                         field should be set to blank if there is no minimum 
                         state restriction (i.e. it is ok for the instrument 
                         to be transitioned down to its lowest state during an 
                         interruption)."
        FORM
            NAME         "AID"
            LABEL        "INTERRUPTION STATE"
        END_FORM
        RELATED_FIELDS  "wsistate_def.state_name"
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
 
RELATION  qasi_states
 
    TYPE             ALSIST_TYPE
 
    DESCRIPTION      "Alignment Required SI States Relation"
 
    SUBSYSTEM_USING  "SPSS, TRANS", "CCLIST"

    RELATED_FIELDS  "wsidata_def.*" "wsistate_def.*"


    FORM
        NAME         "AID"
    END_FORM
 
    INDEX  qasi_states_1
        TYPE         unique, clustered
        FIELDS       proposal_id, obset_id, alignment_id, version_num, 
                     si_id, detector
    END_INDEX

END_RELATION
 
!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  qasi_states
 
    GLOBAL
 
    TYPE        ALSIST_TYPE
 
END_INSTANCE

Go to the top.