@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface From
Represents: source property of a transition
Usage:
Use on a subclass of Transition
and set value
to reference the representing
class of the desired vertex.
If used on class t with the value referencing class v, the following conditions must be met:
Transition
and not
Transition
itself,Vertex
and not Vertex
itself or any subclasses of Vertex
defined as inner classes of
StateMachine
,
ModelClass
or
CompositeState
,
Note: ModelClass
is a subclass of Region
.
Example:
@From(SourceState.class) @To(TargetState.class) @Trigger(SampleSignal.class)
class SampleTransition extends Transition {}
See the documentation of StateMachine
for detailed examples.
See the documentation of Model
for an overview on modeling in
JtxtUML.
StateMachine.Transition
,
To
,
Trigger
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends StateMachine.Vertex> |
value
The source vertex of the transition this annotation is used on.
|
public abstract java.lang.Class<? extends StateMachine.Vertex> value