/// <summary>
        /// Initializes a new instance of the <see cref="Note"/> class.
        /// </summary>
        /// <param name="sender">The sender<see cref="string"/>.</param>
        /// <param name="recipient">The recipient<see cref="string"/>.</param>
        /// <param name="Out">The Out<see cref="NoteEvoker"/>.</param>
        /// <param name="In">The In<see cref="NoteEvokers"/>.</param>
        /// <param name="Params">The Params<see cref="object[]"/>.</param>
        public Note(string sender, string recipient, NoteEvoker Out, NoteEvokers In, params object[] Params)
        {
            SenderName = sender;
            Parameters = Params;

            if (recipient != null)
            {
                RecipientName = recipient;
            }

            if (Out != null)
            {
                EvokerOut = Out;
            }

            if (In != null)
            {
                EvokersIn = In;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Note"/> class.
        /// </summary>
        /// <param name="sender">The sender<see cref="Labor"/>.</param>
        /// <param name="recipient">The recipient<see cref="Labor"/>.</param>
        /// <param name="Out">The Out<see cref="NoteEvoker"/>.</param>
        /// <param name="In">The In<see cref="NoteEvokers"/>.</param>
        /// <param name="Params">The Params<see cref="object[]"/>.</param>
        public Note(Labor sender, Labor recipient, NoteEvoker Out, NoteEvokers In, params object[] Params)
        {
            Parameters = Params;

            if (recipient != null)
            {
                Recipient     = recipient;
                RecipientName = Recipient.Laborer.LaborerName;
            }

            Sender     = sender;
            SenderName = Sender.Laborer.LaborerName;

            if (Out != null)
            {
                EvokerOut = Out;
            }

            if (In != null)
            {
                EvokersIn = In;
            }
        }
 public Laborer()
 {
     input     = new Board <object>();
     output    = new Board <object>();
     EvokersIn = new NoteEvokers();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NoteBox"/> class.
 /// </summary>
 /// <param name="Recipient">The Recipient<see cref="string"/>.</param>
 public NoteBox(string Recipient)
 {
     RecipientName = Recipient;
     Evokers       = new NoteEvokers();
 }