NewBranchingNode creates a new BranchingNode
(id string)
| 128 | |
| 129 | // NewBranchingNode creates a new BranchingNode |
| 130 | func NewBranchingNode(id string) BranchingNode { |
| 131 | return BranchingNode{id: id, transitions: make(map[string][]Transition)} |
| 132 | } |
| 133 | |
| 134 | func (b *BranchingNode) ID() string { return b.id } |
| 135 | func (b *BranchingNode) AddTransition(port string, tr Transition) error { |
no outgoing calls