Exemple #1
0
 public bool Equals(StateVector <T> other)
 {
     return(this.Source.Equals(other.Source) &&
            this.Destination.Equals(other.Destination));
 }
Exemple #2
0
 public StateContext(IStateMachine machine, IStateDiagram <TKey, TValue> diagram, TKey key, StateVector <TValue> state, string description)
 {
     this.Machine     = machine ?? throw new ArgumentNullException(nameof(machine));
     this.Diagram     = diagram ?? throw new ArgumentNullException(nameof(diagram));
     this.Key         = key;
     this.State       = state;
     this.Description = description;
     this.Parameters  = new ParameterCollection(machine);
 }
Exemple #3
0
 public bool Equals(StateVector <T> other)
 {
     return(this.Origin.Equals(other.Origin) &&
            this.Destination.Equals(other.Destination));
 }