/// <summary> /// Constructs a new node /// </summary> /// <param name="o">The object to be hoste</param> public Node(object o) { _o = o; _cp = o as ICalculationPerformer; _outPinList = new List <IOutPin>(); _inPinList = new List <IInPin>(); _inPinActualList = new Dictionary <IInPin, bool>(); Reset(); }
/// <summary> /// Constructs a new node /// </summary> /// <param name="o"></param> public Node(Object o) { _o = o; _cp = o as ICalculationPerformer; _outPinList = new List<IOutPin>(); _inPinList = new List<IInPin>(); _inPinActualList = new Dictionary<IInPin, bool>(); Reset(); }
/// <summary> /// Constructs a new node. /// </summary> /// <param name="o">The object to be hosted.</param> public Node(object o) { if (!o.GetType().IsClass) { throw new ArgumentException("Not a reference type.", nameof(o)); } _o = o; _cp = o as ICalculationPerformer; _outPinList = new List <IOutPin>(); _inPinList = new List <IInPin>(); _inPinActualList = new Dictionary <IInPin, bool>(); Reset(); }