Please enjoy a mini project model with Enterprise Architect and verified by simulation using AMUSE
We want to simulate two classes: “Person” and “CardReader”.
Both should asynchronously communicate with eachother using messages (same as UML signals)
When “Person” enters state “Requesting Access” a message “CardRead” is sent to the “CardReader” sending the “CardReader” to the “AuthenticatingCard” state and subsequently to either locked or unlocked depending on the card authentication result.