Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
        /// <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;
        }
Exemplo n.º 3
0
 /// <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)
 {
 }
Exemplo n.º 4
0
 /// <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>();
 }
Exemplo n.º 5
0
 /// <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>();
 }
Exemplo n.º 6
0
 /// <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> >();
 }
Exemplo n.º 7
0
 /// <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>();
 }
Exemplo n.º 8
0
 /// <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)
 {
 }
Exemplo n.º 9
0
 /// <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>>();
 }
Exemplo n.º 10
0
 /// <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>();
 }
Exemplo n.º 11
0
 /// <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)
 {
 }
Exemplo n.º 12
0
 /// <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)
 {
 }