...
| Code Block | ||
|---|---|---|
| ||
if (ALH.inState(ccobj, "Operating")) {
force=ccForce
} else {
force = acc*2
} |
...
| Info | ||
|---|---|---|
| ||
Alternatively, you can use ALH API through the fUML object syntax, with object.inState(stateName). For example:
|
...
| Code Block | ||
|---|---|---|
| ||
if (ALH.inState(ccobj, "Operating")) {
force=ccForce
} else {
force = acc*2
} |
...
| Info | ||
|---|---|---|
| ||
Alternatively, you can use ALH API through the fUML object syntax, with object.inState(stateName). For example:
|