Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/main/resources/pkl/csm/Csml.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,28 @@ class OnTransitionDescription extends TransitionDescription {
event: String
}

open class GuardDescription {
class GuardDescription {
expression: Expression
}

abstract class ActionDescription {
type: Type
}

typealias Type = "invoke" | "create" | "assign" | "raise" | "timeout" | "timeoutReset" | "match"
typealias Type = "invoke"|"create"|"assign"|"raise"|"timeout"|"timeoutReset"|"match"

class AssignActionDescription extends ActionDescription {
open class AssignActionDescription extends ActionDescription {
type: Type = "assign"
variable: ContextVariableDescription
}

class CreateActionDescription extends ActionDescription {
open class CreateActionDescription extends ActionDescription {
type: Type = "create"
variable: ContextVariableDescription
isPersistent: Boolean = false
}

class InvokeActionDescription extends ActionDescription {
open class InvokeActionDescription extends ActionDescription {
type: Type = "invoke"
serviceType: String
isLocal: Boolean = false
Expand All @@ -79,30 +79,30 @@ class MatchCaseDescription {
action: ActionDescription
}

class MatchActionDescription extends ActionDescription {
open class MatchActionDescription extends ActionDescription {
type: Type = "match"
value: Expression
cases: Listing<MatchCaseDescription>
}

class RaiseActionDescription extends ActionDescription {
open class RaiseActionDescription extends ActionDescription {
type: Type = "raise"
event: EventDescription
}

class TimeoutActionDescription extends ActionDescription {
open class TimeoutActionDescription extends ActionDescription {
type: Type = "timeout"
name: String
delay: Expression
action: ActionDescription
}

class TimeoutResetActionDescription extends ActionDescription {
open class TimeoutResetActionDescription extends ActionDescription {
type: Type = "timeoutReset"
action: String
}

typealias EventChannel = "internal" | "external" | "global" | "peripheral"
typealias EventChannel = "internal"|"external"|"global"|"peripheral"

class EventDescription {
name: String
Expand Down