The state pattern seems to be a decent fit. You could model each of the nodes in your system as states. To start with, your Object would be:
確定! 回上一頁