Example #1
0
 public DamageDLC(string msgName)
 {
     InitKeyword();
     _msgName = msgName;
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "message")).ScalarValue   = msgName;
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "reduction")).ScalarValue = @"-1";
 }
Example #2
0
 public EcuOnOff(int offTimeInMs, int onTimeInMs, int repeat)
 {
     InitKeyword();
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "Off_Time")).ScalarValue = offTimeInMs.ToString();
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "On_Time")).ScalarValue  = onTimeInMs.ToString();
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "Repeat")).ScalarValue   = repeat.ToString();
 }
Example #3
0
        public override bool ParametersValidated()
        {
            ListDependentParameter paraInterrupt = (ListDependentParameter)DependentParameters.First(x => x.Name == "interrupt_lines");
            ListDependentParameter paraShort     = (ListDependentParameter)DependentParameters.First(x => x.Name == "short_lines");

            if ((paraInterrupt.ValueList != null) && (paraShort.ValueList != null))
            {
                if (paraInterrupt.ValueList.Count > 0 && paraShort.ValueList.Count == 2)
                {
                    return(true);
                }
            }
            else
            {
                if ((paraInterrupt.ValueList != null) && paraInterrupt.ValueList.Count > 0)
                {
                    return(true);
                }
                if ((paraShort.ValueList != null) && paraShort.ValueList.Count == 2)
                {
                    return(true);
                }
            }
            return(false);
        }
Example #4
0
 public GetSeed(int index, ObservableCollection <string> diagRequest, ObservableCollection <string> expResponse)
 {
     InitKeyword();
     _index = index;
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "Diag_Request")).ValueList = diagRequest;
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "Exp_Response")).ValueList = expResponse;
 }
Example #5
0
 public ReadFPS(ObservableCollection <string> mandatoryFaults, ObservableCollection <string> optionalFaults, ObservableCollection <string> disjuctionFaults)
 {
     InitKeyword();
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_mandatory_faults")).ValueList   = mandatoryFaults;
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_optional_faults")).ValueList    = optionalFaults;
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_disjunction_faults")).ValueList = disjuctionFaults;
 }
Example #6
0
 public override bool ParametersValidated()
 {
     if (((ListDependentParameter)DependentParameters.First(x => x.Name == "stimuli_file_name")).ValueList.All(x => x.EndsWith(".lcs", StringComparison.CurrentCultureIgnoreCase)))
     {
         return(true);
     }
     return(false);
 }
Example #7
0
        public override bool ParametersValidated()
        {
            if (((HashDependentParameter)DependentParameters.First(x => x.Name == "line_information")).KeyValuePairList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
Example #8
0
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "xflash_file_name")).ValueList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
Example #9
0
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "CAN_signals_expected")).ValueList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "Diag_Request_Continuous")).ValueList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
        public override bool ParametersValidated()
        {
            if (!String.IsNullOrEmpty(((ScalarDependentParameter)DependentParameters.First(x => x.Name == "SigNameChecksum")).Value))
            {
                return(true);
            }

            return(false);
        }
Example #12
0
        public override bool ParametersValidated()
        {
            if (((HashDependentParameter)DependentParameters.First(x => x.Name == "set_model_value_to_constant")).KeyValuePairList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
Example #13
0
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "Text_for_user")).ValueList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
        public override bool ParametersValidated()
        {
            if (((HashDependentParameter)DependentParameters.First(x => x.Name == "eval_ECU_signals")).KeyValuePairList.Count > 0)
            {
                return(true);
            }

            return(false);
        }
Example #15
0
        public override bool ParametersValidated()
        {
            if (((HashDependentParameter)DependentParameters.First(x => x.Name == "Check_CAN_signals1")).KeyValuePairList.Count == 0 &&
                ((HashDependentParameter)DependentParameters.First(x => x.Name == "Check_CAN_signals2")).KeyValuePairList.Count == 0)
            {
                return(false);
            }

            return(true);
        }
Example #16
0
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "lamp_expected")).ValueList.Count > 0)
            {
                return(true);
            }

            //throw new Exception("Liansheng Debugging");
            return(false);
        }
Example #17
0
        public override bool ParametersValidated()
        {
            ObservableCollection <string> varExp = ((ListDependentParameter)DependentParameters.First(x => x.Name == "vr_expected")).ValueList;

            if (varExp.Count > 0 && varExp.All(x => (x == "ON") || (x == "OFF")))
            {
                return(true);
            }

            return(false);
        }
Example #18
0
        public override bool ParametersValidated()
        {
            ObservableCollection <string> varExp = ((ListDependentParameter)DependentParameters.First(x => x.Name == "diag_sequences")).ValueList;

            if (varExp.Count > 0)
            {
                return(true);
            }

            return(false);
        }
Example #19
0
        public override bool ParametersValidated()
        {
            if (((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_mandatory_faults")).ValueList.Count == 0 &&
                ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_optional_faults")).ValueList.Count == 0 &&
                ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_disjunction_faults")).ValueList.Count == 0)
            {
                return(false);
            }

            return(true);
        }
Example #20
0
 public ReadFPS(ObservableCollection <string> faults, FaultType faultType)
 {
     InitKeyword();
     if (faultType == FaultType.Mandatory)
     {
         ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_mandatory_faults")).ValueList = faults;
     }
     else if (faultType == FaultType.Optional)
     {
         ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_optional_faults")).ValueList = faults;
     }
     else if (faultType == FaultType.Disjuction)
     {
         ((ListDependentParameter)DependentParameters.First(x => x.Name == "RB_disjunction_faults")).ValueList = faults;
     }
 }
 public EvalECUSignals(Dictionary <string, string> sigValuePairs)
 {
     InitKeyword();
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "Eval_ECU_signals")).KeyValuePairList = sigValuePairs;
 }
 public DisableMessage(string msgName)
 {
     InitKeyword();
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "message")).ScalarValue = msgName;
 }
Example #23
0
 public EditSignal(Dictionary <string, string> dictSigValues)
 {
     InitKeyword();
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "edit_CAN_signal")).KeyValuePairList = dictSigValues;
 }
Example #24
0
 public DoLineManipulation(ObservableCollection <string> interruptLines)
 {
     InitKeyword();
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "interrupt_lines")).ValueList = interruptLines;
 }
Example #25
0
 public MM6Start(string generation, string measurementType)
 {
     InitKeyword();
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "Measurement_Info")).KeyValuePairList["Generation"]  = generation;
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "Measurement_Info")).KeyValuePairList["MeasureType"] = measurementType;
 }
Example #26
0
 public WaitForUser(ObservableCollection <string> userComments)
 {
     InitKeyword();
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "Text_for_user")).ValueList = userComments;
 }
Example #27
0
 public CheckCanSignal(Dictionary <string, string> SignalStrategies, Dictionary <string, string> moreSignalStrategies)
 {
     InitKeyword();
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "Check_CAN_signals1")).KeyValuePairList = SignalStrategies;
     ((HashDependentParameter)DependentParameters.First(x => x.Name == "Check_CAN_signals2")).KeyValuePairList = moreSignalStrategies;
 }
 public UndoChecksumFail(string SigNameChecksum)
 {
     InitKeyword();
     ((ScalarDependentParameter)DependentParameters.First(x => x.Name == "SigNameChecksum")).ScalarValue = SigNameChecksum;
 }
Example #29
0
 public StimuliStart(ObservableCollection <string> lcsFiles)
 {
     InitKeyword();
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "stimuli_file_name")).ValueList = lcsFiles;
 }
Example #30
0
 public DoLineManipulation(ObservableCollection <string> shortLines, string dummyHolder)
 {
     InitKeyword();
     ((ListDependentParameter)DependentParameters.First(x => x.Name == "short_lines")).ValueList = shortLines;
 }