protected IMappingEntry Factory_IMappingEntry_MapsIdenticalMidiMsgRanges(
            MssMsgType msgType,
            int chanRangeBottom, int chanRamgeTop,
            int paramRangeBottom, int paramRangeTop)
        {
            MssMsgRange inMsgRange = new MssMsgRange();

            inMsgRange.InitPublicMembers(msgType, chanRangeBottom, chanRamgeTop, paramRangeBottom, paramRangeTop);

            MssMsgRange outMsgRange = new MssMsgRange();

            outMsgRange.InitPublicMembers(msgType, chanRangeBottom, chanRamgeTop, paramRangeBottom, paramRangeTop);

            IMappingEntry mapEntry = new MappingEntry();

            mapEntry.InMssMsgRange      = inMsgRange;
            mapEntry.OutMssMsgRange     = outMsgRange;
            mapEntry.OverrideDuplicates = DEFAULT_OVERRIDE_DUPLICATES;

            CurveShapeInfo curveInfo = new CurveShapeInfo();

            curveInfo.InitWithDefaultValues();
            mapEntry.CurveShapeInfo = curveInfo;

            return(mapEntry);
        }
Beispiel #2
0
        public void InitAllMembers(IMssMsgRange inMsgRange, IMssMsgRange outMsgRange,
                                   bool overrideDuplicates, CurveShapeInfo curveShapeInfo,
                                   GenEntryConfigInfo generatorConfigInfo)
        {
            this.GenConfigInfo = generatorConfigInfo;

            InitAllMembers(inMsgRange, outMsgRange, overrideDuplicates, curveShapeInfo);
        }
Beispiel #3
0
 public void InitAllMembers(IMssMsgRange inMsgRange, IMssMsgRange outMsgRange,
                            bool overrideDuplicates, CurveShapeInfo curveShapeInfo)
 {
     this.InMssMsgRange      = inMsgRange;
     this.OutMssMsgRange     = outMsgRange;
     this.OverrideDuplicates = overrideDuplicates;
     this.CurveShapeInfo     = curveShapeInfo;
 }
 public IReturnStatus <CurveShapeInfo> GetCopyOfCurveShapeInfoById(int id)
 {
     lock (MssComponentHub.criticalSectioinLock)
     {
         MappingEntryType matchingEntry = GetMappingEntryById(id);
         if (matchingEntry == null)
         {
             return(new ReturnStatus <CurveShapeInfo>());
         }
         else
         {
             CurveShapeInfo curveInfoClone = matchingEntry.CurveShapeInfo.Clone();
             return(new ReturnStatus <CurveShapeInfo>(curveInfoClone));
         }
     }
 }
        public void InitAllMembers(IMssMsgRange inMsgRange, IMssMsgRange outMsgRange,
            bool overrideDuplicates, CurveShapeInfo curveShapeInfo,
            GenEntryConfigInfo generatorConfigInfo)
        {
            this.GenConfigInfo = generatorConfigInfo;

            InitAllMembers(inMsgRange, outMsgRange, overrideDuplicates, curveShapeInfo);
        }
 static MssMsgProcessorTest()
 {
     DEFAULT_CURVE_SHAPE_INFO = new CurveShapeInfo();
     DEFAULT_CURVE_SHAPE_INFO.InitWithDefaultValues();
 }
 public void InitAllMembers(IMssMsgRange inMsgRange, IMssMsgRange outMsgRange,
     bool overrideDuplicates, CurveShapeInfo curveShapeInfo)
 {
     this.InMssMsgRange = inMsgRange;
     this.OutMssMsgRange = outMsgRange;
     this.OverrideDuplicates = overrideDuplicates;
     this.CurveShapeInfo = curveShapeInfo;
 }
Beispiel #8
0
 static MssMsgProcessorTest()
 {
     DEFAULT_CURVE_SHAPE_INFO = new CurveShapeInfo();
     DEFAULT_CURVE_SHAPE_INFO.InitWithDefaultValues();
 }