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