Skip to content

Commit 5062379

Browse files
authored
feat: make action constructs extensible (#41)
1 parent 64690a8 commit 5062379

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/main/resources/pkl/csm/Csml.pkl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,28 @@ class OnTransitionDescription extends TransitionDescription {
4444
event: String
4545
}
4646

47-
open class GuardDescription {
47+
class GuardDescription {
4848
expression: Expression
4949
}
5050

5151
abstract class ActionDescription {
5252
type: Type
5353
}
5454

55-
typealias Type = "invoke" | "create" | "assign" | "raise" | "timeout" | "timeoutReset" | "match"
55+
typealias Type = "invoke"|"create"|"assign"|"raise"|"timeout"|"timeoutReset"|"match"
5656

57-
class AssignActionDescription extends ActionDescription {
57+
open class AssignActionDescription extends ActionDescription {
5858
type: Type = "assign"
5959
variable: ContextVariableDescription
6060
}
6161

62-
class CreateActionDescription extends ActionDescription {
62+
open class CreateActionDescription extends ActionDescription {
6363
type: Type = "create"
6464
variable: ContextVariableDescription
6565
isPersistent: Boolean = false
6666
}
6767

68-
class InvokeActionDescription extends ActionDescription {
68+
open class InvokeActionDescription extends ActionDescription {
6969
type: Type = "invoke"
7070
serviceType: String
7171
isLocal: Boolean = false
@@ -79,30 +79,30 @@ class MatchCaseDescription {
7979
action: ActionDescription
8080
}
8181

82-
class MatchActionDescription extends ActionDescription {
82+
open class MatchActionDescription extends ActionDescription {
8383
type: Type = "match"
8484
value: Expression
8585
cases: Listing<MatchCaseDescription>
8686
}
8787

88-
class RaiseActionDescription extends ActionDescription {
88+
open class RaiseActionDescription extends ActionDescription {
8989
type: Type = "raise"
9090
event: EventDescription
9191
}
9292

93-
class TimeoutActionDescription extends ActionDescription {
93+
open class TimeoutActionDescription extends ActionDescription {
9494
type: Type = "timeout"
9595
name: String
9696
delay: Expression
9797
action: ActionDescription
9898
}
9999

100-
class TimeoutResetActionDescription extends ActionDescription {
100+
open class TimeoutResetActionDescription extends ActionDescription {
101101
type: Type = "timeoutReset"
102102
action: String
103103
}
104104

105-
typealias EventChannel = "internal" | "external" | "global" | "peripheral"
105+
typealias EventChannel = "internal"|"external"|"global"|"peripheral"
106106

107107
class EventDescription {
108108
name: String

0 commit comments

Comments
 (0)