Examples of InitialNode


Examples of org.eclipse.uml2.uml.InitialNode

   
    // identify initial nodes
    Set<InitialNode> initialNodes = activityDec.getInitialNodes();
    if (initialNodes.size() == 0) throw new AnalysisException("No initial node defined for activity : " + activity.getQualifiedName());
    if (initialNodes.size() > 1) throw new AnalysisException("Multiple initial nodes defined for activity : " + activity.getQualifiedName());
    InitialNode initialNode = initialNodes.iterator().next();
   
    // create a branch explorer for each initial node
    ExecutionNode rootNode = new ExecutionNode(initialNode, 1d);
    ExecutionTree tree = new ExecutionTree(activity, rootNode);
   
View Full Code Here

Examples of org.ontospread.gui.view.nodes.spread.InitialNode

    Node root = new PrintNode( ApplicationResources.getString("info.node.root"));
    Node initialRoot = new PrintNode( ApplicationResources.getString("initial.node.root"));
    Map<String, Double> concepts = ontoSpreadState.getConcepts();
    for (ScoredConceptTO initialConcept : ontoSpreadState.getInitialConcepts()) {
      ConceptTO conceptTO = ontologyDAO.getConceptTO(initialConcept.getConceptUri());
      Node node = new InitialNode(formatActivation(conceptTO.getName(),concepts.get(conceptTO.getUri())),conceptTO.getUri());
      edges.add(new LineEdge(initialRoot,node));
      nodes.add(node);
    }

    Node spreadedRoot = new PrintNode( ApplicationResources.getString("initial.node.spreaded"));
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

      int n = entries.size();
      for (int i = 0; i < n; ++i)
      {
        ProcessEntry entry = (ProcessEntry) entries.get(i);

        InitialNode initialNode = entry.getInitialNode();
        if (initialNode != null)
        {
          state.addSelectedQualifier(initialNode.getQualifier());
        }
      }
    }
    else
    {
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

        else
        {
          for (Iterator it = entryList.iterator(); it.hasNext();)
          {
            ProcessEntry entry = (ProcessEntry) it.next();
            InitialNode node = entry.getInitialNode();
            if (!initialNodes.contains(node))
            {
              it.remove();
            }
          }

          if (entryList.size() == 0)
          {
            entryList = null;
          }
        }
      }
      else
      {
        if (initialNodes != null)
        {
          entryList = new ArrayList();
        }
      }

      // Now add all new initial nodes
      if (initialNodes != null && entryList != null)
      {
        int n = initialNodes.size();
        for (int i = 0; i < n; ++i)
        {
          InitialNode node = (InitialNode) initialNodes.get(i);

          if (!containsInitialNode(entryList, node))
          {
            ProcessEntry entry = new ProcessEntry();
            entry.setModel(settings.getModel());
            entry.setInitialNode(node);
            entry.setName(node.getName());
            entry.setDisplayName(node.getDisplayName());
            entryList.add(entry);
          }
        }
      }
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

    if (!super.validateObject(editedObject, pb))
    {
      return false;
    }

    InitialNode editedNode = (InitialNode) editedObject;
    if (editedNode.isDefaultEntry())
    {
      ProcessItem process = editedNode.getProcess();

      InitialNode currentDefaultInitialNode = process.getDefaultInitialNode();
      if (currentDefaultInitialNode != editedNode && currentDefaultInitialNode != pb.getObject() && currentDefaultInitialNode != pb.getOriginalObject())
      {
        currentDefaultInitialNode.setDefaultEntry(false);
      }
    }

    return true;
  }
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

   * @return The new node figure
   */
  public static NodeFigure createInitialNodeFromSocket(SocketFigure patternSocketFigure)
  {
    // Create a new node
    InitialNode node = ProcessElementFactory.getInstance().createStandardInitialNode();

    // Create the corresponding figure, add it to the process and return it
    return createNodeFromSocket(node, patternSocketFigure, 100);
  }
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

   */
  public void setInitialPosition(TokenContext context, String startRef, Map inputParamValues)
  {
    NodeSocket startSocket = getEngine().resolveSocketRef(startRef, context.getCurrentSocket(), context, true);

    InitialNode initialNode = (InitialNode) startSocket.getNode();
    if (initialNode.getEntryScope() != InitialNode.SCOPE_PUBLIC)
    {
      String msg = LogUtil.error(getClass(), "Node $0 is not a public initial node (start node reference: $1). [{2}]", initialNode.getQualifier(), startRef, context);
      throw new ModelException("NoPublicInitialNode", msg);
    }
    context.setCurrentSocket(startSocket);

    if (context.getExecutingModel() == null)
View Full Code Here

Examples of org.openbp.core.model.item.process.InitialNode

  implements Finder
{
  public List findModelObjectInModel(ModelObject mo, Model model)
  {
    List foundReferences = new ArrayList();
    InitialNode entry = (InitialNode) mo;
    ProcessItem process = entry.getProcess();
    Iterator modelProcess = model.getItems(ItemTypes.PROCESS);
    while (modelProcess.hasNext())
    {
      ProcessItem pi = (ProcessItem) modelProcess.next();
      foundReferences.addAll(findInProcess(process, entry, pi));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.