Esempio n. 1
0
 /// <summary>
 /// Add new DataTable to existing DataSet
 /// </summary>
 /// <param name="dataSet"></param>
 public new void AddWatchTable(ref DataSet dataSet, string tableName = "")
 {
     dataSet.Tables.Add(this.DataTable(tableName));
     dataSet.Tables.Add(ProximalSegment.DataTable(tableName));              //not sure if necc
     dataSet.Tables.Add(InputSource.DataTable(tableName));                  //not sure if necc
     base.AddWatchTable(ref dataSet, tableName);
 }
Esempio n. 2
0
        /// <summary>
        /// Object's identification string based on it's position within parent.
        /// Used primarly in Watch.
        /// </summary>
        /// <returns></returns>
        public new string ID()
        {
            string str = "";

            //str = String.Format ( "Synapse [" + Parent.ID () + "]" );
            str = String.Format("ProximalSynapse[{0}]", ProximalSegment.ID());
            return(str);
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProximalSynapse"/> class and 
        /// sets its input source and initial permanance values.
        /// </summary>
        /// <param name="proximalSeg">
        /// </param>
        /// <param name="inputSource">
        /// An <see cref="InputCell"/> providing source of the input to this synapse.
        /// </param>
        /// <param name="permanence">Initial permanence value.</param>
        internal ProximalSynapse(ProximalSegment proximalSeg, InputCell inputSource, float permanence)
        {
            // Set fields
            this.ProximalSegment = proximalSeg;
            this.InputSource = inputSource;
            this.Permanence = permanence;

            SelectablelType = SelectableObjectType.ProximalSynapse;
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProximalSynapse"/> class and
        /// sets its input source and initial permanance values.
        /// </summary>
        /// <param name="proximalSeg">
        /// </param>
        /// <param name="inputSource">
        /// An <see cref="InputCell"/> providing source of the input to this synapse.
        /// </param>
        /// <param name="permanence">Initial permanence value.</param>
        internal ProximalSynapse(ProximalSegment proximalSeg, InputCell inputSource, float permanence)
        {
            // Set fields
            this.ProximalSegment = proximalSeg;
            this.InputSource     = inputSource;
            this.Permanence      = permanence;

            SelectablelType = SelectableObjectType.ProximalSynapse;
        }