An actor is the basic structural building block for building systems with ROOM
¦¦¦
```room
// prefixes: abstract and (eventdriven, datadriven, async, sync)
ActorClass ActorName [“An eventdriven ActorClass by default”] {
Interface {
Port port1 …
SPP spp1 …
}
Structure [“Documentation”] {
usercode1 ’’‘ ’’‘
usercode2 ’’‘ ’’‘
usercode3 ’’‘ ’’’
external Port port1
Port internalPort2 …
ActorRef …
Attribute …
ServiceImplementation of spp1
Binding ...
LayerConnection ...
}
Behavior ["Documentation"] {
ctor ''' /* constructor */ '''
dtor ''' /* destructor */ '''
Operation ...
StateMachine ...
}
}
```
¦¦¦