コード例 #1
0
 public bool setModeOUT_AsString( string  v)
 {
     acceptor.ST_MODE  temp = acceptor.StringTo_Enum_ST_MODE(v);
     if (temp >= 0){
       aModeOUT = temp;
       __setDirty(true);
       NotifyControllers(null);
       return true;
     } // If
     return false;
 }
コード例 #2
0
 public Step()
 {
     Step obj = this;
     aTCS_Order=(0);
     aDistance=(0);
     aDescription=(null);
     aObsoleteComment=(null);
     aUserComment=(null);
     aIO=(0);
     aInterface=(0);
     aLevelIN=(0);
     aLevelOUT=(0);
     aModeIN=(0);
     aModeOUT=(0);
     aTranslationRequired=(false);
     aTranslated=(false);
     aSubSteps=(null);
     aMessages=(null);
 }
コード例 #3
0
 public void setModeOUT(acceptor.ST_MODE v)
 {
     aModeOUT = v;
       __setDirty(true);
       NotifyControllers(null);
 }
コード例 #4
0
        /// <summary>
        ///     Takes the enum provided and returns the corresponding Mode enum
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        private string format_mode(acceptor.ST_MODE mode)
        {
            string retVal = "";

            switch (mode)
            {
            case acceptor.ST_MODE.Mode_FS:
                retVal = "ModeEnum.FS";
                break;

            case acceptor.ST_MODE.Mode_IS:
                retVal = "ModeEnum.IS";
                break;

            case acceptor.ST_MODE.Mode_LS:
                retVal = "ModeEnum.LS";
                break;

            case acceptor.ST_MODE.Mode_NA:
                retVal = "ModeEnum.NA";
                break;

            case acceptor.ST_MODE.Mode_NL:
                retVal = "ModeEnum.NL";
                break;

            case acceptor.ST_MODE.Mode_NP:
                retVal = "ModeEnum.NP";
                break;

            case acceptor.ST_MODE.Mode_OS:
                retVal = "ModeEnum.OS";
                break;

            case acceptor.ST_MODE.Mode_PSH:
                retVal = "ModeEnum.PSH";
                break;

            case acceptor.ST_MODE.Mode_PT:
                retVal = "ModeEnum.PT";
                break;

            case acceptor.ST_MODE.Mode_RE:
                retVal = "ModeEnum.RE";
                break;

            case acceptor.ST_MODE.Mode_SB:
                retVal = "ModeEnum.SB";
                break;

            case acceptor.ST_MODE.Mode_SF:
                retVal = "ModeEnum.SF";
                break;

            case acceptor.ST_MODE.Mode_SH:
                retVal = "ModeEnum.SH";
                break;

            case acceptor.ST_MODE.Mode_SL:
                retVal = "ModeEnum.SL";
                break;

            case acceptor.ST_MODE.Mode_SN:
                retVal = "ModeEnum.SN";
                break;

            case acceptor.ST_MODE.Mode_SR:
                retVal = "ModeEnum.SR";
                break;

            case acceptor.ST_MODE.Mode_TR:
                retVal = "ModeEnum.TR";
                break;

            case acceptor.ST_MODE.Mode_UN:
                retVal = "ModeEnum.UF";
                break;

            default:
                retVal = "ModeEnum.Unknown";
                break;
            }

            return(retVal);
        }