本文整理汇总了Java中org.eclipse.uml2.uml.ActivityFinalNode类的典型用法代码示例。如果您正苦于以下问题:Java ActivityFinalNode类的具体用法?Java ActivityFinalNode怎么用?Java ActivityFinalNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ActivityFinalNode类属于org.eclipse.uml2.uml包,在下文中一共展示了ActivityFinalNode类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateNodesToBeAdded
import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/**
* Returns the types of nodes that are to be added
* @return Returns the types of nodes that are to be added
*/
private List<java.lang.Class<? extends Element>> generateNodesToBeAdded() {
List<java.lang.Class<? extends Element>> nodes = new LinkedList<>(Arrays.asList(
AcceptEventAction.class,
Activity.class,
ActivityFinalNode.class,
AddStructuralFeatureValueAction.class,
AddVariableValueAction.class,
BroadcastSignalAction.class,
CallBehaviorAction.class,
CallOperationAction.class,
CreateObjectAction.class,
DecisionNode.class,
DestroyObjectAction.class,
FinalNode.class,
FlowFinalNode.class,
ForkNode.class,
InitialNode.class,
JoinNode.class,
MergeNode.class,
OpaqueAction.class,
ReadSelfAction.class,
ReadStructuralFeatureAction.class,
ReadVariableAction.class,
SendObjectAction.class,
SendSignalAction.class,
ValueSpecificationAction.class
));
if(PreferencesManager.getBoolean(PreferencesManager.ACTIVITY_DIAGRAM_COMMENT_PREF))
nodes.add(Comment.class);
return nodes;
}
示例2: isFinal
import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/**
* Is the action a final action (i.e. followed by an ActivityFinalNode)?
*/
public static boolean isFinal(Action toCheck) {
for (ActivityEdge outgoing : toCheck.getOutgoings())
if (outgoing.getTarget() instanceof ActivityFinalNode)
return true;
return false;
}
示例3: makeFinal
import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/** Makes an action a final action (i.e. followed by an ActivityFinalNode). */
public static void makeFinal(StructuredActivityNode block, Action lastAction) {
ActivityFinalNode finalNode = (ActivityFinalNode) block.createNode(null,
UMLPackage.Literals.ACTIVITY_FINAL_NODE);
ControlFlow controlFlow = (ControlFlow) block.createEdge(null, UMLPackage.Literals.CONTROL_FLOW);
controlFlow.setSource(lastAction);
controlFlow.setTarget(finalNode);
}
示例4: getFinalAction
import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
public static Action getFinalAction(StructuredActivityNode startingPoint) {
ActivityFinalNode finalNode = (ActivityFinalNode) ActivityUtils.findNode(startingPoint,
new MDDUtil.EClassMatcher(Literals.ACTIVITY_FINAL_NODE));
if (finalNode == null)
return null;
return getControlSource(finalNode);
}
示例5: createFinalNode
import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
public ActivityFinalNode createFinalNode(String name) {
return (ActivityFinalNode) createNode(name, UMLPackage.Literals.ACTIVITY_FINAL_NODE);
}