Serial-Communication>Caravan SIO Protocol>Properties>Events
Caravan Business Server>Help>Serial-Communication>Caravan SIO Protocol>
Properties>
Events
|
Name
|
Events
|
Syntax
|
<caravan> EVENTS: <event1> ---- <eventn> </caravan>
|
Caravan Business Server>Help>Serial-Communication>Caravan SIO Protocol>
Properties>
Actions
|
Name
|
Actions
|
Text
|
An ACTION definition defines a particular response to an event. Actions are executed in the order given whenever the system changes to a new state.
|
Syntax
|
<caravan> ACTIONS: <action1> ----- ----- <actionn>
</caravan>
|
Caravan Business Server>Help>Serial-Communication>Caravan SIO Protocol>
Properties>
States
|
Name
|
States
|
Text
|
In Caravan script, states are declared under the STATES directive. A protocol is made up of various states. Hence, to define a protocol, it is necessary to define the various states the system will assume. A state ceases to exist and a new state comes into existence when an event or a timeout occurs.
|
Syntax
|
<caravan> (1) STATES: STATENAME(TIMEOUTVAL,RETRIES)=ACTION1(ACTIONNAME),.. ACTIONn(ACTIONNAME),EVENT1(STATENAME),..EVENTn(NEXTSTATE),FINAL(NEXTSTATE),TIMEOUT(NEXTSTATE) (2) STATENAME(TIMEOUTVAL)=ACTION1(ACTIONNAME),.. ACTIONn(ACTIONNAME),EVENT1(STATENAME),..EVENTn(NEXTSTATE),FINAL(NEXTSTATE),TIMEOUT(NEXTSTATE) (3) STATENAME()=ACTION1(ACTIONNAME),.. ACTIONn(ACTIONNAME),EVENT1(STATENAME),..EVENTn(NEXTSTATE),FINAL(NEXTSTATE) </caravan>
|
Back
|
|