Пример #1
0
        public static MidInterpreter UsePLCUserDataMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(PLCUserData.IPLCUserData)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IPLCUserData interface");
            }

            midInterpreter.UseTemplate <PLCUserData.PLCUserDataMessages>(mids);
            return(midInterpreter);
        }
Пример #2
0
        public static MidInterpreter UseMultiSpindleMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(MultiSpindle.IMultiSpindle)))
            {
                throw new ArgumentException($"Types should inherit Mid class and implement IMultiSpindle interface");
            }

            midInterpreter.UseTemplate <MultiSpindle.MultiSpindleMessages>(mids);
            return(midInterpreter);
        }
Пример #3
0
        public static MidInterpreter UseAutomaticManualModeMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(AutomaticManualMode.IAutomaticManualMode)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IAutomaticManualMode interface");
            }

            midInterpreter.UseTemplate <AutomaticManualMode.AutomaticManualModeMessages>(mids);
            return(midInterpreter);
        }
Пример #4
0
        public static MidInterpreter UseVinMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(Vin.IVin)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IVin interface");
            }

            midInterpreter.UseTemplate <Vin.VinMessages>(mids);
            return(midInterpreter);
        }
Пример #5
0
        public static MidInterpreter UseApplicationToolLocationSystemMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(ApplicationToolLocationSystem.IApplicationToolLocationSystem)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IApplicationToolLocationSystem interface");
            }

            midInterpreter.UseTemplate <ApplicationToolLocationSystem.ApplicationToolLocationSystemMessages>(mids);
            return(midInterpreter);
        }
Пример #6
0
        public static MidInterpreter UseAdvancedJobMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(Job.Advanced.IAdvancedJob)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IAdvancedJob interface");
            }

            midInterpreter.UseTemplate <Job.Advanced.AdvancedJobMessages>(mids);
            return(midInterpreter);
        }
Пример #7
0
        public static MidInterpreter UseOpenProtocolCommandsDisabledMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (!IsValid(mids, typeof(OpenProtocolCommandsDisabled.IOpenProtocolCommandsDisabled)))
            {
                throw new ArgumentException($"Types should inherit Mid class and must implement IOpenProtocolCommandsDisabled interface");
            }

            midInterpreter.UseTemplate <OpenProtocolCommandsDisabled.OpenProtocolCommandsDisabledMessages>(mids);
            return(midInterpreter);
        }
Пример #8
0
        public static MidInterpreter UseAlarmMessages(this MidInterpreter midInterpreter, IEnumerable <Type> mids)
        {
            if (mids.Any())
            {
                if (!IsValid(mids, typeof(Alarm.IAlarm)))
                {
                    throw new ArgumentException($"Types should inherit Mid class and must implement IAlarm interface");
                }

                midInterpreter.UseTemplate <Alarm.AlarmMessages>(mids);
            }
            return(midInterpreter);
        }
Пример #9
0
 public static MidInterpreter UseApplicationSelectorMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <ApplicationSelector.ApplicationSelectorMessages>(mode);
     return(midInterpreter);
 }
Пример #10
0
 public static MidInterpreter UseAutomaticManualModeMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <AutomaticManualMode.AutomaticManualModeMessages>(mode);
     return(midInterpreter);
 }
Пример #11
0
 public static MidInterpreter UseAlarmMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Alarm.AlarmMessages>(mode);
     return(midInterpreter);
 }
Пример #12
0
 public static MidInterpreter UseTighteningMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Tightening.TighteningMessages>(mode);
     return(midInterpreter);
 }
Пример #13
0
 public static MidInterpreter UseUserInterfaceMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <UserInterface.UserInterfaceMessages>(mode);
     return(midInterpreter);
 }
Пример #14
0
 public static MidInterpreter UseResultMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Result.ResultMessages>(mode);
     return(midInterpreter);
 }
Пример #15
0
 public static MidInterpreter UseStatisticMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Statistic.StatisticMessages>(mode);
     return(midInterpreter);
 }
Пример #16
0
 public static MidInterpreter UseCommunicationMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Communication.CommunicationMessages>(mode);
     return(midInterpreter);
 }
Пример #17
0
 public static MidInterpreter UsePowerMACSMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <PowerMACS.PowerMACSMessages>(mode);
     return(midInterpreter);
 }
Пример #18
0
 public static MidInterpreter UseParameterSetMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <ParameterSet.ParameterSetMessages>(mode);
     return(midInterpreter);
 }
Пример #19
0
 public static MidInterpreter UsePLCUserDataMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <PLCUserData.PLCUserDataMessages>(mode);
     return(midInterpreter);
 }
Пример #20
0
 public static MidInterpreter UseApplicationToolLocationSystemMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <ApplicationToolLocationSystem.ApplicationToolLocationSystemMessages>(mode);
     return(midInterpreter);
 }
Пример #21
0
 public static MidInterpreter UseOpenProtocolCommandsDisabledMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <OpenProtocolCommandsDisabled.OpenProtocolCommandsDisabledMessages>(mode);
     return(midInterpreter);
 }
Пример #22
0
 public static MidInterpreter UseAdvancedJobMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <Job.Advanced.AdvancedJobMessages>(mode);
     return(midInterpreter);
 }
Пример #23
0
 public static MidInterpreter UseMultiSpindleMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <MultiSpindle.MultiSpindleMessages>(mode);
     return(midInterpreter);
 }
Пример #24
0
 public static MidInterpreter UseMultipleIdentifiersMessages(this MidInterpreter midInterpreter, InterpreterMode mode = InterpreterMode.Both)
 {
     midInterpreter.UseTemplate <MultipleIdentifiers.MultipleIdentifierMessages>(mode);
     return(midInterpreter);
 }