It would be nice if one can reflect a programs state by an object diagram.
So I basically want to have state diagram but within a state it should be possible to add an object diagram reflecting the program state.
The code might look like:
@startuml
state s1 {
object o1 {
visible = "true"
}
}
state s2 {
object o1 {
visible = "false"
}
}
[*] --> s1
s1 --> s2
s2 --> s1
@enduml