Пример #1
0
 public override void ExecuteCore(BlueSpider.Common.Params.IParamMgr paramMgr, 
                                  BlueSpider.Common.Ports.IInputPortMgr inPortMgr, 
                                  BlueSpider.Common.Settings.ICompoundSettingsMgr settings, 
                                  BlueSpider.Common.Ports.IOutputPortMgr outPortMgr)
 {
     ExecuteCoreCalled = true;
 }
Пример #2
0
 public string Format(BlueSpider.Common.Settings.ISettingsMgr mgr)
 {
     string result = "";
     if (mgr.Values.Count > 0)
     {
         DictionaryTextFormatter dtf = new DictionaryTextFormatter();
         dtf.KeyValuePairFormat = SettingFormat;
         dtf.SeparatorFormat = SeparatorFormat;
         result = dtf.Format(mgr.Values);
     }
     return result;
 }
Пример #3
0
 public string Format(BlueSpider.Common.Ports.IOutputPortMgr mgr)
 {
     StringBuilder sb = new StringBuilder();
     if (mgr != null && mgr.Count > 0)
     {
         int ctr = 0;
         foreach (IOutputPort port in mgr)
         {
             sb.Append(string.Format(PortFormat, ctr++, port.ContentType, port.OutputStatus));
             sb.Append(SeparatorFormat);
         }
     }
     return sb.ToString();
 }
 private void DisplayDetails(BlueSpider.Blob.Common.Data.IFrame frame, StringBuilder sb)
 {
     sb.AppendLine(string.Format("Id:  {0}", frame.Id));
     sb.AppendLine(string.Format("Name:  \"{0}\"", frame.Name));
     sb.AppendLine(string.Format("Rows:  {0}", frame.RowCount));
     sb.AppendLine(string.Format("Columns:  {0}", frame.ColumnCount));
     if (frame.ColumnCount > 0)
     {
         for (int i = 0; i < frame.ColumnTypes.Length; i++)
         {
             sb.AppendLine(string.Format("    [{0}]:  \"{1}\", type:  {2}", i, frame.ColumnNames[i], frame.ColumnTypes[i].Name));
         }
     }
 }
Пример #5
0
 public string Format(BlueSpider.Common.Ports.IInputPortMgr mgr)
 {
     StringBuilder sb = new StringBuilder();
     if (mgr != null)
     {
         IInputPort port = null;
         for (int i = 0; i < mgr.Count; i++ )
         {
             port = mgr[i];
             sb.Append(string.Format(PortFormat, i, port.ContentType, port.IncomingStatus));
             sb.Append(SeparatorFormat);
         }
     }
     return sb.ToString();
 }
Пример #6
0
        public RandomNetGenParamsCtrl(Guid ownerId, BlueSpider.Element.Standard.RandomGenerators.Params.IRandomNetGenParamBag bag)
        {
            InitializeComponent();
            nudNodeCount.Maximum = 10000;
            nudEdgeCount.Maximum = 100000;
            Id = Guid.NewGuid();
            ElementOwnerId = ownerId;
            cmBxStructure.Items.Add(BlueSpider.Blob.Common.NetworkStructure.AdjacencyList);
            cmBxStructure.Items.Add(BlueSpider.Blob.Common.NetworkStructure.Matrix);
            cmBxStructure.SelectedIndex = 0;

            if (bag != null)
            {
                // keep local copies of names
                _NodeCountParamName = bag.NodeCountName;
                _EdgeCountParamName = bag.EdgeCountName;
                _IsDirectedParamName = bag.IsDirectedName;
                _NetworkNameParamName = bag.NetworkNameName;
                _AllowCyclesParamName = bag.AllowCyclesName;
                _AllowSelfLoopsParamName = bag.AllowSelfLoopsName;
                _AllowMultiEdgesParamName = bag.AllowMultiEdgesName;

                // init local copies of defaults
                _NodeCountDefault = bag.NodeCountDefault;
                _EdgeCountDefault = bag.EdgeCountDefault;
                _IsDirectedDefault = bag.IsDirectedDefault;
                _NetworkNameDefault = bag.NetworkNameDefault;
                _AllowCyclesDefault = bag.AllowCyclesDefault;
                _AllowSelfLoopsDefault = bag.AllowSelfLoopsDefault;
                _AllowMultiEdgesDefault = bag.AllowMultiEdgesDefault;

                // initialize last values
                LastNodeCount = bag.NodeCountValue;
                LastEdgeCount = bag.EdgeCountValue;
                LastIsDirected = bag.IsDirectedValue;
                LastNetworkName = bag.NetworkNameValue;
                LastAllowCycles = bag.AllowCyclesValue;
                LastAllowSelfLoops = bag.AllowSelfLoopsValue;
                LastAllowMultiEdges = bag.AllowMultiEdgesValue;

                // set properties to last values
                SetValuesToLastValues();
            }
        }
Пример #7
0
 /// <summary>
 /// See <see cref="BlueSpider.CommonViews.ISetElementTemplate"/> for a description.
 /// </summary>
 public void SetTemplate(BlueSpider.Common.Elements.IElementTemplate template)
 {
     ElementName = template.Definition.ElementName;
 }
Пример #8
0
 public void Insert(int index, BlueSpider.Common.Pipes.INeutralPipe item)
 {
     if (item != null)
     {
         OnConnectionChanging(new ConnectionChangingEventArgs(ConnectionAction.Add));
         _pipes.Insert(index, item);
         OnConnectionChanged(new ConnectionChangedEventArgs(ConnectionAction.Add));
     }
 }
Пример #9
0
 public bool Remove(BlueSpider.Common.Pipes.INeutralPipe item)
 {
     bool result = false;
     if (item != null)
     {
         OnConnectionChanging(new ConnectionChangingEventArgs(ConnectionAction.Delete));
         result = _pipes.Remove(item);
         if (result)
             OnConnectionChanged(new ConnectionChangedEventArgs(ConnectionAction.Delete));
     }
     return result;
 }
Пример #10
0
 public void CopyTo(BlueSpider.Common.Pipes.INeutralPipe[] array, int arrayIndex)
 {
     _pipes.CopyTo(array, arrayIndex);
 }
Пример #11
0
 public int IndexOf(BlueSpider.Common.Pipes.INeutralPipe item)
 {
     return _pipes.IndexOf(item);
 }
Пример #12
0
 /// <summary>
 /// ** Internal Use Only**  Sets the member value.  This allows for mocking
 /// </summary>
 internal void SetNetwork(BlueSpider.Blob.Common.Network.INetwork value)
 {
     _NetworkObj = value;
 }
Пример #13
0
 public bool Contains(BlueSpider.Common.Pipes.INeutralPipe item)
 {
     return _pipes.Contains(item);
 }
Пример #14
0
 public void Add(BlueSpider.Common.Pipes.IDataPipe item)
 {
     if (item!=null)
     {
         OnConnectionChanging(new ConnectionChangingEventArgs(ConnectionAction.Add));
         _pipes.Add(item);
         OnConnectionChanged(new ConnectionChangedEventArgs(ConnectionAction.Add));
     }
 }
Пример #15
0
 internal void _App_SelectionChanged(IApp sender, BlueSpider.Common.SelectionEventArgs ea)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #16
0
 public string Format(BlueSpider.Common.Fx.ISimpleFx fx)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #17
0
 public void SettingsChanged_DummyHandler(BlueSpider.Common.Settings.ISettings sender, BlueSpider.Common.Settings.SettingsChangedEventArgs ea)
 {
     SettingsChanged_TimesCalled++;
 }
Пример #18
0
 public void OptionsChanged_DummyHandler(BlueSpider.Common.Options.IOptions sender, BlueSpider.Common.Options.OptionsChangedEventArgs ea)
 {
     OptionsChanged_TimesCalled++;
 }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the ConnectionDeletionEventArgs class.
 /// </summary>
 /// <param name="pipe"></param>
 public ConnectionDeletionEventArgs(BlueSpider.Common.Pipes.IPipe pipe)
 {
     Pipe = pipe;
 }
Пример #20
0
 public void OptionsChanged_DummyHandlerWhichThrows(BlueSpider.Common.Options.IOptions sender, BlueSpider.Common.Options.OptionsChangedEventArgs ea)
 {
     throw new Exception("The method or operation is not implemented.");
 }