Go to the bottom.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! SDDL Name:	WSI_CAL_CON.SDDL
!
! Purpose:      This SDDL file defines the WSI_CAL_CON relation.
!
! Modification History:
!
!   Date       PR       Who                       Reason
! --------   -------    ---   -------------------------------------------------
! 10/05/94   27329      NSS   Original implementation
! 11/29/95   30445      NLC   Duplicate type SI_STATE_TYPE; rename to      
!			      SI_CONFIG_STATE_TYPE
! 12/05/95   30481      MRB   Add unique index (reprise 29719)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
 
LANGUAGE	FORTRAN, SQL

INCLUDE		ZSPSS_USER_TYPES.SDDL

RECORD  SICALCON_TYPE
 
!------------------------------------------------------------------------------
!
!   RECORD INFORMATION
!
!------------------------------------------------------------------------------
 
    DESCRIPTION       "This relation is used to define Calendar Level SI 
                       Constraints. CALENDAR/ADDCAND and /DELCAND both enforce
                       these constraints after a candidate is added or deleted 
                       from a calendar.

                       The entries within this table are loaded into a C&C List
                       upon C&C List creation (CCLIST/CREATE). They are 
                       modifiable via the CCLIST/MODPARMS/SICONS command. If
                       a constraint is 'tightened', then the C&C List will be
                       placed in an 'uncorrect' state and CALENDAR/CORRECT will
                       have to be run on the C&C List.

                       Currently, only a constraint type that limits the number
                       of upward transitions on the calendar is supported.

   		       See OPR 25080 for more information."
 
!------------------------------------------------------------------------------
!
!   FIELD INFORMATION
!
!------------------------------------------------------------------------------
 
 

    FIELD  si_name
        TYPE SI_ID_TYPE
    END_FIELD
 
 

    FIELD  si_det_name
        TYPE SI_DETECTOR_TYPE
    END_FIELD
 
 

    FIELD  state_name
        TYPE SI_CONFIG_STATE_TYPE
	RELATED_FIELDS  "wsistate_def.state_name"
    END_FIELD
 
 

    FIELD  restrict_type
        TYPE            c32
        DESCRIPTION     "This field is the type of restriction."
        DISCRETE        "MAX_UP_TRANSITION"
    END_FIELD
 
 

    FIELD  restrict_value
        TYPE            I4
        DESCRIPTION     "This field is the magnitude of the restriction.

                         For MAX_UP_TRANSITION, this number specifies how
                         many upward transitions to this particular state
                         are allowed on the current calendar."
    END_FIELD
 
 
END_RECORD
 
 
!------------------------------------------------------------------------------
!
!   RELATION DECLARATION
!
!------------------------------------------------------------------------------
 
 
RELATION  wsi_cal_con
 
    TYPE             SICALCON_TYPE
 
    DESCRIPTION      "Calendar Level SI Constraints Relation"
 
    SUBSYSTEM_USING  "SPSS", "IM", "SCIOPSPDB", "CCLIST"

    RELATED_FIELDS  "wsistate_def.*" "wsidata_def.*"


    INDEX  wsi_cal_con_1
        TYPE         unique, clustered
        FIELDS       si_name, si_det_name, state_name, restrict_type
    END_INDEX

END_RELATION

!------------------------------------------------------------------------------
!
!   INSTANCE DECLARATION
!
!------------------------------------------------------------------------------
 
 
INSTANCE  wsi_cal_con
 
    GLOBAL
 
    TYPE        SICALCON_TYPE
 
END_INSTANCE

Go to the top.