/// <summary> /// Initializes a new instance of the <see cref="Node"/> class. /// </summary> /// <param name="stateComposer">The strategy to compose the state of this node from the predecessors state.</param> /// <param name="fanIn">The input cardinality of this predecessor.</param> /// <param name="fanOut">The output cardinality of this predecessor.</param> protected Node(IStateComposer stateComposer, Cardinality fanIn, Cardinality fanOut) { Guard.NotNull(() => stateComposer, stateComposer); this.StateComposer = stateComposer; this.fanIn = fanIn; this.fanOut = fanOut; }
/// <summary> /// Initializes a new instance of the <see cref="ConditionalNode"/> class. /// </summary> /// <param name="stateComposer">The strategy to compose the state of this node from the predecessors state.</param> /// <param name="fanIn">The input cardinality of this predecessor.</param> /// <param name="fanOut">The output cardinality of this predecessor.</param> protected ConditionalNode(IStateComposer stateComposer, Cardinality fanIn, Cardinality fanOut) : base(stateComposer, fanIn, fanOut) { this.Preconditions = new List<IBinding<ICondition>>(); this.Postconditions = new List<IBinding<ICondition>>(); }