Exemplo 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);
 }
Exemplo n.º 2
0
 public ChannelRouting(int index)
 {
     busIndex = index;
     on       = false;
     if (index == -1)
     {
         on = true;
     }
 }
Exemplo n.º 3
0
 public ChannelSend(int index, ChannelType type)
 {
     targetIndex = index;
     targetType  = type;
     level       = 0;
     level.Min   = -99;
     level.Max   = 10;
     on          = true;
 }
Exemplo 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;
        }
Exemplo n.º 5
0
 public ChannelRouting(ChannelRouting src)
 {
     busIndex = new IntParameter(src.busIndex);
     on       = new BoolParameter(src.on);
 }
Exemplo n.º 6
0
 public IntParameter(IntParameter src) : base(src)
 {
     this.value = src.value;
     this.max   = src.max;
     this.min   = src.min;
 }