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