Example #1
0
 /// <summary>
 /// Creates the DeMIMOI_Delegate object
 /// </summary>
 /// <param name="input_port">Input port that describes the input of the model</param>
 /// <param name="output_port">Output port that describes the output of the model</param>
 /// <param name="update_delegate">Delegate function to call when the model has to be updated</param>
 public DeMIMOI_Delegate(DeMIMOI_Port input_port, DeMIMOI_Port output_port, DeMIMOI_UpdateDelegate update_delegate)
     : base(input_port, output_port)
 {
     Initialize(input_port, output_port, update_delegate);
 }
Example #2
0
        /// <summary>
        /// Initialize the DeMIMOI_Delegate object
        /// </summary>
        /// <param name="input_port">Input port that describes the input of the model</param>
        /// <param name="output_port">Output port that describes the output of the model</param>
        /// <param name="update_delegate">Delegate function to call when the model has to be updated</param>
        private void Initialize(DeMIMOI_Port input_port, DeMIMOI_Port output_port, DeMIMOI_UpdateDelegate update_delegate)
        {
            ID = AllocNewId();
            Name = GetType().Name + "_" + ID;

            UpdateDelegate = update_delegate;
        }