Online Store Application Design - continue
Finite State Machine for Store IC
S10 : initial state. Upon receiving “
Search for Availability” message, it will
change to S11.
S11 : At this state, action performed is
to search its’ database to see whether the order is available or not. Outputs search
results to
both company
IC and store IC.
S12 : When receives “Available” message,
it changes from S11 to S12. If the order is not
available, it returns to the initial state.
S13 : At S12 state, it will
change to S13 upon receiving “deliver” message. Action performed is
to deliver the order to the customer IC.
Outputs “ Already Deliver” to the company IC.