public StatePort GetOtherPort(StatePort port) { if (object.ReferenceEquals(port, SourcePort)) { return(TargetStatePort); } return(SourceStatePort); }
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 }; } }