Esempio n. 1
0
 public ChannelSend(ChannelSend src)
 {
     targetIndex = new IntParameter(src.targetIndex);
     targetType  = new EnumParameter <ChannelType>(src.targetType);
     level       = new DoubleParameter(src.level);
     on          = new BoolParameter(src.on);
 }
Esempio n. 2
0
 public ChannelRouting(int index)
 {
     busIndex = index;
     on       = false;
     if (index == -1)
     {
         on = true;
     }
 }
Esempio n. 3
0
 public ChannelSend(int index, ChannelType type)
 {
     targetIndex = index;
     targetType  = type;
     level       = 0;
     level.Min   = -99;
     level.Max   = 10;
     on          = true;
 }
Esempio n. 4
0
        public override void CopyValueFrom(Parameter p, bool copyMinMax = true)
        {
            IntParameter src = (IntParameter)p;

            this.value = src.value;
            if (copyMinMax)
            {
                this.max = src.max;
                this.min = src.min;
            }
            this.Enabled        = src.Enabled;
            this.MultipleValues = src.MultipleValues;
        }
Esempio n. 5
0
 public ChannelRouting(ChannelRouting src)
 {
     busIndex = new IntParameter(src.busIndex);
     on       = new BoolParameter(src.on);
 }
Esempio n. 6
0
 public IntParameter(IntParameter src) : base(src)
 {
     this.value = src.value;
     this.max   = src.max;
     this.min   = src.min;
 }