/// <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="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="Final"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Final(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Final.FanIn, NodeDescriptor.Final.FanOut) { }
/// <summary> /// Initializes a new instance of the <see cref="GuidanceAction"/> class. /// </summary> /// <param name="stateComposer">The state composer.</param> protected GuidanceAction(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Action.FanIn, NodeDescriptor.Action.FanOut) { this.LaunchPoints = Enumerable.Empty<string>(); }
/// <summary> /// Initializes a new instance of the <see cref="Fork"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Fork(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Fork.FanIn, NodeDescriptor.Fork.FanOut) { this.LaunchPoints = Enumerable.Empty<string>(); }
/// <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> >(); }
/// <summary> /// Initializes a new instance of the <see cref="GuidanceAction"/> class. /// </summary> /// <param name="stateComposer">The state composer.</param> protected GuidanceAction(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Action.FanIn, NodeDescriptor.Action.FanOut) { this.LaunchPoints = Enumerable.Empty <string>(); }
/// <summary> /// Initializes a new instance of the <see cref="Initial"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Initial(IStateComposer stateComposer) : base(stateComposer, Cardinality.One, NodeDescriptor.Initial.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>>(); }
/// <summary> /// Initializes a new instance of the <see cref="Merge"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Merge(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Merge.FanIn, NodeDescriptor.Merge.FanOut) { this.LaunchPoints = Enumerable.Empty <string>(); }
/// <summary> /// Initializes a new instance of the <see cref="Initial"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Initial(IStateComposer stateComposer) : base(stateComposer, Cardinality.One, NodeDescriptor.Initial.FanOut) { }
/// <summary> /// Initializes a new instance of the <see cref="Final"/> class. /// </summary> /// <param name="stateComposer">The state composer to compose the node state.</param> protected Final(IStateComposer stateComposer) : base(stateComposer, NodeDescriptor.Final.FanIn, NodeDescriptor.Final.FanOut) { }