예제 #1
0
 public StatePort GetOtherPort(StatePort port)
 {
     if (object.ReferenceEquals(port, SourcePort))
     {
         return(TargetStatePort);
     }
     return(SourceStatePort);
 }
예제 #2
0
 public StateMachineTransition(StatePort source, StatePort target)
 {
     DebugUtils.Assert(!target.IsStateRootPort);
     SourceStatePort = source;
     TargetStatePort = target;
     if (!source.IsStateRootPort)
     {
         TransitionEnabledPort = new InputPort(target.Node, false)
         {
             UnconnectedValue = true
         };
     }
 }