Go to the bottom.
!
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	WSISTATE_DEF.SDDL
!
! Purpose:      This SDDL defines the WSISTATE_DEF relation.
!
! Modification History:
!
!   Date       OPR      Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 10/ 4/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  SISTATE_TYPE

!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------

    DESCRIPTION       "This relation is used to define Science Instrument (SI) 
                       and SI Detector states. A state is an abstraction of an
                       SI/Detector's particular mode or configuration.

                       For example, suppose that there is an SI on board
                       the HST. There are 3 modes for this instrument: HOLD,
                       WARM, and CAPTURE. System engineering or IM has 
                       determined that this relation should contain a state 
                       corresponding to each of these SI modes.

                       There are many attributes that describe a state,
                       including:

			 o  the state name

                         o  the power used by the SI or Detector while in this
                            state

                         o  are there external constraints (SAA, occultation)
                            that can interfere with this state?

                         o  the minimum/maximum SI or Detector states required 
                            for this state

		 	 o  the minimum/maximum duration that that the SI or
                            Detector can remain in this state.

			 o  etc..."
                                                                           

!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------



    FIELD  si_name
        TYPE SI_ID_TYPE
    END_FIELD



    FIELD  si_det_name
        TYPE SI_DETECTOR_TYPE
        DESCRIPTION     "This field is blank for SI states. By being blank it
                         identifies the state as an SI state, and not a DETECTOR
			 state."
    END_FIELD



    FIELD  state_name
        TYPE SI_CONFIG_STATE_TYPE
    END_FIELD



    FIELD  power
        TYPE            I2
        DESCRIPTION     "This field is the power required in this state. SI 
                         transitions and states must schedule according to 
                         HST power availability/constraints."
        UNITS           "WATTS"
    END_FIELD



    FIELD  saa_flag
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is a flag indicating whether this state is 
                         allowed during the SAA. If this state is allowed 
                         during the SAA, then each lower state shall also be 
                         allowed in the SAA."
    END_FIELD



    FIELD  saa_model_id
        TYPE SAA_MODEL_TYPE
        DESCRIPTION     "This field is the SAA model id. The SAA model for 
                         this state shall not be less restrictive than the SAA 
                         models for each lower state. This field is blank if 
                         this state is allowed during the SAA, as determined
                         by the saa_flag field."
	RELATED_FIELDS  "wsistate_def.saa_flag"
    END_FIELD



    FIELD  saa_recovery
        TYPE            I4
        UNITS           "SECONDS"
        DESCRIPTION     "This field specifies the recovery time after SAA exit 
                         before the state is allowed. This field is not set if 
                         the state allowed in the SAA, as determined by the 
                         saa_flag field."
	RELATED_FIELDS  "wsistate_def.saa_flag"
    END_FIELD



    FIELD  occult_flag
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field is a flag indicating whether this state is 
                         allowed during occultation. If this state is allowed 
                         during occultation, then each lower state shall also 
                         be allowed in occultation. "
    END_FIELD



    FIELD  bright_earth
        TYPE            R4
        DESCRIPTION     "This field is the bright earth avoidance angle. The 
                         bright earth avoidance angle for this state shall not 
                         be less restrictive than the bright earth avoidance 
                         angles for each lower state. This field only applies
                         when the occult_flag field specifies that a state is 
                         not allowed in occultation."
        UNITS           "DEGREES"
        RELATED_FIELDS  "wsistate_def.occult_flag"
    END_FIELD



    FIELD  dark_earth
        TYPE            R4
        DESCRIPTION     "This field is the dark earth avoidance angle. The dark 
                         earth avoidance angle for this state shall not be less
                         restrictive than the dark earth avoidance angles for 
                         each lower state.This field only applies when the 
                         occult_flag field specifies that a state is not 
                         allowed in occultation."
        UNITS           "DEGREES"
        RELATED_FIELDS  "wsistate_def.occult_flag"
    END_FIELD



    FIELD  suppress_tim
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum time between the end 
                         of the last activity in state (cooldown period of a 
                         downward transition to the state, or science activity 
                         in the state) and the start of the next activity in 
                         the state (upward transition from the state, or  
                         science activity in the state) within which state 
                         transitions may be suppressed. 

                         If the time between the state transitions is less than 
                         or equal to the suppression time, then all other state
                         transitions for the instrument between these state
                         transitions will also be suppressed unless the 
                         reconfiguration activities are required to satisfy 
                         specified state requirements for a scheduled alignment,
                         or unless constraints would otherwise be violated. 

                         This suppression time shall not be greater than the 
                         suppression time specified for a lower state."

        UNITS           "SECONDS"
    END_FIELD



    FIELD  min_si_state
        TYPE SI_CONFIG_STATE_TYPE
        DESCRIPTION     "This field specifies the minimum SI state required  
                         for the specified SI detector state. If the SI is not 
                         in this state or higher, then reconfiguration 
                         activities shall be scheduled to bring the SI to this 
                         state prior to the transition of the SI detector to 
                         the specified state. This field is blank if this is 
                         an SI state.

                         The min_si_state and max_si_state fields establish
                         the relationship between SI and Detector scheduling
                         and the order in which the overall sequence will be
                         scheduled."
    END_FIELD



    FIELD  max_si_state
        TYPE SI_CONFIG_STATE_TYPE
        DESCRIPTION     "This field specifies the maximum SI state allowed for 
                         the specified SI detector state. If the SI is not in 
                         this state or lower, then reconfiguration activities 
                         shall be scheduled to bring the SI to this state 
                         prior to the transition of the SI detector to the 
                         specified state. This field is blank if this is an SI 
                         state.

                         The min_si_state and max_si_state fields establish
                         the relationship between SI and Detector scheduling
                         and the order in which the overall sequence will be
                         scheduled."
    END_FIELD



    FIELD  min_duration
        TYPE            I4
        DESCRIPTION     "This field specifies the minimum time the SI or 
                         Detector is to remain in this state."
        UNITS           "SECONDS"
    END_FIELD



    FIELD  max_duration
        TYPE            I4
        DESCRIPTION     "This field specifies the maximum time the SI or 
                         Detector is allowed to remain in this state. A value of
                         0 denotes no constraint."
        UNITS           "SECONDS"
    END_FIELD



    FIELD  unique_det
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field specifies the SI detector states which 
                         allow only one detector of a SI to be in the specified 
                         state. If this state is an unique detector state then 
                         all higher states for this detector must also be a 
                         unique detector state. This field is blank if this 
                         state is an SI state.

                         A unique detector state implies that all other 
			 detectors for this SI must be in a non-unique state."
    END_FIELD



    FIELD  override
        TYPE YES_NO_FLAG_TYPE
        DESCRIPTION     "This field specifies whether this state definition is 
                         an override of a standard state definition. This field
                         is not used."
    END_FIELD



    FIELD  standard_id
        TYPE            C8
        DESCRIPTION     "This field specifies the standard state id that 
                         corresponds to this overriden state. This field is
                         blank if this a standard state (i.e. override = N)."
    END_FIELD



    FIELD  pdb_record
        TYPE            I4
        DESCRIPTION     "This field is the PDB record number. This field is  
                         currently unused, and set to 0."
    END_FIELD



    FIELD  comments
        TYPE            C80
        DESCRIPTION     "This field is descriptive text describing this state."
    END_FIELD


END_RECORD


!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------


RELATION  wsistate_def

    TYPE             SISTATE_TYPE

    DESCRIPTION      "SI and Detector State Definition Relation"

    SUBSYSTEM_USING  "SPSS", "IM", "SCIOPSDB", "CCLIST"

    RELATED_FIELDS  "wsidata_def.*" "wsistate_tra.*" "wsistate_seq.*"


    INDEX  wsistate_def_1
        TYPE         unique, clustered
        FIELDS       si_name, si_det_name, state_name
    END_INDEX

END_RELATION

!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------


INSTANCE  wsistate_def

    GLOBAL

    TYPE        SISTATE_TYPE

END_INSTANCE

Go to the top.