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"; }
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(); }
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); }
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; }
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; }
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); }
public override bool ParametersValidated() { if (((HashDependentParameter)DependentParameters.First(x => x.Name == "line_information")).KeyValuePairList.Count > 0) { return(true); } return(false); }
public override bool ParametersValidated() { if (((ListDependentParameter)DependentParameters.First(x => x.Name == "xflash_file_name")).ValueList.Count > 0) { return(true); } return(false); }
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); }
public override bool ParametersValidated() { if (((HashDependentParameter)DependentParameters.First(x => x.Name == "set_model_value_to_constant")).KeyValuePairList.Count > 0) { return(true); } return(false); }
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); }
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); }
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); }
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); }
public override bool ParametersValidated() { ObservableCollection <string> varExp = ((ListDependentParameter)DependentParameters.First(x => x.Name == "diag_sequences")).ValueList; if (varExp.Count > 0) { return(true); } return(false); }
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); }
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; }
public EditSignal(Dictionary <string, string> dictSigValues) { InitKeyword(); ((HashDependentParameter)DependentParameters.First(x => x.Name == "edit_CAN_signal")).KeyValuePairList = dictSigValues; }
public DoLineManipulation(ObservableCollection <string> interruptLines) { InitKeyword(); ((ListDependentParameter)DependentParameters.First(x => x.Name == "interrupt_lines")).ValueList = interruptLines; }
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; }
public WaitForUser(ObservableCollection <string> userComments) { InitKeyword(); ((ListDependentParameter)DependentParameters.First(x => x.Name == "Text_for_user")).ValueList = userComments; }
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; }
public StimuliStart(ObservableCollection <string> lcsFiles) { InitKeyword(); ((ListDependentParameter)DependentParameters.First(x => x.Name == "stimuli_file_name")).ValueList = lcsFiles; }
public DoLineManipulation(ObservableCollection <string> shortLines, string dummyHolder) { InitKeyword(); ((ListDependentParameter)DependentParameters.First(x => x.Name == "short_lines")).ValueList = shortLines; }