Exemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SmartBufferDataOperation()
        {
            _arguments = new IArgument[2];

            _arguments[1]             = new ArgumentDouble("Relaxation Factor", 0, 0);
            _arguments[1].Description = "Relaxation factor used for temporal extrapolation must be in the interval [0.0,1.0]";
            _arguments[1].Caption     = "Relaxation Factor";

            _arguments[2]             = new ArgumentBool("Do Extended Data Validation", true, true);
            _arguments[2].Description = "Do extended validation. Must be \"true\" or \"false\"";
            _arguments[2].Caption     = "Do Extended Data Validation";

            _isActivated = false;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public LinearConversionDataOperation()
        {
            _arguments = new IArgument[2];

            _arguments[1]             = new ArgumentDouble("A", 1, 1);
            _arguments[1].Description = "Parameter A. Used in conversion: A*x + B";
            _arguments[1].Caption     = "A";
            _arguments[1].Value       = "1.0";

            _arguments[2]             = new ArgumentDouble("B", 0, 0);
            _arguments[2].Description = "Parameter B. Used in conversion: A*x + B";
            _arguments[2].Caption     = "B";
            _arguments[2].Value       = "0.0";

            _isActivated = false;
        }
Exemplo n.º 3
0
        public Linear(ITimeSpaceOutput itemOut, ITimeSpaceInput itemIn)
            : base(_identifer, _describable, itemOut, itemIn)
        {
            IArgument arg = new ArgumentDouble("A", 1.0)
            {
                Caption     = "A",
                Description = "A [double] in y = A*x + B"
            };

            _arguments.Add(arg);

            arg = new ArgumentDouble("B", 0.0)
            {
                Caption     = "B",
                Description = "B [double] in y = A*x + B"
            };

            _arguments.Add(arg);
        }