|Re: Specifying an action of a transition [message #1052963 is a reply to message #1052954]
||Wed, 01 May 2013 15:29
| Ed Willink
Registered: July 2009
IMHO the UML Expression tree was a worthy historic attempt which OCL
demonstrated to be misguided. Expressions are much too interesting to
use a naive tree.
All expressions have an associated language. For instance Fortan gives
you **. Java gives you 32 bit silent wraparound. OCL is more
polymorphic, but still very specific once you get down to the details.
If you want naive expressions, it's probably easiest to use
OpaqueExpressions with an 'GoodGuyExpression' language for which you
will write a specification.
On 01/05/2013 15:34, Goood Guy wrote:
> I want to specify an action for a transition of a state machine and I
> cannot figure out how to model it. I want to enter an expression as an
> action, for example "x=5". I found some diagrams, where exactly that
> was defined. Consider the "--key_count" operation in the following
> The "effect" attribute of a Transition can be a Behavior.
> For example Activity and OpaqueBehavior are Behaviors.
> I do not want to use Activity, because it is specified by an Operation
> or a Reception and not by an Expression.
> I do not want to use OpaqueBehavior, because I do not want to stick to
> a specific language, but to abstract arithmetic expressions.
> I would like to use org.eclipse.uml2.uml.Expression (a structured
> tree) or something similar instead.
Powered by FUDForum
. Page generated in 0.02775 seconds