Esempio n. 1
0
 public InjectCode(ICode ecuCode)
 {
     this.ecuCode           = ecuCode;
     searchParameterLocator = new DefaultParameterLocator(ecuCode);
     InitializeCodeBytes();
     InitializeParameters();
 }
Esempio n. 2
0
        public BranchParameter(ParameterType parameterType, ICode code, int indexInCode, int[] branchIndexesInCode, int branchOffsetInCode, ISearchParameterLocator searchParameterLocator)
        {
            if (code == null)
            {
                throw new ArgumentNullException("code");
            }

            this.parameterType          = parameterType;
            this.code                   = code;
            this.indexInCode            = indexInCode;
            this.branchIndexesInCode    = branchIndexesInCode;
            this.branchOffsetInCode     = branchOffsetInCode;
            this.searchParameterLocator = searchParameterLocator;
            this.converter              = new AddressValueConverter();
        }
Esempio n. 3
0
        public SearchParameter(ParameterType parameterType, ICode code, int indexInCode, ISearchParameterLocator searchParameterLocator, IParameterValueConverter <InternalRepresentation, HumanRepresentation> converter)
        {
            if (code == null)
            {
                throw new ArgumentNullException("code");
            }

            if (converter == null)
            {
                throw new ArgumentNullException("converter");
            }

            this.parameterType          = parameterType;
            this.code                   = code;
            this.indexInCode            = indexInCode;
            this.searchParameterLocator = searchParameterLocator;
            this.converter              = converter;
        }
Esempio n. 4
0
 public SearchParameter(ParameterType parameterType, ICode injectCode, int indexInCode, ISearchParameterLocator searchParameterLocator) :
     this(parameterType, injectCode, indexInCode, searchParameterLocator, new DefaultValueConverter <InternalRepresentation, HumanRepresentation>())
 {
 }