Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="startValue">The start value.</param>
 /// <param name="increment">The increment.</param>
 /// <param name="maxValue">The max value.</param>
 /// <param name="minValue">The min value.</param>
 /// <param name="isCyclic">The is cyclic.</param>
 public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment, long?maxValue, long?minValue, bool?isCyclic)
 {
     StartValue    = startValue;
     Increment     = increment;
     this.maxValue = maxValue;
     this.minValue = minValue;
     this.isCyclic = isCyclic;
 }
 //calls sequenceable traits that have a matching index
 public void CallInSequence(int order)
 {
     TraitBase[] tempTraits = GetArray();
     for (int i = 0; i < tempTraits.Length; i++)
     {
         if (tempTraits[i] is ISequenceable)
         {
             ISequenceable sequenceable = (ISequenceable)tempTraits[i];
             sequenceable.CallInSequence(order);
         }
     }
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="startValue">The start value.</param>
 /// <param name="increment">The increment.</param>
 /// <param name="maxValue">The max value.</param>
 /// <param name="minValue">The min value.</param>
 public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment, long?maxValue, long?minValue)
     : this(owner, startValue, increment, maxValue, minValue, null)
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="startValue">The start value.</param>
 /// <param name="increment">The increment.</param>
 public SequenceDescriptor(ISequenceable owner, long?startValue, long?increment)
     : this(owner, startValue, increment, null, null, null)
 {
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 /// <param name="startValue">The start value.</param>
 public SequenceDescriptor(ISequenceable owner, long?startValue)
     : this(owner, startValue, null, null, null, null)
 {
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceDescriptor"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 public SequenceDescriptor(ISequenceable owner)
 {
     this.owner = owner;
 }
Пример #7
0
 public JoinedSequenceable(ISequenceable source)
 {
     this.source = source;
 }
Пример #8
0
 private Sequence Append(ISequenceable sequenceable)
 {
     queue.AddLast(sequenceable);
     return(this);
 }