Exemplo n.º 1
0
        public void ResetTimeOut(LQHsm sm)
        {
            switch (_callType)
            {
            case GQHSMCallType.TIMEOUT_TIMESPAN:
                if (Duration.TotalMilliseconds == 0.0)
                {
                    sm.SetTimeOut(_name, Duration, _event);
                }
                break;

            case GQHSMCallType.TIMEOUT_TIMESPAN_TYPE:
                if (Duration.TotalMilliseconds == 0.0)
                {
                    sm.SetTimeOut(_name, Duration, _event, _type);
                }
                break;
            }
        }
Exemplo n.º 2
0
        public void SetTimeOut(LQHsm sm)
        {
            switch (_callType)
            {
            case GQHSMCallType.TIMEOUT_TIMESPAN:
                sm.SetTimeOut(_name, Duration, _event);
                break;

            case GQHSMCallType.TIMEOUT_TIMESPAN_TYPE:
                sm.SetTimeOut(_name, Duration, _event, _type);
                break;

            case GQHSMCallType.TIMEOUT_DATETIME:
                sm.SetTimeOut(_name, At, _event);
                break;

            case GQHSMCallType.TIMEOUT_DATETIME_TYPE:
                sm.SetTimeOut(_name, At, _event, _type);
                break;
            }
        }