소스 검색

Fix section about event raising

BeckmaR 8 년 전
부모
커밋
df796a65ae
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      plugins/org.yakindu.sct.doc.user/src/user-guide/statechart_language.textile

+ 11 - 2
plugins/org.yakindu.sct.doc.user/src/user-guide/statechart_language.textile

@@ -773,9 +773,18 @@ The language has the following assignment operators:
 
 h3(#raising-an-event). Raising an event
 
-An event is raised by calling a method whose name consists of the word @raise@, immediately followed by the event name, e. g. @raiseIncoming_call()@. If the event is an interface event, the name of the interface must also be appended.
+An event is raised by using the keyword @raise@, followed by the event name, e. g. @raise Incoming_call@. If the event is an interface event, the name of the interface must also be prepended as usual.
 
-###. FIXME: Add an example!
+Example:
+
+bc. 
+interface intrfc:
+  out event ev
+  
+Usage in the statechart:
+
+bc. 
+always / raise intrfc.ev 
 
 h3(#calling-an-operation). Calling an operation