@startuml
!include <material/table>
!include <material/door>

left to right direction
skinparam defaultTextAlignment center

rectangle "<$ma_table>\nTable\nGenerator" as gen #LightGreen
rectangle "<$ma_door>\nGate" as gate #LightPink

interface " " as q1
interface " " as q2
interface " " as q3
interface " " as q4

q1 --> gate: input
q2 -> gate: block
gate --> q3: output
gate -u-> q4: blocked
gen --> q2: output
@enduml
