adgjl40112
Newbie level 5
Hi guys. I have a question that usually how to do u model elevator state.
There seems to be two kinds of ways for me. Assume it's basic simple one car system. First, cassify according to the "moving" status. For eg. it may have states like up/down/wait for request/door_open/ door_closed/ ... etc
Another one is classified according to its floor such as floor 1, floor 2, floor 3, floor 4, floor 5, ...., floor N/ and still door_open/door_closed/ ...
I just get confused that should I assign different floor different state?
I am now working on some kinds of proejct such as elevator. Need help or any advice to clearify my though. THx
There seems to be two kinds of ways for me. Assume it's basic simple one car system. First, cassify according to the "moving" status. For eg. it may have states like up/down/wait for request/door_open/ door_closed/ ... etc
Another one is classified according to its floor such as floor 1, floor 2, floor 3, floor 4, floor 5, ...., floor N/ and still door_open/door_closed/ ...
I just get confused that should I assign different floor different state?
I am now working on some kinds of proejct such as elevator. Need help or any advice to clearify my though. THx